generated from expressots/nodepp-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
39 lines (39 loc) · 1.04 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
{
"variables": {
"compiler_checks": [
"-Wall",
"-Wextra",
"-Weffc++",
"-Wconversion",
"-pedantic-errors",
"-Wconversion",
"-Wshadow",
"-Wfloat-equal",
"-Wuninitialized",
"-Wunreachable-code",
"-Wold-style-cast",
"-Wno-error=unused-variable",
"-fno-exceptions"
],
"source_files": [ "<!@(find addon/src -name *.cpp)" ],
"dependencies_include_dirs": [ "<!@(./scripts/deps.sh --emit-include-dirs)" ]
},
"targets": [
{
"target_name": "binding",
"type": "loadable_module",
"cflags_cc!": [ "<@(compiler_checks)", "-std=c++20" ],
"sources": [ "<@(source_files)" ],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
"<(module_root_dir)/addon/include",
"<@(dependencies_include_dirs)",
"/usr/local/include/"
],
"libraries": [ "<!@(./scripts/deps.sh --emit-libraries)", ],
"conditions": [
['OS!="win"', { 'cflags_cc+': [ '-std=c++20' ] }],
]
}
]
}