-
Notifications
You must be signed in to change notification settings - Fork 1
/
binding.gyp
40 lines (40 loc) · 1.33 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
{
"targets": [{
"target_name": "gpu-info",
"conditions": [
['OS == "win"', {
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"sources": [
"cppsrc/main.cpp",
"cppsrc/gpu.h",
"cppsrc/gpu.c"
],
'include_dirs': [
"C:/Program Files (x86)/Windows Kits/10/Include/10.0.17763.0/km/",
"<!@(node -p \"require('node-addon-api').include\")"
],
"libraries": [
"Cfgmgr32.lib",
"pdh.lib"
],
"dependencies": [
"<!(node -p \"require('node-addon-api').gyp\")"
],
"defines": [ "NAPI_DISABLE_CPP_EXCEPTIONS" ],
"configurations": {
"Release": {
"msvs_settings": {
"VCCLCompilerTool": {
"ExceptionHandling": 1
}
},
"msvs_disabled_warnings": [ 4275 ]
}
}
}, {
# Drop other targets
"type": "none"
}]]
}]
}