| 1 | =head1 NAME | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | PDL::Install::Files -- Module for use by L<ExtUtils::Depends> and L<Inline> | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | use Inline with => 'PDL'; | ||||||||||||||||||||||||||||
| 8 | # or alternatively, if your XS module uses PDL: | ||||||||||||||||||||||||||||
| 9 | use ExtUtils::Depends; | ||||||||||||||||||||||||||||
| 10 | my $pkg = ExtUtils::Depends->new(qw(MyPackage PDL)); | ||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||
| 12 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||
| 14 | This module is for use by L<ExtUtils::Depends> and L<Inline>. There are | ||||||||||||||||||||||||||||
| 15 | no user-serviceable parts inside. | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | =cut | ||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||
| 19 | package PDL::Install::Files; | ||||||||||||||||||||||||||||
| 20 | # support ExtUtils::Depends | ||||||||||||||||||||||||||||
| 21 | 1 | require PDL::Core::Dev; | |||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 1 | our $VERSION = '2.009'; | |||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | 1 | $self = { | |||||||||||||||||||||||||||
| 26 | 'typemaps' => [ &PDL::Core::Dev::PDL_TYPEMAP ], | ||||||||||||||||||||||||||||
| 27 | 'inc' => &PDL::Core::Dev::PDL_INCLUDE, | ||||||||||||||||||||||||||||
| 28 | 'libs' => '', | ||||||||||||||||||||||||||||
| 29 | 'deps' => [], | ||||||||||||||||||||||||||||
| 30 | }; | ||||||||||||||||||||||||||||
| 31 | 1 | @deps = @{ $self->{deps} }; | |||||||||||||||||||||||||||
| 32 | 1 | @typemaps = @{ $self->{typemaps} }; | |||||||||||||||||||||||||||
| 33 | 1 | $libs = $self->{libs}; | |||||||||||||||||||||||||||
| 34 | 1 | $inc = $self->{inc}; | |||||||||||||||||||||||||||
| 35 | 1 | $CORE = undef; | |||||||||||||||||||||||||||
| 36 | 1 | foreach (@INC) { | |||||||||||||||||||||||||||
| 37 | 2 | ▶ | if ( -f "$_/PDL/Install/Files.pm") { $CORE = $_ . "/PDL/Install/"; last; } | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 38 | } | ||||||||||||||||||||||||||||
| 39 | |||||||||||||||||||||||||||||
| 40 | ▶ | sub deps { } | |||||||||||||||||||||||||||
|
Subroutine
deps: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 41 | # support: use Inline with => 'PDL'; | ||||||||||||||||||||||||||||
| 42 | |||||||||||||||||||||||||||||
| 43 | 1 | require Inline; | |||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||
| 45 | sub Inline { | ||||||||||||||||||||||||||||
| 46 | 1 | ▶ | my ($class, $lang) = @_; | ||||||||||||||||||||||||||
|
Subroutine
Inline: called CC=5 SCAR=18.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 47 | 1 | ▶ | return {} if $lang eq 'Pdlpp'; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 48 | 1 | ▶ | return unless $lang eq 'C'; | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 49 | 1 | ▶ | unless($ENV{"PDL_Early_Inline"} // ($Inline::VERSION >= 0.68) ) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
$ENV{"PDL_Early_Inline"} // $Inline::VERSION >= "0.68"
MC/DC0%0/2
$ENV{"PDL_Early_Inline"} // $Inline::VERSION >= "0.68"
$ENV{"PDL_Early_Inline"}
$Inline::VERSION >= "0.68"
Truth table33%1/3
A // B
A= $ENV{"PDL_Early_Inline"}B= $Inline::VERSION >= "0.68"
| |||||||||||||||||||||||||||||
| 50 | 0 | die "PDL::Inline: requires Inline version 0.68 or higher to make sense\n (yours is $Inline::VERSION). You should upgrade Inline, \n or else set \$ENV{PDL_Early_Inline} to a true value to ignore this message.\n"; | |||||||||||||||||||||||||||
| 51 | } | ||||||||||||||||||||||||||||
| 52 | +{ | ||||||||||||||||||||||||||||
| 53 | 1 | TYPEMAPS => [ &PDL::Core::Dev::PDL_TYPEMAP ], | |||||||||||||||||||||||||||
| 54 | INC => &PDL::Core::Dev::PDL_INCLUDE, | ||||||||||||||||||||||||||||
| 55 | AUTO_INCLUDE => &PDL::Core::Dev::PDL_AUTO_INCLUDE, | ||||||||||||||||||||||||||||
| 56 | BOOT => &PDL::Core::Dev::PDL_BOOT, | ||||||||||||||||||||||||||||
| 57 | }; | ||||||||||||||||||||||||||||
| 58 | } | ||||||||||||||||||||||||||||
| 59 | |||||||||||||||||||||||||||||
| 60 | 1 | 1; | |||||||||||||||||||||||||||