forked from nodejs/node-report
-
Notifications
You must be signed in to change notification settings - Fork 0
/
binding.gyp
33 lines (32 loc) · 917 Bytes
/
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
{
"targets": [
{
"target_name": "api",
"sources": [ "src/node_report.cc", "src/module.cc", "src/utilities.cc" ],
"include_dirs": [ '<!(node -e "require(\'nan\')")' ],
"conditions": [
["OS=='linux'", {
"defines": [ "_GNU_SOURCE" ],
"cflags": [ "-g", "-O2", "-std=c++11", ],
}],
["OS=='win'", {
"libraries": [ "dbghelp.lib", "Netapi32.lib", "PsApi.lib", "Ws2_32.lib" ],
"dll_files": [ "dbghelp.dll", "Netapi32.dll", "PsApi.dll", "Ws2_32.dll" ],
}],
],
"defines": [
'NODEREPORT_VERSION="<!(node -p \"require(\'./package.json\').version\")"'
],
},
{
"target_name": "install",
"type":"none",
"dependencies" : [ "api" ],
"copies": [
{
"destination": "<(module_root_dir)",
"files": ["<(PRODUCT_DIR)/api.node"]
}]
},
],
}