summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp75
1 files changed, 75 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 30285031a4..307f8ae603 100644
--- a/node.gyp
+++ b/node.gyp
@@ -156,6 +156,7 @@
'lib/internal/process/stdio.js',
'lib/internal/process/warning.js',
'lib/internal/process/worker_thread_only.js',
+ 'lib/internal/process/report.js',
'lib/internal/querystring.js',
'lib/internal/queue_microtask.js',
'lib/internal/readline.js',
@@ -314,6 +315,29 @@
# the executable and rename it back to node.exe later
'product_name': '<(node_core_target_name)-win',
}],
+ [ 'node_report=="true"', {
+ 'defines': [
+ 'NODE_REPORT',
+ 'NODE_ARCH="<(target_arch)"',
+ 'NODE_PLATFORM="<(OS)"',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'libraries': [
+ 'dbghelp.lib',
+ 'Netapi32.lib',
+ 'PsApi.lib',
+ 'Ws2_32.lib',
+ ],
+ 'dll_files': [
+ 'dbghelp.dll',
+ 'Netapi32.dll',
+ 'PsApi.dll',
+ 'Ws2_32.dll',
+ ],
+ }],
+ ],
+ }],
],
}, # node_core_target_name
{
@@ -623,6 +647,34 @@
'src/tls_wrap.h'
],
}],
+ [ 'node_report=="true"', {
+ 'sources': [
+ 'src/node_report.cc',
+ 'src/node_report_module.cc',
+ 'src/node_report_utils.cc',
+ ],
+ 'defines': [
+ 'NODE_REPORT',
+ 'NODE_ARCH="<(target_arch)"',
+ 'NODE_PLATFORM="<(OS)"',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'libraries': [
+ 'dbghelp.lib',
+ 'Netapi32.lib',
+ 'PsApi.lib',
+ 'Ws2_32.lib',
+ ],
+ 'dll_files': [
+ 'dbghelp.dll',
+ 'Netapi32.dll',
+ 'PsApi.dll',
+ 'Ws2_32.dll',
+ ],
+ }],
+ ],
+ }],
[ 'node_use_large_pages=="true" and OS=="linux"', {
'defines': [ 'NODE_ENABLE_LARGE_CODE_PAGES=1' ],
# The current implementation of Large Pages is under Linux.
@@ -964,6 +1016,29 @@
'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
},
}],
+ [ 'node_report=="true"', {
+ 'defines': [
+ 'NODE_REPORT',
+ 'NODE_ARCH="<(target_arch)"',
+ 'NODE_PLATFORM="<(OS)"',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'libraries': [
+ 'dbghelp.lib',
+ 'Netapi32.lib',
+ 'PsApi.lib',
+ 'Ws2_32.lib',
+ ],
+ 'dll_files': [
+ 'dbghelp.dll',
+ 'Netapi32.dll',
+ 'PsApi.dll',
+ 'Ws2_32.dll',
+ ],
+ }],
+ ],
+ }],
],
}, # cctest
], # end targets