-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
37 lines (37 loc) · 1.59 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
{
"targets": [
{
"target_name": "ac_bodyparser",
"sources": [
"<!@(find src -type f -name '*.cpp')",
"<!@(find `node -p \"require('path').relative('', require('ac-common').root)\"`/*.cpp -type f)",
"<!@(find `node -p \"require('path').relative('', require('ac-common').root)\"`/utils/*.cpp -type f)",
"<!@(find `node -p \"require('path').relative('', require('ac-library').root)\"`/http/utils/*.cpp -type f)",
"<!@(find `node -p \"require('path').relative('', require('ac-library').root)\"`/http/abstract_message.cpp -type f)",
"<!@(find `node -p \"require('path').relative('', require('ac-library').root)\"`/httplike/parser/parser.cpp -type f)"
],
"cflags!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags_cc!": [ "-fno-exceptions", "-fno-rtti" ],
"cflags": [ "-std=c++17" ],
"cflags_cc": [ "-std=c++17" ],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"<!@(node -p \"require('path').dirname(require('ac-common').root)\")",
"<!@(node -p \"require('path').dirname(require('ac-library').root)\")"
],
"defines": [ "NAPI_CPP_EXCEPTIONS" ],
"conditions": [
["OS==\"mac\"", {
"cflags+": [ "-stdlib=libc++" ],
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : [ "-std=c++17", "-stdlib=libc++" ],
"OTHER_LDFLAGS": [ "-stdlib=libc++" ],
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LANGUAGE_STANDARD":"c++17",
"CLANG_CXX_LIBRARY": "libc++"
}
}]
]
}
]
}