-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbinding.gyp
More file actions
executable file
·32 lines (32 loc) · 1.05 KB
/
binding.gyp
File metadata and controls
executable file
·32 lines (32 loc) · 1.05 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
{
"targets": [
{
"target_name": "can_api",
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"conditions": [
[
"OS=='win'",
{
"sources": ["cppsrc/binding.cpp", "cppsrc/can_api.cpp"],
"include_dirs": ["<(module_root_dir)/canlib_sdk/include"],
"libraries": ["<(module_root_dir)/canlib_sdk/lib/canlib32.lib"]
}
],
[
"OS=='linux'",
{
"sources": ["cppsrc/binding.cpp", "cppsrc/can_api.cpp"],
"include_dirs": ["<(module_root_dir)/linuxcan/include"],
"libraries": ["<(module_root_dir)/linuxcan/canlib/libcanlib.so.1.6.0"]
}
]
],
"include_dirs": ["<!@(node -p \"require('node-addon-api').include\")"],
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"],
"cflags": ["-Wall -Werror -Wno-unused -Wno-write-strings"],
"cflags_cc": ["-fexceptions"],
"defines": ["NAPI_CPP_EXCEPTIONS"]
}
]
}