-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
57 lines (57 loc) · 1.85 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
{
"targets": [{
"target_name": "menoh",
"sources": [
"src/menoh.cpp",
"src/model.cpp"
],
"include_dirs" : [
"<!(node -e \"require('nan')\")"
],
"conditions": [
[ 'OS=="linux"', {
"cflags_cc!": ["-fno-exceptions"],
"cflags": [
"-std=c++11",
"-Wall",
"-g",
"-rdynamic"
],
}],
[ 'OS=="mac"', {
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.9",
"GCC_ENABLE_CPP_RTTI": "NO",
"GCC_ENABLE_CPP_EXCEPTIONS": "NO"
"CLANG_CXX_LIBRARY': 'libc++",
"CLANG_CXX_LANGUAGE_STANDARD": "c++11",
"GCC_VERSION": "com.apple.compilers.llvm.clang.1_0"
},
}],
[ 'OS=="win"', {
"variables": {
"prebuild_path%": "deps/win/menoh_v1.1.1",
},
"msvs_settings": {
"VCCLCompilerTool": {
"RuntimeTypeInfo": "false",
"ExceptionHandling": "1",
"DisableSpecificWarnings": [],
},
},
"include_dirs" : [
"<(prebuild_path)/include",
],
"libraries": [ "../<(prebuild_path)/lib/menoh.lib" ]
}, { # OS != "win",
"cflags": [
"<!@(pkg-config --cflags menoh)"
],
"ldflags": [
"<!@(pkg-config --libs-only-L menoh)",
],
"libraries": [ "<!@(pkg-config --libs-only-l menoh)" ]
}],
]
}]
}