summaryrefslogtreecommitdiff
path: root/test/addons/zlib-binding
diff options
context:
space:
mode:
authorDaniel Bevenius <daniel.bevenius@gmail.com>2017-08-23 09:52:59 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2017-11-16 09:22:13 +0100
commitb021403b2afdab0f5077b55aa27286c187119acd (patch)
tree7f43c95b7872ff024670a22c205b8b087f57880a /test/addons/zlib-binding
parenta0b1e2eca684a21e87dd8ae1d5becb4c85e4ddd4 (diff)
downloadandroid-node-v8-b021403b2afdab0f5077b55aa27286c187119acd.tar.gz
android-node-v8-b021403b2afdab0f5077b55aa27286c187119acd.tar.bz2
android-node-v8-b021403b2afdab0f5077b55aa27286c187119acd.zip
test: --enable-static linked executable
The motivation for this commit is to enable projects embedding Node.js and building with --enable-static to be able to run the test suite and linter. Currently when building with --enable-static no node executable will be created which means that the tests (apart from the cctest) and linter cannot be run. This is currently a work in progress and works on MacOS but I need to run the CI, and manually on different environments to verify that it works as expected. PR-URL: https://github.com/nodejs/node/pull/14986 Refs: https://github.com/nodejs/node/issues/14158 Refs: https://github.com/nodejs/node/pull/14892 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/addons/zlib-binding')
-rw-r--r--test/addons/zlib-binding/binding.gyp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/addons/zlib-binding/binding.gyp b/test/addons/zlib-binding/binding.gyp
index 60a9bb8266..24c3ae78a2 100644
--- a/test/addons/zlib-binding/binding.gyp
+++ b/test/addons/zlib-binding/binding.gyp
@@ -1,9 +1,22 @@
{
+ 'includes': ['../../../config.gypi'],
+ 'variables': {
+ 'node_target_type%': '',
+ },
'targets': [
{
'target_name': 'binding',
'sources': ['binding.cc'],
'include_dirs': ['../../../deps/zlib'],
+ 'conditions': [
+ ['node_target_type=="static_library"', {
+ 'conditions': [
+ ['OS=="win"', {
+ 'libraries': ['../../../../$(Configuration)/lib/zlib.lib'],
+ }],
+ ],
+ }],
+ ],
},
]
}