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>
This commit is contained in:
Jeroen Ooms
2019-07-29 20:15:14 +02:00
committed by Rich Trott
parent 980df1c85f
commit ed138baff3

View File

@@ -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': {