-
Notifications
You must be signed in to change notification settings - Fork 6
/
binding.gyp
49 lines (48 loc) · 1.52 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
{
"targets":
[
{
"target_name" : "bufferfromfile",
"product_extension": "node",
"sources" : [ "cpp/Main.cpp" ],
"include_dirs":
[
"cpp",
"<!(node -e \"require('wbasenodejscpp')\")",
"<!(node -e \"require('wbasenodejscpp')\")/wTools/meta",
],
"cflags!": [ '-fno-exceptions' ],
"cflags_cc!": [ '-fno-exceptions' ],
"cflags_cc":
[
'-std=c++1y','-O3','-Wno-tautological-undefined-compare','-Wno-null-dereference','-Fno-delete-null-pointer-checks','-fno-delete-null-pointer-checks'
# '-std=c++1y','-stdlib=libc++','-O3','-Wno-tautological-undefined-compare','-Wno-null-dereference','-Fno-delete-null-pointer-checks','-fno-delete-null-pointer-checks'
],
"conditions":
[
[ 'OS=="mac"',
{
"xcode_settings": {
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++1y','-stdlib=libc++','-mavx','-O3','-Wno-tautological-undefined-compare','-Wno-null-dereference','-Fno-delete-null-pointer-checks','-fno-delete-null-pointer-checks' ],
'OTHER_LDFLAGS' : [ '-stdlib=libc++' ],
'MACOSX_DEPLOYMENT_TARGET': '10.14',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}
]
]
},
{
"target_name": "action_after_build",
"type": "none",
"dependencies": [ "<(module_name)" ],
"copies":
[
{
"files": [ "<(PRODUCT_DIR)/<(module_name).node" ],
"destination": "<(module_path)"
}
]
}
]
}