forked from jansegre/node-swipl
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbinding.gyp
33 lines (33 loc) · 983 Bytes
/
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
{
"variables": {
"plbase%":"<!(node scripts/runtime_var.js PLBASE)",
"plarch%":"<!(node scripts/runtime_var.js PLARCH)"
},
"targets": [
{
"target_name": "swipl",
"product_prefix": "lib",
"sources": [
"./src/libswipl.cc"
],
"include_dirs": [
"./src",
"<(plbase)/include",
"<!(node -e \"require('nan')\")"
],
"direct_dependent_settings": {
"linkflags": [
"-D_FILE_OFFSET_BITS=64",
"-D_LARGEFILE_SOURCE"
]
},
"conditions": [
['OS=="win"', {
"libraries": [ "-l<(plbase)/bin/libswipl.dll.a" ]
},{
"libraries": [ "-lswipl -L<(plbase)/lib/<(plarch) -Wl,-rpath <(plbase)/lib/<(plarch)" ]
}]
]
}
]
}