line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FFI::Build::File::CXX; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
231609
|
use strict; |
|
6
|
|
|
|
|
20
|
|
|
6
|
|
|
|
|
195
|
|
4
|
6
|
|
|
6
|
|
33
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
163
|
|
5
|
6
|
|
|
6
|
|
118
|
use 5.008004; |
|
6
|
|
|
|
|
23
|
|
6
|
6
|
|
|
6
|
|
440
|
use parent qw( FFI::Build::File::C ); |
|
6
|
|
|
|
|
318
|
|
|
6
|
|
|
|
|
57
|
|
7
|
6
|
|
|
6
|
|
478
|
use constant default_suffix => '.cxx'; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
450
|
|
8
|
6
|
|
|
6
|
|
39
|
use constant default_encoding => ':utf8'; |
|
6
|
|
|
|
|
17
|
|
|
6
|
|
|
|
|
1182
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# ABSTRACT: Class to track C source file in FFI::Build |
11
|
|
|
|
|
|
|
our $VERSION = '2.06_01'; # TRIAL VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub accept_suffix |
15
|
|
|
|
|
|
|
{ |
16
|
2
|
|
|
2
|
1
|
8
|
(qr/\.c(xx|pp)$/) |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub cc |
20
|
|
|
|
|
|
|
{ |
21
|
3
|
|
|
3
|
0
|
10
|
my($self) = @_; |
22
|
3
|
|
|
|
|
14
|
$self->platform->cxx; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub ld |
26
|
|
|
|
|
|
|
{ |
27
|
4
|
|
|
4
|
1
|
826
|
my($self) = @_; |
28
|
4
|
|
|
|
|
15
|
$self->platform->cxxld; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |