Debian Codegraph @

lib/FFI/Build/File/CXX.pm

raw
1 package FFI::Build::File::CXX;
2
3 use strict;
4 use warnings;
5 use 5.008004;
6 use parent qw( FFI::Build::File::C );
7 use constant default_suffix => '.cxx';
8 use constant default_encoding => ':utf8';
9
10 # ABSTRACT: Class to track C source file in FFI::Build
11 our $VERSION = '2.12'; # VERSION
12
13
14 sub accept_suffix
15 {
16 (qr/\.c(xx|pp)$/)
17 }
18
19 sub cc
20 {
21 my($self) = @_;
22 $self->platform->cxx;
23 }
24
25 sub ld
26 {
27 my($self) = @_;
28 $self->platform->cxxld;
29 }
30
31 1;
32
33 __END__
34
35 =pod
36
37 =encoding UTF-8
38
39 =head1 NAME
40
41 FFI::Build::File::CXX - Class to track C source file in FFI::Build
42
43 =head1 VERSION
44
45 version 2.12
46
47 =head1 SYNOPSIS
48
49 use FFI::Build::File::CXX;
50
51 my $c = FFI::Build::File::CXX->new('src/foo.cxx');
52
53 =head1 DESCRIPTION
54
55 File class for C++ source files.
56
57 =head1 AUTHOR
58
59 Author: Graham Ollis E<lt>[email protected]<gt>
60
61 Contributors:
62
63 Bakkiaraj Murugesan (bakkiaraj)
64
65 Dylan Cali (calid)
66
67 pipcet
68
69 Zaki Mughal (zmughal)
70
71 Fitz Elliott (felliott)
72
73 Vickenty Fesunov (vyf)
74
75 Gregor Herrmann (gregoa)
76
77 Shlomi Fish (shlomif)
78
79 Damyan Ivanov
80
81 Ilya Pavlov (Ilya33)
82
83 Petr Písař (ppisar)
84
85 Mohammad S Anwar (MANWAR)
86
87 Håkon Hægland (hakonhagland, HAKONH)
88
89 Meredith (merrilymeredith, MHOWARD)
90
91 Diab Jerius (DJERIUS)
92
93 Eric Brine (IKEGAMI)
94
95 szTheory
96
97 José Joaquín Atria (JJATRIA)
98
99 Pete Houston (openstrike, HOUSTON)
100
101 Lukas Mai (MAUKE)
102
103 =head1 COPYRIGHT AND LICENSE
104
105 This software is copyright (c) 2015-2022 by Graham Ollis.
106
107 This is free software; you can redistribute it and/or modify it under
108 the same terms as the Perl 5 programming language system itself.
109
110 =cut