diff options
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 75 |
1 files changed, 75 insertions, 0 deletions
@@ -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 |