termux-packages/packages/nodejs/node.gyp.patch

226 lines
7.8 KiB
Diff
Raw Normal View History

2018-01-21 21:07:10 +01:00
diff -u -r ../node-v8.9.4/node.gyp ./node.gyp
--- ../node-v8.9.4/node.gyp 2018-01-03 02:35:08.000000000 +0000
+++ ./node.gyp 2018-01-21 19:57:04.965201176 +0000
@@ -736,221 +736,6 @@
],
} ],
]
- },
- {
- 'target_name': 'cctest',
- 'type': 'executable',
2017-08-08 11:13:36 +02:00
-
- 'dependencies': [
- '<(node_core_target_name)',
- 'deps/gtest/gtest.gyp:gtest',
- 'node_js2c#host',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
- ],
-
- 'variables': {
- 'OBJ_PATH': '<(OBJ_DIR)/node/src',
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/node/gen',
2017-11-01 20:18:56 +01:00
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/node/src/tracing',
2017-08-08 11:13:36 +02:00
- 'OBJ_SUFFIX': 'o',
2017-11-01 20:18:56 +01:00
- 'OBJ_SEPARATOR': '/',
2017-08-08 11:13:36 +02:00
- 'conditions': [
- ['OS=="win"', {
- 'OBJ_SUFFIX': 'obj',
- }],
2017-11-01 20:18:56 +01:00
- ['GENERATOR=="ninja"', {
- 'OBJ_PATH': '<(OBJ_DIR)/src',
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/gen',
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/src/tracing',
- 'OBJ_SEPARATOR': '/node.',
- }, {
- 'conditions': [
- ['OS=="win"', {
- 'OBJ_PATH': '<(OBJ_DIR)/node',
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/node',
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/node',
- }],
- ['OS=="aix"', {
- 'OBJ_PATH': '<(OBJ_DIR)/node_base/src',
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/node_base/gen',
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/node_base/src/tracing',
- }],
- ]}
- ]
- ],
2017-08-08 11:13:36 +02:00
- },
-
- 'includes': [
- 'node.gypi'
- ],
-
- 'include_dirs': [
- 'src',
2017-08-08 11:13:36 +02:00
- 'tools/msvs/genfiles',
- 'deps/v8/include',
- 'deps/cares/include',
- 'deps/uv/include',
- '<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h
- ],
2017-08-08 11:13:36 +02:00
-
2017-11-01 20:18:56 +01:00
- 'defines': [ 'NODE_WANT_INTERNALS=1' ],
2017-08-08 11:13:36 +02:00
-
- 'sources': [
2017-11-01 20:18:56 +01:00
- 'test/cctest/node_test_fixture.cc',
- 'test/cctest/test_aliased_buffer.cc',
2017-08-08 11:13:36 +02:00
- 'test/cctest/test_base64.cc',
2017-11-01 20:18:56 +01:00
- 'test/cctest/test_environment.cc',
2017-08-08 11:13:36 +02:00
- 'test/cctest/test_util.cc',
2017-11-01 20:18:56 +01:00
- 'test/cctest/test_url.cc'
2017-08-08 11:13:36 +02:00
- ],
-
- 'sources!': [
- 'src/node_main.cc'
- ],
2016-07-15 17:58:32 +02:00
-
- 'conditions': [
2017-11-01 20:18:56 +01:00
- ['node_target_type!="static_library"', {
- 'libraries': [
- '<(OBJ_PATH)<(OBJ_SEPARATOR)async-wrap.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)env.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_buffer.<(OBJ_SUFFIX)',
2018-01-21 21:07:10 +01:00
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_debug_options.<(OBJ_SUFFIX)',
2017-11-01 20:18:56 +01:00
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_i18n.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_perf.<(OBJ_SUFFIX)',
2018-01-21 21:07:10 +01:00
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_platform.<(OBJ_SUFFIX)',
2017-11-01 20:18:56 +01:00
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_url.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)util.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)string_bytes.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)string_search.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)stream_base.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_constants.<(OBJ_SUFFIX)',
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)agent.<(OBJ_SUFFIX)',
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)node_trace_buffer.<(OBJ_SUFFIX)',
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)node_trace_writer.<(OBJ_SUFFIX)',
- '<(OBJ_TRACING_PATH)<(OBJ_SEPARATOR)trace_event.<(OBJ_SUFFIX)',
2018-01-21 21:07:10 +01:00
- '<(OBJ_GEN_PATH)<(OBJ_SEPARATOR)node_javascript.<(OBJ_SUFFIX)',
- ],
- }],
- [ 'node_use_openssl=="true"', {
- 'libraries': [
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto_bio.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_crypto_clienthello.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)tls_wrap.<(OBJ_SUFFIX)',
- ],
- 'defines': [
- 'HAVE_OPENSSL=1',
2017-11-01 20:18:56 +01:00
- ],
- }],
- ['v8_enable_inspector==1', {
2016-07-15 17:58:32 +02:00
- 'sources': [
2017-08-08 11:13:36 +02:00
- 'test/cctest/test_inspector_socket.cc',
2017-11-01 20:18:56 +01:00
- 'test/cctest/test_inspector_socket_server.cc'
2016-07-23 21:48:29 +02:00
- ],
2018-01-21 21:07:10 +01:00
- 'libraries': [
- '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_agent.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_io.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_js_api.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_socket.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)inspector_socket_server.<(OBJ_SUFFIX)',
- ],
- 'defines': [
- 'HAVE_INSPECTOR=1',
- ],
- }],
- [ 'node_use_dtrace=="true"', {
- 'libraries': [
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace.<(OBJ_SUFFIX)',
- ],
2016-07-23 21:48:29 +02:00
- 'conditions': [
2018-01-21 21:07:10 +01:00
- ['OS!="mac" and OS!="linux"', {
- 'libraries': [
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace_provider.<(OBJ_SUFFIX)',
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace_ustack.<(OBJ_SUFFIX)',
2016-07-23 21:48:29 +02:00
- ]
- }],
2018-01-21 21:07:10 +01:00
- ['OS=="linux"', {
- 'libraries': [
- '<(SHARED_INTERMEDIATE_DIR)/node_dtrace_provider.o',
2016-07-23 21:48:29 +02:00
- ]
- }],
2018-01-21 21:07:10 +01:00
- ],
- }],
- [ 'OS=="win"', {
- 'libraries': [
- '<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_win32.<(OBJ_SUFFIX)',
- ],
- }, {
- 'libraries': [
- '<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_posix.<(OBJ_SUFFIX)',
- ],
- }],
- [ 'node_shared_zlib=="false"', {
- 'dependencies': [
- 'deps/zlib/zlib.gyp:zlib',
- ]
- }],
- [ 'node_shared_openssl=="false" and node_shared=="false"', {
- 'dependencies': [
- 'deps/openssl/openssl.gyp:openssl'
2016-07-15 17:58:32 +02:00
- ]
- }],
2018-01-21 21:07:10 +01:00
- [ 'node_shared_http_parser=="false"', {
2017-11-01 20:18:56 +01:00
- 'dependencies': [
2018-01-21 21:07:10 +01:00
- 'deps/http_parser/http_parser.gyp:http_parser'
- ]
- }],
- [ 'node_shared_libuv=="false"', {
- 'dependencies': [
- 'deps/uv/uv.gyp:libuv'
- ]
- }],
- [ 'node_shared_nghttp2=="false"', {
- 'dependencies': [
- 'deps/nghttp2/nghttp2.gyp:nghttp2'
2017-11-01 20:18:56 +01:00
- ],
2018-01-21 21:07:10 +01:00
- 'include_dirs': [
- 'deps/nghttp2/lib/includes'
- ]
2017-11-01 20:18:56 +01:00
- }],
2018-01-21 21:07:10 +01:00
- [ 'node_use_v8_platform=="true"', {
- 'dependencies': [
- 'deps/v8/src/v8.gyp:v8_libplatform',
2016-07-15 17:58:32 +02:00
- ],
- }],
2017-08-08 11:13:36 +02:00
- ['OS=="solaris"', {
- 'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
2016-07-15 17:58:32 +02:00
- }],
2018-01-21 21:07:10 +01:00
- [ 'node_use_openssl=="true"', {
- 'conditions': [
- [ 'node_shared_openssl=="false"', {
- 'conditions': [
- # -force_load or --whole-archive are not applicable for
- # the static library
- [ 'node_target_type!="static_library"', {
- 'xcode_settings': {
- 'OTHER_LDFLAGS': [
- '-Wl,-force_load,<(PRODUCT_DIR)/<(OPENSSL_PRODUCT)',
- ],
- },
- 'conditions': [
- ['OS in "linux freebsd" and node_shared=="false"', {
- 'ldflags': [
- '-Wl,--whole-archive,'
- '<(OBJ_DIR)/deps/openssl/'
- '<(OPENSSL_PRODUCT)',
- '-Wl,--no-whole-archive',
- ],
- }],
- ],
- }],
- ],
- }]]
- }],
2016-07-15 17:58:32 +02:00
- ]
}
], # end targets