-
Notifications
You must be signed in to change notification settings - Fork 2
/
binding.gyp
69 lines (68 loc) · 2.35 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
{
"targets": [
{
"target_name": "iastnativemethods",
"sources": [
"./src/gc/gc.cc",
"./src/utils/jsobject_utils.cc",
"./src/utils/propagation.cc",
"./src/tainted/input_info.cc",
"./src/tainted/range.cc",
"./src/tainted/tainted_object.cc",
"./src/tainted/transaction.cc",
"./src/tainted/string_resource.cc",
"./src/api/taint_methods.cc",
"./src/api/concat.cc",
"./src/api/trim.cc",
"./src/api/slice.cc",
"./src/api/substring.cc",
"./src/api/replace.cc",
"./src/api/metrics.cc",
"./src/api/string_case.cc",
"./src/api/array_join.cc",
"./src/iast.cc"
],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"cflags!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc!": [ "-fno-exceptions", "-fno-rtti", "-std=gnu++20" ],
"cflags_cc": [ "-std=gnu++2a" ],
"conditions": [
['OS=="mac"', {
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.10",
"CLANG_CXX_LIBRARY": "libc++",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"GCC_ENABLE_CPP_RTTI": "YES",
"OTHER_CFLAGS": [
"-std=c++20",
"-stdlib=libc++",
"-Wall"
]
}
}],
['OS=="win"', {
"win_delay_load_hook": 'false'
}]
],
'dependencies': [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"defines": [
'NODE_VERSION_<!(echo $NODE_VERSION)=1'
]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": ["iastnativemethods"],
"copies": [
{
"files": [ "<(PRODUCT_DIR)/iastnativemethods.node" ],
"destination": "dist/"
}
]
}
]
}