| 1 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 2 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 3 | 1 | ▶ | use ExtUtils::MakeMaker; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | # A consumer resolves the provider through ExtUtils::Depends when it is | ||||||||||||||||||||||||||||
| 6 | # installed, and falls back to sibling -I paths when it is not - which is | ||||||||||||||||||||||||||||
| 7 | # the case inside the provider's own test suite. | ||||||||||||||||||||||||||||
| 8 | 1 | my %args = ( | |||||||||||||||||||||||||||
| 9 | NAME => 'TestConsumer', | ||||||||||||||||||||||||||||
| 10 | VERSION => '0.01', | ||||||||||||||||||||||||||||
| 11 | OBJECT => 'Consumer$(OBJ_EXT)', | ||||||||||||||||||||||||||||
| 12 | ); | ||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | 1 | my $wired = 0; | |||||||||||||||||||||||||||
| 15 | 1 | ▶ | if (eval { require ExtUtils::Depends; 1 }) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 16 | 1 | my $pkg = eval { ExtUtils::Depends->new('TestConsumer', 'ClamAV::Clamd') }; | |||||||||||||||||||||||||||
| 17 | 1 | ▶ | if ($pkg && !$@) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$pkg and not $@
MC/DC0%0/2
$pkg and not $@
$pkg
not $@
Truth table33%1/3
A and not(B)
A= $pkgB= not $@
| |||||||||||||||||||||||||||||
| 18 | 1 | my %dep = $pkg->get_makefile_vars; | |||||||||||||||||||||||||||
| 19 | 1 | delete $dep{LIBS}; | |||||||||||||||||||||||||||
| 20 | 1 | delete $dep{LDFROM}; | |||||||||||||||||||||||||||
| 21 | 1 | %args = (%args, %dep); | |||||||||||||||||||||||||||
| 22 | 1 | $wired = 1; | |||||||||||||||||||||||||||
| 23 | } | ||||||||||||||||||||||||||||
| 24 | } | ||||||||||||||||||||||||||||
| 25 | 1 | ▶ | $args{INC} = join ' ', ($args{INC} || ''), '-I../../include'; | ||||||||||||||||||||||||||
|
Condition50%1/2
$args{'INC'} || ''
MC/DC0%0/1
$args{'INC'} || ''
$args{'INC'}
Truth table50%1/2
A
A= $args{'INC'}
| |||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | 1 | WriteMakefile(%args); | |||||||||||||||||||||||||||