diff --git a/node.gyp b/node.gyp index 1cb2497296a7ea..3fa9277d859ea8 100644 --- a/node.gyp +++ b/node.gyp @@ -900,7 +900,6 @@ 'HAVE_INSPECTOR=1', ], 'dependencies': [ - 'deps/zlib/zlib.gyp:zlib', 'v8_inspector_compress_protocol_json#host' ], 'include_dirs': [ @@ -913,6 +912,11 @@ 'test/cctest/test_inspector_socket_server.cc' ], 'conditions': [ + [ 'node_shared_zlib=="false"', { + 'dependencies': [ + 'deps/zlib/zlib.gyp:zlib', + ] + }], [ 'node_shared_openssl=="false"', { 'dependencies': [ 'deps/openssl/openssl.gyp:openssl'