forked from gonzus/JavaScript-V8-XS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.PL
53 lines (46 loc) · 1.43 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
use 5.008009;
use ExtUtils::MakeMaker;
my @V8_LIBS = qw/ v8 v8_libbase v8_libplatform icuuc icui18n /;
my $CC = 'c++';
my $CC_OPTS = '--std=c++11';
my $LD = 'c++';
my $LD_OPTS = join(' ', map { "-l$_" } @V8_LIBS);
WriteMakefile(
NAME => 'JavaScript::V8::XS',
VERSION_FROM => 'lib/JavaScript/V8/XS.pm',
ABSTRACT_FROM => 'lib/JavaScript/V8/XS.pm',
LICENSE => 'mit',
MIN_PERL_VERSION => 5.018000,
PREREQ_PM => {
'ExtUtils::XSpp' => '0.11',
'XSLoader' => 0,
},
TEST_REQUIRES => {
'Data::Dumper' => 0,
'Test::More' => 0,
},
AUTHOR => [
'Gonzalo Diethelm ([email protected])',
],
# compiler settings
CC => "$CC $CC_OPTS",
DEFINE => '',
depend => { 'v8-perl.c' => 'JavaScript-V8-XS-Context.xsp' },
# linker settings
LD => "$LD $LD_OPTS",
OBJECT => '$(O_FILES)',
# precompiler settings
XSOPT => '-C++ -hiertype',
TYPEMAPS => ['perlobject.map'],
# repo settings
META_MERGE => {
'meta-spec' => { version => 2 },
resources => {
repository => {
type => 'git',
url => '[email protected]:gonzus/JavaScript-V8-XS',
web => 'https://github.com/gonzus/JavaScript-V8-XS',
},
},
},
);