-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
35 lines (35 loc) · 926 Bytes
/
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
{
"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",
"cflags_cc!": [ "<@(compiler_checks)" ],
"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)" ]
}
]
}