-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbinding.gyp
46 lines (46 loc) · 1.09 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
{
"variables": {
'openssl_fips': 0
},
"targets": [
{
"target_name": "winf",
"include_dirs": ["<!@(node -p \"require('node-addon-api').include\")"],
"dependencies": ["<!(node -p \"require('node-addon-api').gyp\")"],
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
"cflags_cc!": ["-std=c++17", "-fno-exceptions"],
'cflags!': ["-fno-exceptions"],
"msbuild_settings": {
"ClCompile": {
"LanguageStandard": "stdcpp17"
}
},
"conditions": [
["OS==\"mac\"",
{
"sources": [
"./src/rect.cc",
"./src/winf_mac.cc",
"./src/winf.cc"
],
"link_settings": {
"libraries": [
"-framework CoreGraphics",
"-framework CoreFoundation"
],
}
}
],
["OS==\"win\"",
{
"sources": [
"./src/rect.cc",
"./src/winf_win.cc",
"./src/winf.cc"
]
}
],
]
}
]
}