-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
44 lines (44 loc) · 1.21 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
40
41
42
43
44
{
"targets": [
{
"target_name": "BLEConnectionNodeAddon", #Compiled node addon name.
"cflags!": [
"-fno-exceptions"
],
"cflags_cc!": [
"-fno-exceptions"
],
"sources": [ #Source files required to build.
"cpp_source/main.cpp",
"cpp_source/BLEWrapper.cpp",
"cpp_source/BLE/BTHConnection.cpp",
],
"include_dirs": [ #If you use any library in cpp project, write here header files path.
"<!@(node -p \"require('node-addon-api').include\")",
],
"libraries": [
'-llegacy_stdio_definitions.lib', '-luser32.lib', '-lWs2_32.lib'
],
"configurations": {#Compilation settings, default RuntimeTypeInfo is closed.
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": "2",
"RuntimeTypeInfo": "true",
"AdditionalOptions": [
"/std:c++17"
]
}
}
}
},
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"defines":[
"WIN",
'_HAS_EXCEPTIONS=1' #To handle exceptions occured in cpp project.
]
}
]
}