-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
66 lines (63 loc) · 1.98 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
{
# Custom variables that can be provided to the gyp build command
"variables": {
"selected_configuration%": 'RELEASE',
},
# Targets you wish to build to; if you just want one output, then one should work
"targets": [{
"target_name": "my_node_addon",
"include_dirs": [
"src",
"src/entities",
"src/utilities",
"src/lib",
"<!(node -e \"require('nan')\")",
],
# This is a list of ALL included files
"sources": [
"cpp/index.cc",
],
"cflags_cc": [
"-fexceptions",
"-std=c++17",
"-pthread",
],
"conditions": [
["OS=='win'", {
# windows-specific config; msvs flags, etc
"defines": [
"_OS_WIN",
],
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["-std:c++17", '/EHsc'],
'ExceptionHandling': 1,
},
},
"conditions": [
],
}],
["OS=='mac'", {
# mac-specific config; xcode/clang flags, etc
"defines": [
"_OS_MAC",
],
'cflags_cc': ['-fexceptions', '-std=c++17', '-pthread'],
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'OTHER_CFLAGS': ['-std=c++17', '-mmacosx-version-min=10.13', '-pthread'],
},
"conditions": [
],
}],
["OS!='win' and OS!='mac'", {
# linux-specific config; gcc flags, etc.
"defines": [
"_OS_LINUX",
],
"conditions": [
],
}],
],
}],
}