-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
67 lines (62 loc) · 2.47 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
{
"targets": [
{
"target_name": "hotcakey",
"cflags!": ["-fno-exceptions"],
"cflags_cc!": ["-fno-exceptions"],
"include_dirs": ["<!@(node -p \"require('node-addon-api').include\")"],
"defines": ["NAPI_VERSION=<(napi_build_version)"],
"conditions": [
[
"OS=='win'",
{
"defines": ["_HAS_EXCEPTIONS=1"],
"sources": [
"src/addon.cc",
"src/hotcakey/hotcakey.win.cc",
"src/hotcakey/utils/strings.cc",
"src/hotcakey/utils/logger.cc"
],
"msvs_settings": {
"ClCompile": {
"LanguageStandard": "stdcpp17"
},
"VCCLCompilerTool": {
"ExceptionHandling": 1,
"AdditionalOptions": ["-std:c++17"]
}
}
}
],
[
"OS=='mac'",
{
"sources": [
"src/addon.cc",
"src/hotcakey/hotcakey.mac.cc",
"src/hotcakey/utils/strings.cc",
"src/hotcakey/utils/logger.cc"
],
"link_settings": {
"libraries": [
"-framework Carbon",
"-framework ApplicationServices",
"-lobjc",
"-Wl,-rpath,@executable_path/.",
"-Wl,-rpath,@loader_path/.",
"-Wl,-rpath,<!(pwd)/build/Release/"
]
},
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"GCC_SYMBOLS_PRIVATE_EXTERN": "YES",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"CLANG_CXX_LIBRARY": "libc++",
"CLANG_CXX_LANGUAGE_STANDARD": "c++17"
}
}
]
]
}
]
}