line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FFI::Build::File::Object; |
2
|
|
|
|
|
|
|
|
3
|
11
|
|
|
11
|
|
186401
|
use strict; |
|
11
|
|
|
|
|
24
|
|
|
11
|
|
|
|
|
248
|
|
4
|
11
|
|
|
11
|
|
45
|
use warnings; |
|
11
|
|
|
|
|
41
|
|
|
11
|
|
|
|
|
208
|
|
5
|
11
|
|
|
11
|
|
143
|
use 5.008004; |
|
11
|
|
|
|
|
32
|
|
6
|
11
|
|
|
11
|
|
405
|
use parent qw( FFI::Build::File::Base ); |
|
11
|
|
|
|
|
325
|
|
|
11
|
|
|
|
|
103
|
|
7
|
11
|
|
|
11
|
|
637
|
use constant default_encoding => ':raw'; |
|
11
|
|
|
|
|
28
|
|
|
11
|
|
|
|
|
547
|
|
8
|
11
|
|
|
11
|
|
61
|
use Carp (); |
|
11
|
|
|
|
|
19
|
|
|
11
|
|
|
|
|
1124
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
# ABSTRACT: Class to track object file in FFI::Build |
11
|
|
|
|
|
|
|
our $VERSION = '2.07'; # VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub default_suffix |
15
|
|
|
|
|
|
|
{ |
16
|
1
|
|
|
1
|
1
|
7
|
shift->platform->object_suffix; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub build_item |
20
|
|
|
|
|
|
|
{ |
21
|
29
|
|
|
29
|
1
|
2225
|
my($self) = @_; |
22
|
29
|
50
|
|
|
|
141
|
unless(-f $self->path) |
23
|
|
|
|
|
|
|
{ |
24
|
0
|
|
|
|
|
0
|
Carp::croak "File not built" |
25
|
|
|
|
|
|
|
} |
26
|
29
|
|
|
|
|
205
|
return; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__END__ |