| 1 | package builder::MyBuilder; | ||||||||||||||||||||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use warnings FATAL => 'all'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use 5.008005; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 5 | 1 | ▶ | use base 'Module::Build::XSUtil'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use Config; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 7 | 1 | ▶ | use File::Which qw(which); | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 8 | 1 | ▶ | use EV::MakeMaker '$installsitearch'; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||
| 10 | 0 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 11 | 0 | my ( $class, %args ) = @_; | |||||||||||||||||||||||||||
| 12 | 0 | my $self = $class->SUPER::new( | |||||||||||||||||||||||||||
| 13 | %args, | ||||||||||||||||||||||||||||
| 14 | generate_ppport_h => 'src/ppport.h', | ||||||||||||||||||||||||||||
| 15 | c_source => 'src', | ||||||||||||||||||||||||||||
| 16 | xs_files => { 'src/EV__Hiredis.xs' => 'lib/EV/Hiredis.xs' }, | ||||||||||||||||||||||||||||
| 17 | include_dirs => ['src', 'deps/hiredis', "${installsitearch}/EV", $installsitearch], | ||||||||||||||||||||||||||||
| 18 | extra_linker_flags => ["deps/hiredis/libhiredis$Config{lib_ext}"], | ||||||||||||||||||||||||||||
| 19 | ); | ||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 0 | my $make; | |||||||||||||||||||||||||||
| 22 | 0 | ▶ | if ($^O =~ m/bsd$/ && $^O !~ m/gnukfreebsd$/) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
$^O =~ /bsd$/ and not $^O =~ /gnukfreebsd$/
MC/DC0%0/2
$^O =~ /bsd$/ and not $^O =~ /gnukfreebsd$/
$^O =~ /bsd$/
not $^O =~ /gnukfreebsd$/
Truth table0%0/3
A and not(B)
A= $^O =~ /bsd$/B= not $^O =~ /gnukfreebsd$/
| |||||||||||||||||||||||||||||
| 23 | 0 | my $gmake = which('gmake'); | |||||||||||||||||||||||||||
| 24 | 0 | ▶ | unless (defined $gmake) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 25 | 0 | print "'gmake' is necessary for BSD platform.\n"; | |||||||||||||||||||||||||||
| 26 | 0 | exit 0; | |||||||||||||||||||||||||||
| 27 | } | ||||||||||||||||||||||||||||
| 28 | 0 | $make = $gmake; | |||||||||||||||||||||||||||
| 29 | } else { | ||||||||||||||||||||||||||||
| 30 | 0 | $make = $Config{make}; | |||||||||||||||||||||||||||
| 31 | } | ||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | 0 | $self->do_system($make, '-C', 'deps/hiredis', 'static'); | |||||||||||||||||||||||||||
| 34 | 0 | return $self; | |||||||||||||||||||||||||||
| 35 | } | ||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | 1 | 1; | |||||||||||||||||||||||||||