-
Notifications
You must be signed in to change notification settings - Fork 7
/
binding.gyp
74 lines (72 loc) · 2.28 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
71
72
73
74
{
"targets": [{
"target_name": "findGitRepos",
"dependencies": [
"vendor/openpa/openpa.gyp:openpa"
],
"sources": [
"cpp/src/FindGitRepos.cpp",
"cpp/src/Queue.cpp"
],
"include_dirs": [
"<!(node -p \"require('node-addon-api').include_dir\")",
"cpp/includes"
],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
"conditions": [
["OS=='win'", {
"msvs_settings": {
"VCCLCompilerTool": {
"DisableSpecificWarnings": [ "4506", "4538", "4793" ]
},
"VCLinkerTool": {
"AdditionalOptions": [ "/ignore:4248" ]
},
},
"defines": [
"OPA_HAVE_NT_INTRINSICS=1",
"_opa_inline=__inline"
],
"conditions": [
["target_arch=='x64'", {
"VCLibrarianTool": {
"AdditionalOptions": [
"/MACHINE:X64",
],
},
}, {
"VCLibrarianTool": {
"AdditionalOptions": [
"/MACHINE:x86",
],
},
}],
]
}],
["OS=='mac'", {
"cflags+": ["-fvisibility=hidden"],
"xcode_settings": {
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES"
}
}],
["OS=='mac' or OS=='linux'", {
"defines": [
"OPA_HAVE_GCC_INTRINSIC_ATOMICS=1",
"HAVE_STDDEF_H=1",
"HAVE_STDLIB_H=1",
"HAVE_UNISTD_H=1"
]
}],
["target_arch=='x64' or target_arch=='arm64'", {
"defines": [
"OPA_SIZEOF_VOID_P=8"
]
}],
["target_arch=='ia32' or target_arch=='armv7'", {
"defines": [
"OPA_SIZEOF_VOID_P=4"
]
}]
],
}]
}