summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJoyee Cheung <joyeec9h3@gmail.com>2018-11-29 00:46:45 +0800
committerRich Trott <rtrott@gmail.com>2018-11-30 20:14:24 -0800
commit3d668262a09ef031003babc14eff9e5d4ac81698 (patch)
tree90206d42148b96c3a60429315e0cd5f39140446c /node.gyp
parent976065d9cb88a118c0238a8518a2570b28cce817 (diff)
downloadandroid-node-v8-3d668262a09ef031003babc14eff9e5d4ac81698.tar.gz
android-node-v8-3d668262a09ef031003babc14eff9e5d4ac81698.tar.bz2
android-node-v8-3d668262a09ef031003babc14eff9e5d4ac81698.zip
src: move C++ binding/addon related code into node_binding{.h, .cc}
This patch: - Moves the C++ binding/addon related code out of node_internals.h/node.cc and into dedicated files node_binding.h/node_binding.cc, and only puts the code resued by other files into the header. - Introduce a node::binding namespace so that code exposed to other files can be easily recognized. PR-URL: https://github.com/nodejs/node/pull/24701 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp2
1 files changed, 2 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 3cbbe61e57..4ad5ef3a9f 100644
--- a/node.gyp
+++ b/node.gyp
@@ -343,6 +343,7 @@
'src/module_wrap.cc',
'src/node.cc',
'src/node_api.cc',
+ 'src/node_binding.cc',
'src/node_buffer.cc',
'src/node_config.cc',
'src/node_constants.cc',
@@ -414,6 +415,7 @@
'src/node.h',
'src/node_api.h',
'src/node_api_types.h',
+ 'src/node_binding.h',
'src/node_buffer.h',
'src/node_constants.h',
'src/node_context_data.h',