Repository navigation
Expand file tree
/
Copy pathbinding.gyp
More file actions
62 lines (62 loc) · 2.4 KB
/
Copy pathbinding.gyp
File metadata and controls
62 lines (62 loc) · 2.4 KB
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
{
"variables": {
"node_use_ffi%": "false"
},
"targets": [
{
"target_name": "eiows",
"defines": [
"NAPI_VERSION=8",
"NODE_WANT_INTERNALS=1",
"HAVE_OPENSSL=1",
"HAVE_AMARO=1",
"HAVE_SQLITE=1"
],
"include_dirs": [
"<(node_root_dir)/deps/googletest/include",
"<(node_root_dir)/deps/ncrypto"
],
"sources": [
"nodejs/src/addon.cpp",
"nodejs/src/native_transport.cpp",
"uWebSockets/src/Extensions.cpp",
"uWebSockets/src/StreamWebSocket.cpp"
],
"libraries": ["-lz"],
"conditions": [
["node_use_ffi=='true'", {
"defines": ["HAVE_FFI=1"]
}, {
"defines": ["HAVE_FFI=0"]
}],
["OS=='linux'", {
"cflags_cc": ["-std=c++20", "-Wno-cast-function-type", "-Wno-deprecated-declarations"],
"cflags_cc!": ["-fno-exceptions", "-std=gnu++11"],
"cflags!": ["-fno-omit-frame-pointer"],
"ldflags!": ["-rdynamic"],
"ldflags": ["-s"]
}],
["OS=='freebsd'", {
"cflags_cc": ["-std=c++20", "-Wno-cast-function-type", "-Wno-deprecated-declarations"],
"cflags_cc!": ["-fno-exceptions", "-std=gnu++11"],
"cflags!": ["-fno-omit-frame-pointer"],
"ldflags!": ["-rdynamic"],
"ldflags": ["-s"]
}],
["OS=='mac'", {
"xcode_settings": {
"MACOSX_DEPLOYMENT_TARGET": "10.15",
"CLANG_CXX_LANGUAGE_STANDARD": "c++20",
"CLANG_CXX_LIBRARY": "libc++",
"GCC_GENERATE_DEBUGGING_SYMBOLS": "NO",
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"GCC_THREADSAFE_STATICS": "YES",
"GCC_OPTIMIZATION_LEVEL": "3",
"OTHER_CFLAGS!": ["-fno-strict-aliasing"],
"OTHER_CPLUSPLUSFLAGS": ["-Wno-cast-function-type", "-Wno-deprecated-declarations"]
}
}]
]
}
]
}