summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorJeroen Ooms <jeroenooms@gmail.com>2019-07-29 20:15:14 +0200
committerRich Trott <rtrott@gmail.com>2019-08-01 13:15:44 -0700
commited138baff395ffc2ee8f41e99012866fdc27b4f4 (patch)
treef96c157133c7b911b41b346bae781682b13274d2 /node.gyp
parent980df1c85ff5167f5e313d19fb686b46db0b31db (diff)
downloadandroid-node-v8-ed138baff395ffc2ee8f41e99012866fdc27b4f4.tar.gz
android-node-v8-ed138baff395ffc2ee8f41e99012866fdc27b4f4.tar.bz2
android-node-v8-ed138baff395ffc2ee8f41e99012866fdc27b4f4.zip
build: include stubs in shared library
This is needed for external applications that link to shared libnode. Fixes #27431 PR-URL: https://github.com/nodejs/node/pull/28897 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp6
1 files changed, 6 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index 55b7da02cc..4eae262a61 100644
--- a/node.gyp
+++ b/node.gyp
@@ -686,6 +686,12 @@
'msvs_disabled_warnings!': [4244],
'conditions': [
+ [ 'node_shared=="true"', {
+ 'sources': [
+ 'src/node_snapshot_stub.cc',
+ 'src/node_code_cache_stub.cc',
+ ]
+ }],
[ 'node_shared=="true" and node_module_version!="" and OS!="win"', {
'product_extension': '<(shlib_suffix)',
'xcode_settings': {