| 1 | 1 | ▶ | use alienfile; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||||||
| 6 | 1 | ▶ | use ExtUtils::CppGuess; | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||||||
| 8 | 1 | my $guess = ExtUtils::CppGuess->new; | |||||||||||||||||||||||||||||||||||||||||||||
| 9 | 1 | my $cppstdflag = $guess->cpp_standard_flag('C++11'); | |||||||||||||||||||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||||||||||||||||||||
| 11 | 0 | ▶ | die "Need to have full C++11 support, compiler @{[ (split ' ', $guess->compiler_command)[0] ]} only supports $cppstdflag" | ||||||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%2/6
$guess->is_gcc || $guess->is_clang and $cppstdflag =~ /c\+\+0x/
$guess->is_gcc or $guess->is_clang
MC/DC0%0/3
$guess->is_gcc || $guess->is_clang and $cppstdflag =~ /c\+\+0x/
$guess->is_gcc
$guess->is_clang
$cppstdflag =~ /c\+\+0x/
Truth table20%1/5
A or B and C
A= $guess->is_gccB= $guess->is_clangC= $cppstdflag =~ /c\+\+0x/
| |||||||||||||||||||||||||||||||||||||||||||||||
| 12 | if ( $guess->is_gcc || $guess->is_clang ) && $cppstdflag =~ /\Qc++0x\E/; | ||||||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||||||
| 14 | 1 | ▶ | share { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=2.8
| |||||||||||||||||||||||||||||||||||||||||||||||
| 15 | 1 | requires 'Net::SSLeay' => 0; | |||||||||||||||||||||||||||||||||||||||||||||
| 16 | 1 | requires 'IO::Socket::SSL' => 0; | |||||||||||||||||||||||||||||||||||||||||||||
| 17 | 1 | requires 'File::Copy::Recursive' => 0; | |||||||||||||||||||||||||||||||||||||||||||||
| 18 | 1 | requires 'Path::Tiny' => 0; | |||||||||||||||||||||||||||||||||||||||||||||
| 19 | |||||||||||||||||||||||||||||||||||||||||||||||
| 20 | 1 | plugin Download => ( | |||||||||||||||||||||||||||||||||||||||||||||
| 21 | url => 'https://github.com/nucleic/kiwi/archive/main.zip', | ||||||||||||||||||||||||||||||||||||||||||||||
| 22 | ); | ||||||||||||||||||||||||||||||||||||||||||||||
| 23 | |||||||||||||||||||||||||||||||||||||||||||||||
| 24 | 1 | plugin Extract => 'zip'; | |||||||||||||||||||||||||||||||||||||||||||||
| 25 | |||||||||||||||||||||||||||||||||||||||||||||||
| 26 | 0 | ▶ | patch sub { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||
| 27 | 0 | ▶ | Path::Tiny->new("kiwi/variable.h")->edit_utf8(sub { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||
| 28 | 0 | s/private:\n/$&friend int* get_refcount( kiwi::Variable* obj );/s; | |||||||||||||||||||||||||||||||||||||||||||||
| 29 | 0 | }); | |||||||||||||||||||||||||||||||||||||||||||||
| 30 | 0 | ▶ | Path::Tiny->new("kiwi/constraint.h")->edit_utf8(sub { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||
| 31 | 0 | s/private:\n/$&friend int* get_refcount( kiwi::Constraint* obj );/s; | |||||||||||||||||||||||||||||||||||||||||||||
| 32 | 0 | }); | |||||||||||||||||||||||||||||||||||||||||||||
| 33 | 1 | }; | |||||||||||||||||||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||||||||||||||||||||
| 35 | build [ | ||||||||||||||||||||||||||||||||||||||||||||||
| 36 | 0 | ▶ | sub { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||
| 37 | 0 | my ($build) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||||||||||||||||||||
| 39 | 0 | my @dirs; | |||||||||||||||||||||||||||||||||||||||||||||
| 40 | |||||||||||||||||||||||||||||||||||||||||||||||
| 41 | 0 | $build->log("copy to prefix"); | |||||||||||||||||||||||||||||||||||||||||||||
| 42 | 0 | my $prefix_abs = Path::Tiny::path($build->install_prop->{prefix}); | |||||||||||||||||||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||||||||||||||||||||
| 44 | 0 | my $kiwi_include_dest = $prefix_abs->child('include'); | |||||||||||||||||||||||||||||||||||||||||||||
| 45 | 0 | $kiwi_include_dest->mkpath; | |||||||||||||||||||||||||||||||||||||||||||||
| 46 | |||||||||||||||||||||||||||||||||||||||||||||||
| 47 | 0 | File::Copy::Recursive::dircopy( 'kiwi', $kiwi_include_dest->child('kiwi') ); | |||||||||||||||||||||||||||||||||||||||||||||
| 48 | }, | ||||||||||||||||||||||||||||||||||||||||||||||
| 49 | 1 | ]; | |||||||||||||||||||||||||||||||||||||||||||||
| 50 | |||||||||||||||||||||||||||||||||||||||||||||||
| 51 | 0 | ▶ | gather sub { | ||||||||||||||||||||||||||||||||||||||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||||||||||||||||||||||||||||||||||||||
| 52 | 0 | my($build) = @_; | |||||||||||||||||||||||||||||||||||||||||||||
| 53 | 0 | my $prefix = $build->runtime_prop->{prefix}; | |||||||||||||||||||||||||||||||||||||||||||||
| 54 | |||||||||||||||||||||||||||||||||||||||||||||||
| 55 | 0 | my $cflags = "-I$prefix/include"; | |||||||||||||||||||||||||||||||||||||||||||||
| 56 | 0 | my $libs = ""; | |||||||||||||||||||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||||||||||||||||||||
| 58 | 0 | $build->runtime_prop->{cppstdflag} = $cppstdflag; | |||||||||||||||||||||||||||||||||||||||||||||
| 59 | 0 | $build->runtime_prop->{cflags} = $cflags; | |||||||||||||||||||||||||||||||||||||||||||||
| 60 | 0 | $build->runtime_prop->{cflags_static} = $cflags; | |||||||||||||||||||||||||||||||||||||||||||||
| 61 | 0 | $build->runtime_prop->{libs} = $libs; | |||||||||||||||||||||||||||||||||||||||||||||
| 62 | 0 | $build->runtime_prop->{libs_static} = $libs; | |||||||||||||||||||||||||||||||||||||||||||||
| 63 | 1 | }; | |||||||||||||||||||||||||||||||||||||||||||||
| 64 | 1 | }; | |||||||||||||||||||||||||||||||||||||||||||||
| 65 | |||||||||||||||||||||||||||||||||||||||||||||||