This repository has been archived by the owner on Apr 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
binding.gyp
70 lines (70 loc) · 1.53 KB
/
binding.gyp
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
65
66
67
68
69
70
{
"variables": {
"v8_enable_pointer_compression": "false",
"v8_enable_31bit_smis_on_64bit_arch": "false"
},
"targets": [
{
"target_name": "perl",
"defines": [],
"sources": [
"./src/perl_bindings.cc",
"./src/perlxsi.c"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"./extern/"
],
"libraries": [
"<!@(node utils/ldopts.js)"
],
"cflags!": [
"-fno-exceptions",
"-Wno-literal-suffix"
],
"cflags_cc!": [
"-fno-exceptions",
"-Wno-literal-suffix"
],
"cflags": [
"<!@(perl -MExtUtils::Embed -e ccopts)",
"<!@(perl utils/libperl.pl)"
],
"ccflags": [
"-fno-exceptions",
"-Wno-literal-suffix"
],
"conditions": [
[
"OS=='win'",
{
"include_dirs": [
"<!@(perl utils/libperl.pl)",
"<!(node utils/perlpath.js)"
],
"defines": [
"__inline__=__inline"
],
"libraries": [
"-lpsapi.lib"
]
}
],
[
"OS=='mac'",
{
"xcode_settings": {
"OTHER_LDFLAGS": [
"<!@(perl -MExtUtils::Embed -e ldopts)"
],
"OTHER_CFLAGS": [
"<!@(perl -MExtUtils::Embed -e ccopts)",
"<!@(perl utils/libperl.pl)"
]
}
}
]
]
}
]
}