forked from nightshadecf/electron-overlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbinding.gyp
86 lines (86 loc) · 3.2 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"targets": [
{
"target_name": "electron_overlay",
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"include_dirs": [
"./src",
"./src/3rd",
"./src/3rd/boost",
"./src/json",
"<!@(node -p \"require('node-addon-api').include\")"
],
"sources": [
"./src/ipc/tinyipc.h",
"./src/ipc/ipcmsg.h",
"./src/ipc/ipclink.h",
"./src/ipc/ipclink.cc",
"./src/ipc/ipccenter.h",
"./src/ipc/ipccenter.cc",
"./src/overlay.h",
"./src/utils/n-utils.h",
"./src/utils/win-utils.h",
"./src/utils/node_async_call.h",
"./src/utils/node_async_call.cc",
"./src/3rd/nlohmann/json.hpp",
"./src/message/gmessage.hpp",
"./src/main.cc"
],
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS", "UNICODE"],
"cflags!": [
"-fno-exceptions"
],
"cflags_cc!": [
"-fno-exceptions"
],
"conditions": [
['OS != "win"', {
'sources!': [
"./src/ipc/tinyipc.h",
"./src/ipc/ipcmsg.h",
"./src/ipc/ipclink.h",
"./src/ipc/ipclink.cc",
"./src/ipc/ipccenter.h",
"./src/ipc/ipccenter.cc",
"./src/overlay.h",
"./src/utils/n-utils.h",
"./src/utils/win-utils.h",
"./src/utils/node_async_call.h",
"./src/utils/node_async_call.cc",
"./src/3rd/nlohmann/json.hpp",
"./src/message/gmessage.hpp",
"./src/main.cc"
]
}
],
[
"OS=='win'", {
"defines": [
"_UNICODE",
"_WIN32_WINNT=0x0601"
],
"configurations": {
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1,
"AdditionalOptions": ["/std:c++latest", "/Zc:__cplusplus"]
}
}
},
"Debug": {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1,
"AdditionalOptions": ["/std:c++latest", "/Zc:__cplusplus"]
}
}
}
}
}
]
]
}
]
}