forked from Touched/JiggleMap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
46 lines (46 loc) · 1.23 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
{
"variables": {
"src_dir": "./app/native/src"
},
"targets": [
{
"target_name": "jigglemap_native",
"sources": [
"<(src_dir)/init.cc",
"<(src_dir)/png.cc",
],
"include_dirs": [
"./app/native/include",
"<!(node -e \"require('nan')\")",
],
"dependencies": [
"./app/native/third-party/libpng/libpng.gyp:libpng"
],
"conditions": [
[ "OS=='mac'", {
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : ["-std=c++11", "-stdlib=libc++"],
"OTHER_LDFLAGS": ["-stdlib=libc++"],
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES"
}
}],
[ "OS=='linux'", {
"cflags": ["-std=c++0x"],
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"]
}],
[ "OS=='win'", {
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/EHsc", "/wd4506"]
},
"VCLinkerTool": {
"GenerateDebugInformation": "false" # Avoid 'incorrect MSPDB120.DLL version' link error
}
}
}]
]
}
]
}