-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
63 lines (63 loc) · 2.1 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
{
"variables": {
"WIN_VER": "v10",
"USE_ADDITIONAL_WINMD": "true"
},
"includes": ["common.gypi"],
"targets": [
{
"target_name": "windows-utils",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"sources": [ ],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
'defines': [ ],
"conditions": [
["OS=='win'", {
"libraries": ["-lruntimeobject.lib", "-lcrypt32.lib"],
"sources": [
"dpapi_win.cpp",
"addon.cc",
"dpapi_addon.h"
]
}],
["WIN_VER==\"v10\"", {
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalUsingDirectories": [
"%ProgramFiles(x86)%/Microsoft Visual Studio 14.0/VC/lib/store/references",
"%ProgramFiles%/Microsoft Visual Studio 14.0/VC/lib/store/references",
"%ProgramFiles%/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16.27023/lib/x86/store/references"
]
}
}
}],
["USE_ADDITIONAL_WINMD==\"true\"", {
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalUsingDirectories": [
"%ProgramFiles%/Windows Kits/10/UnionMetadata/10.0.17763.0",
"%ProgramFiles%/Windows Kits/10/Include/10.0.17763.0/um",
"%ProgramFiles%/Windows Kits/10/Include/10.0.17763.0/winrt",
"%ProgramFiles(x86)%/Windows Kits/10/UnionMetadata/10.0.17763.0",
"%ProgramFiles(x86)%/Windows Kits/10/UnionMetadata/10.0.17763.0/winrt",
"%ProgramFiles(x86)%/Windows Kits/10/Include/10.0.17763.0/um"
]
}
}
}]
],
"msvs_settings": {
"VCCLCompilerTool": {
"AdditionalOptions": ["/ZW", "/std:c++17"],
"DisableSpecificWarnings": [4609]
},
"VCLinkerTool": {
"GenerateDebugInformation": "false"
}
}
}
]
}