forked from reklatsmasters/node-process-list
-
Notifications
You must be signed in to change notification settings - Fork 3
/
binding.gyp
53 lines (51 loc) · 1.57 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
{
"targets": [{
"target_name": "processlist",
"sources": [
"src/main.cpp"
, "src/snapshot.cpp"
],
"include_dirs":["src", "<!(node -e \"require('nan')\")"],
"conditions": [
["OS=='win'", {
"defines": [
"UNICODE",
"_UNICODE "
],
"include_dirs":[
"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\atlmfc\\include",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.13.26128\\atlmfc\\include"],
"sources": [
"src/win/tasklist.cpp"
],
"msvs_settings": {
"VCCLCompilerTool": {
"WarningLevel": 3,
"ExceptionHandling": 1,
"DisableSpecificWarnings": [4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4800, 4005]
},
"VCLinkerTool": {
"AdditionalLibraryDirectories": [
"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\atlmfc\\lib\\amd64",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.13.26128\\atlmfc\\lib\\x64"
]
}
}
}],["OS!='mac' and OS!='win'", {
"sources": [
"src/unix/tasklist.cpp"
],
"cflags_cc!": ["-fno-rtti", "-fno-exceptions"],
"cflags_cc+": [
"-fexceptions",
"-std=c++0x",
"-frtti"
]
}],["OS=='mac'", {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
}]
}