| 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 | 1 | ▶ | use strict; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 21 | 1 | ▶ | use warnings; | ||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||
| 22 | # support ExtUtils::Depends | ||||||||||||||||||||||||||||||||
| 23 | 1 | require PDL::Core::Dev; | |||||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||||||
| 25 | 1 | our $VERSION = '2.009'; | |||||||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||||||
| 27 | 1 | my $self = { | |||||||||||||||||||||||||||||||
| 28 | 'typemaps' => [ &PDL::Core::Dev::PDL_TYPEMAP ], | ||||||||||||||||||||||||||||||||
| 29 | 'inc' => &PDL::Core::Dev::PDL_INCLUDE, | ||||||||||||||||||||||||||||||||
| 30 | 'libs' => '', | ||||||||||||||||||||||||||||||||
| 31 | 'deps' => [], | ||||||||||||||||||||||||||||||||
| 32 | }; | ||||||||||||||||||||||||||||||||
| 33 | 1 | our @deps = @{ $self->{deps} }; | |||||||||||||||||||||||||||||||
| 34 | 1 | our @typemaps = @{ $self->{typemaps} }; | |||||||||||||||||||||||||||||||
| 35 | 1 | our $libs = $self->{libs}; | |||||||||||||||||||||||||||||||
| 36 | 1 | our $inc = $self->{inc}; | |||||||||||||||||||||||||||||||
| 37 | 1 | our $CORE = undef; | |||||||||||||||||||||||||||||||
| 38 | 1 | foreach (@INC) { | |||||||||||||||||||||||||||||||
| 39 | 2 | ▶ | if ( -f "$_/PDL/Install/Files.pm") { $CORE = $_ . "/PDL/Install/"; last; } | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 40 | } | ||||||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||||||
| 42 | 0 | ▶ | sub deps { } | ||||||||||||||||||||||||||||||
|
Subroutine
deps: not called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 43 | # support: use Inline with => 'PDL'; | ||||||||||||||||||||||||||||||||
| 44 | |||||||||||||||||||||||||||||||||
| 45 | 1 | ▶ | sub Inline { | ||||||||||||||||||||||||||||||
|
Subroutine
Inline: called CC=5 SCAR=19.4
Pod
undocumented
| |||||||||||||||||||||||||||||||||
| 46 | 1 | my ($class, $lang) = @_; | |||||||||||||||||||||||||||||||
| 47 | 1 | ▶ | return {} if $lang eq 'Pdlpp'; | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||
| 48 | 1 | ▶ | unless ($ENV{"PDL_Early_Inline"} || (($Inline::VERSION//0.68) >= 0.68)) { | ||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition40%2/5
$ENV{"PDL_Early_Inline"} or ($Inline::VERSION // "0.68") >= "0.68"
$Inline::VERSION // "0.68"
MC/DC0%0/2
$ENV{"PDL_Early_Inline"} or ($Inline::VERSION // "0.68") >= "0.68"
$ENV{"PDL_Early_Inline"}
$Inline::VERSION
Truth table33%1/3
A or B
A= $ENV{"PDL_Early_Inline"}B= $Inline::VERSION
| |||||||||||||||||||||||||||||||||
| 49 | 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"; | |||||||||||||||||||||||||||||||
| 50 | } | ||||||||||||||||||||||||||||||||
| 51 | +{ | ||||||||||||||||||||||||||||||||
| 52 | 1 | TYPEMAPS => [ &PDL::Core::Dev::PDL_TYPEMAP ], | |||||||||||||||||||||||||||||||
| 53 | INC => &PDL::Core::Dev::PDL_INCLUDE, | ||||||||||||||||||||||||||||||||
| 54 | AUTO_INCLUDE => &PDL::Core::Dev::PDL_AUTO_INCLUDE, | ||||||||||||||||||||||||||||||||
| 55 | BOOT => &PDL::Core::Dev::PDL_BOOT, | ||||||||||||||||||||||||||||||||
| 56 | }; | ||||||||||||||||||||||||||||||||
| 57 | } | ||||||||||||||||||||||||||||||||
| 58 | |||||||||||||||||||||||||||||||||
| 59 | 1 | 1; | |||||||||||||||||||||||||||||||