-
Notifications
You must be signed in to change notification settings - Fork 105
/
Makefile.PL
64 lines (52 loc) · 1.73 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
use strict;
use warnings;
# this Makefile.PL is only for in-repo development purposes.
# In the built distribution, it is replaced by one generated by Dist::Zilla.
BEGIN {
my @modules = qw(
ExtUtils::MakeMaker::Dist::Zilla::Develop
File::Find::Rule
Test::Inline
Path::Tiny
);
my %missing;
for my $module (@modules) {
eval "require $module";
$missing{$module} = $@ if $@;
}
if ( keys %missing ) {
warn "Errors encountered while checking for developer Makefile.PL dependencies:\n\n";
warn values %missing, "\n";
warn
"You need to install the following modules to run this Makefile.PL:\n";
warn " $_\n" for keys %missing;
warn "\nTry running this command:\n";
warn " cpanm " . ( join q{ }, keys %missing ) . "\n";
exit 1;
}
ExtUtils::MakeMaker::Dist::Zilla::Develop->import();
}
system( $^X, 'author/extract-inline-tests', '--quiet' );
use lib '.';
use inc::MMHelper;
eval inc::MMHelper::my_package_subs();
my %args = inc::MMHelper::mm_args();
$args{clean}{FILES} = join(' ', ($args{clean}{FILES} || ()),
(grep !/basics_genome_overloadingsubtypesandcoercion\.t\z/, glob('t/recipes/*')),
'xs/*.c', 'xs/*.o',
);
WriteMakefile(
NAME => 'Moose',
VERSION_FROM => 'lib/Moose.pm',
test => { TESTS => 't/*.t t/*/*.t' },
CCFLAGS => inc::MMHelper::ccflags_static('dev'),
INSTALLMAN1DIR => 'none',
INSTALLMAN3DIR => 'none',
NORECURS => 1,
%args,
);
# uncomment these lines to generate a new ppport.h locally, e.g. if an update
# is necessary for new features.
# use Devel::PPPort;
# Devel::PPPort::WriteFile();
system("$^X ppport.h --compat-version=5.008003 --quiet xs/* *.[hc]");