line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Module::Install::Compiler; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
823
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
4
|
1
|
|
|
1
|
|
3
|
use File::Basename (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
5
|
1
|
|
|
1
|
|
3
|
use Module::Install::Base (); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
13
|
|
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
3
|
use vars qw{$VERSION @ISA $ISCORE}; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
55
|
|
8
|
|
|
|
|
|
|
BEGIN { |
9
|
1
|
|
|
1
|
|
1
|
$VERSION = '1.18'; |
10
|
1
|
|
|
|
|
7
|
@ISA = 'Module::Install::Base'; |
11
|
1
|
|
|
|
|
296
|
$ISCORE = 1; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub ppport { |
15
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
16
|
0
|
0
|
|
|
|
|
if ( $self->is_admin ) { |
17
|
0
|
|
|
|
|
|
return $self->admin->ppport(@_); |
18
|
|
|
|
|
|
|
} else { |
19
|
|
|
|
|
|
|
# Fallback to just a check |
20
|
0
|
|
0
|
|
|
|
my $file = shift || 'ppport.h'; |
21
|
0
|
0
|
|
|
|
|
unless ( -f $file ) { |
22
|
0
|
|
|
|
|
|
die "Packaging error, $file is missing"; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub cc_files { |
28
|
0
|
|
|
0
|
0
|
|
require Config; |
29
|
0
|
|
|
|
|
|
my $self = shift; |
30
|
|
|
|
|
|
|
$self->makemaker_args( |
31
|
0
|
|
|
|
|
|
OBJECT => join ' ', map { substr($_, 0, -2) . $Config::Config{_o} } @_ |
|
0
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub cc_inc_paths { |
36
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
37
|
|
|
|
|
|
|
$self->makemaker_args( |
38
|
0
|
|
|
|
|
|
INC => join ' ', map { "-I$_" } @_ |
|
0
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub cc_lib_paths { |
43
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
44
|
|
|
|
|
|
|
$self->makemaker_args( |
45
|
0
|
|
|
|
|
|
LIBS => join ' ', map { "-L$_" } @_ |
|
0
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub cc_lib_links { |
50
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
51
|
|
|
|
|
|
|
$self->makemaker_args( |
52
|
0
|
|
|
|
|
|
LIBS => join ' ', $self->makemaker_args->{LIBS}, map { "-l$_" } @_ |
|
0
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
); |
54
|
|
|
|
|
|
|
} |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub cc_optimize_flags { |
57
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
58
|
0
|
|
|
|
|
|
$self->makemaker_args( |
59
|
|
|
|
|
|
|
OPTIMIZE => join ' ', @_ |
60
|
|
|
|
|
|
|
); |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
1; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
__END__ |