-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.PL
45 lines (39 loc) · 1.31 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
use 5.010001;
use Config;
use ExtUtils::MakeMaker;
#system 'pod2text lib/Class/Accessor/Inherited/XS.pm > README';
#system 'pod2github lib/Class/Accessor/Inherited/XS.pm > README.md';
my $CCFLAGS = join(' ',$Config{ccflags},'-x c++', '-fno-exceptions', '-fno-rtti');
WriteMakefile(
NAME => 'Class::Accessor::Inherited::XS',
VERSION_FROM => 'lib/Class/Accessor/Inherited/XS.pm',
AUTHOR => ['Vladimir Timofeev <[email protected]>', 'Sergey Aleynikov <[email protected]>'],
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => 6.64,
},
PREREQ_PM => {
'XSLoader' => 0,
'Carp' => 0,
},
TEST_REQUIRES => {
'Test::More' => 0,
'Test::Deep' => 0,
},
META_MERGE => {
resources => {
repository => 'https://github.com/vovkasm/Class-Accessor-Inherited-XS',
bugtracker => 'https://github.com/vovkasm/Class-Accessor-Inherited-XS/issues',
},
dynamic_config => 0,
},
ABSTRACT_FROM => 'lib/Class/Accessor/Inherited/XS.pm',
LICENSE => 'perl',
MIN_PERL_VERSION=> 5.010001,
CCFLAGS => $CCFLAGS,
#LIBS => ['-lstdc++'],
#XSOPT => '-C++',
);
{
package MY;
sub postamble { '$(OBJECT) : '.join(' ', glob('xs/*.h')) }
}