-
Notifications
You must be signed in to change notification settings - Fork 4
/
binding.gyp
31 lines (31 loc) · 1.07 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
{
"variables": {
"NODE_VERSION%":"<!(node -p \"process.versions.node.split(\\\".\\\")[0]\")"
},
"targets": [{
"target_name": "mvsutils",
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"conditions": [
[ "OS==\"zos\"", {
"sources": [
"addon.cc",
"filescan.cc",
"errstring.cc",
"console.cc"
],
}],
[ "NODE_VERSION < 18", {
"cflags": [ "-qascii" ],
"cflags_cc": [ "-qascii" ],
"defines": [ "_AE_BIMODAL=1", "_ALL_SOURCE", "_ENHANCED_ASCII_EXT=0x42020010", "_LARGE_TIME_API", "_OPEN_MSGQ_EXT", "_OPEN_SYS_FILE_EXT=1", "_OPEN_SYS_SOCK_IPV6", "_UNIX03_SOURCE", "_UNIX03_THREADS", "_UNIX03_WITHDRAWN", "_XOPEN_SOURCE=600", "_XOPEN_SOURCE_EXTENDED" ]
}],
],
"defines+": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
"libraries": [],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
}]
}