line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
2
|
|
|
2
|
|
498626
|
use alienfile; |
|
2
|
|
|
|
|
10
|
|
|
2
|
|
|
|
|
43
|
|
2
|
2
|
|
|
2
|
|
753
|
use Path::Tiny qw( path ); |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
1133
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
probe sub { 'share' }; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
share { |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
meta->prop->{start_url} = path(__FILE__)->parent->child('cmake-libpalindrome')->stringify; |
9
|
|
|
|
|
|
|
plugin 'Fetch::LocalDir'; |
10
|
|
|
|
|
|
|
plugin 'Extract::Directory'; |
11
|
|
|
|
|
|
|
plugin 'Build::CMake'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
gather sub { |
14
|
|
|
|
|
|
|
my($build) = @_; |
15
|
|
|
|
|
|
|
my $prefix = $build->runtime_prop->{prefix}; |
16
|
|
|
|
|
|
|
$build->runtime_prop->{$_} = "-I$prefix/include" for qw( cflags cflags_static ); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# just to be sure get rid of the static lib |
19
|
|
|
|
|
|
|
path('lib/libpalindrome.a')->remove; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
if($build->meta_prop->{platform}->{compiler_type} eq 'microsoft') |
22
|
|
|
|
|
|
|
{ |
23
|
|
|
|
|
|
|
$build->runtime_prop->{$_} = "-LIBPATH:$prefix/lib palindromeStatic.lib" for qw( libs libs_static ); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
else |
26
|
|
|
|
|
|
|
{ |
27
|
|
|
|
|
|
|
$build->runtime_prop->{$_} = "-L$prefix/lib -lpalindrome" for qw( libs libs_static ); |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
}; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
plugin 'Gather::Dino'; |
32
|
|
|
|
|
|
|
}; |