summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorGireesh Punathil <gpunathi@in.ibm.com>2018-09-05 10:06:59 -0400
committerGireesh Punathil <gpunathi@in.ibm.com>2019-01-18 10:34:04 +0530
commit4f6797378eb6dd290dd5d8dc6417fea22d42ebad (patch)
tree88967037a1ba9aec47faea701efecf4f44007587 /node.gyp
parent01cd21973b26a2cbacbe143c5983cb4adf8e7681 (diff)
downloadandroid-node-v8-4f6797378eb6dd290dd5d8dc6417fea22d42ebad.tar.gz
android-node-v8-4f6797378eb6dd290dd5d8dc6417fea22d42ebad.tar.bz2
android-node-v8-4f6797378eb6dd290dd5d8dc6417fea22d42ebad.zip
src: merge into core
Make node-report part of core runtime because: 1. When enabled, node-report significantly helps root cause various types of problems, including support issues sent to the various repos of the Node.js organization. 2. The requirement of explicitly adding the dependency to node-report in user applications often represents a blocker to adoption. Major deviation from the module version of the node-report is that the report is generated in JSON format, as opposed to human readable text. No new functionalities have been added, changes that are required for melding it as a built-in capability has been affected on the module version of node-report (https://github.com/nodejs/node-report) Co-authored-by: Bidisha Pyne <bidipyne@in.ibm.com> Co-authored-by: Howard Hellyer <hhellyer@uk.ibm.com> Co-authored-by: Jeremiah Senkpiel <fishrock123@rocketmail.com> Co-authored-by: Julian Alimin <dmastag@yahoo.com> Co-authored-by: Lakshmi Swetha Gopireddy <lakshmigopireddy@in.ibm.com> Co-authored-by: Manusaporn Treerungroj <m.treerungroj@gmail.com> Co-authored-by: Michael Dawson <michael_dawson@ca.ibm.com> Co-authored-by: Richard Chamberlain <richard_chamberlain@uk.ibm.com> Co-authored-by: Richard Lau <riclau@uk.ibm.com> Co-authored-by: Sam Roberts <vieuxtech@gmail.com> Co-authored-by: Vipin Menon <vipinmv1@in.ibm.com> PR-URL: https://github.com/nodejs/node/pull/22712 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <Michael_Dawson@ca.ibm.com> Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
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