2018-02-01 11:06:00 +01:00
|
|
|
diff -u -r ../node-v9.5.0/node.gyp ./node.gyp
|
|
|
|
--- ../node-v9.5.0/node.gyp 2018-01-31 22:27:10.000000000 +0100
|
|
|
|
+++ ./node.gyp 2018-02-01 10:59:10.485827738 +0100
|
|
|
|
@@ -887,191 +887,6 @@
|
2017-01-09 23:30:11 +01:00
|
|
|
],
|
|
|
|
} ],
|
|
|
|
]
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- 'target_name': 'cctest',
|
|
|
|
- 'type': 'executable',
|
2017-05-08 10:54:46 +02:00
|
|
|
-
|
|
|
|
- 'dependencies': [
|
|
|
|
- '<(node_core_target_name)',
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'rename_node_bin_win',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'deps/gtest/gtest.gyp:gtest',
|
|
|
|
- 'node_js2c#host',
|
|
|
|
- 'node_dtrace_header',
|
|
|
|
- 'node_dtrace_ustack',
|
|
|
|
- 'node_dtrace_provider',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'variables': {
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/<(node_lib_target_name)/src',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/<(node_lib_target_name)/gen',
|
|
|
|
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/<(node_lib_target_name)/src/tracing',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'OBJ_SUFFIX': 'o',
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'OBJ_SEPARATOR': '/',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'conditions': [
|
|
|
|
- ['OS=="win"', {
|
|
|
|
- 'OBJ_SUFFIX': 'obj',
|
|
|
|
- }],
|
2017-06-12 14:14:34 +02:00
|
|
|
- ['GENERATOR=="ninja"', {
|
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/src',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/gen',
|
|
|
|
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/src/tracing',
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'OBJ_SEPARATOR': '/<(node_lib_target_name).',
|
2017-06-12 14:14:34 +02:00
|
|
|
- }, {
|
|
|
|
- 'conditions': [
|
|
|
|
- ['OS=="win"', {
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/<(node_lib_target_name)',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/<(node_lib_target_name)',
|
|
|
|
- 'OBJ_TRACING_PATH': '<(OBJ_DIR)/<(node_lib_target_name)',
|
2017-06-12 14:14:34 +02:00
|
|
|
- }],
|
|
|
|
- ['OS=="aix"', {
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'OBJ_PATH': '<(OBJ_DIR)/<(node_lib_target_name)/src',
|
|
|
|
- 'OBJ_GEN_PATH': '<(OBJ_DIR)/<(node_lib_target_name)/gen',
|
|
|
|
- 'OBJ_TRACING_PATH':
|
|
|
|
- '<(OBJ_DIR)/<(node_lib_target_name)/src/tracing',
|
2017-06-12 14:14:34 +02:00
|
|
|
- }],
|
|
|
|
- ]}
|
|
|
|
- ]
|
|
|
|
- ],
|
2017-05-08 10:54:46 +02:00
|
|
|
- },
|
|
|
|
-
|
|
|
|
- 'includes': [
|
|
|
|
- 'node.gypi'
|
|
|
|
- ],
|
|
|
|
-
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'include_dirs': [
|
|
|
|
- 'src',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'tools/msvs/genfiles',
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'deps/v8/include',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'deps/cares/include',
|
|
|
|
- 'deps/uv/include',
|
|
|
|
- '<(SHARED_INTERMEDIATE_DIR)', # for node_natives.h
|
|
|
|
- ],
|
|
|
|
-
|
2017-08-11 02:58:47 +02:00
|
|
|
- 'defines': [ 'NODE_WANT_INTERNALS=1' ],
|
2017-05-08 10:54:46 +02:00
|
|
|
-
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'sources': [
|
2017-12-14 16:16:08 +01:00
|
|
|
- 'test/cctest/node_module_reg.cc',
|
2017-10-14 21:04:49 +02:00
|
|
|
- 'test/cctest/node_test_fixture.cc',
|
|
|
|
- 'test/cctest/test_aliased_buffer.cc',
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'test/cctest/test_base64.cc',
|
|
|
|
- 'test/cctest/test_environment.cc',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'test/cctest/test_util.cc',
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'test/cctest/test_url.cc'
|
2017-05-08 10:54:46 +02:00
|
|
|
- ],
|
|
|
|
-
|
2018-02-01 11:06:00 +01:00
|
|
|
- '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)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_debug_options.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_i18n.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_perf.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_platform.<(OBJ_SUFFIX)',
|
|
|
|
- '<(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)',
|
|
|
|
- '<(OBJ_GEN_PATH)<(OBJ_SEPARATOR)node_javascript.<(OBJ_SUFFIX)',
|
2017-01-09 23:30:11 +01:00
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'conditions': [
|
2017-11-15 01:54:29 +01:00
|
|
|
- [ 'node_use_openssl=="true"', {
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'conditions': [
|
|
|
|
- ['node_target_type!="static_library"', {
|
|
|
|
- '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)',
|
|
|
|
- ],
|
|
|
|
- }],
|
2017-10-14 21:04:49 +02:00
|
|
|
- ],
|
2017-12-14 16:16:08 +01:00
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_OPENSSL=1',
|
|
|
|
- ],
|
2017-10-14 21:04:49 +02:00
|
|
|
- }],
|
2018-02-01 11:06:00 +01:00
|
|
|
- [ 'node_use_perfctr=="true"', {
|
|
|
|
- 'defines': [ 'HAVE_PERFCTR=1' ],
|
|
|
|
- 'libraries': [
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_counters.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)'
|
|
|
|
- 'node_win32_perfctr_provider.<(OBJ_SUFFIX)',
|
|
|
|
- ],
|
|
|
|
- }],
|
2017-06-12 14:14:34 +02:00
|
|
|
- ['v8_enable_inspector==1', {
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'sources': [
|
|
|
|
- 'test/cctest/test_inspector_socket.cc',
|
|
|
|
- 'test/cctest/test_inspector_socket_server.cc'
|
|
|
|
- ],
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'conditions': [
|
|
|
|
- ['node_target_type!="static_library"', {
|
|
|
|
- '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)',
|
|
|
|
- ],
|
|
|
|
- }],
|
2017-11-15 01:54:29 +01:00
|
|
|
- ],
|
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_INSPECTOR=1',
|
|
|
|
- ],
|
|
|
|
- }],
|
2018-02-01 11:06:00 +01:00
|
|
|
- [ 'node_use_dtrace=="true" and node_target_type!="static_library"', {
|
2017-11-15 01:54:29 +01:00
|
|
|
- 'libraries': [
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace.<(OBJ_SUFFIX)',
|
2017-12-14 16:16:08 +01:00
|
|
|
- ],
|
|
|
|
- 'conditions': [
|
|
|
|
- ['OS!="mac" and OS!="linux"', {
|
|
|
|
- 'libraries': [
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace_provider.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace_ustack.<(OBJ_SUFFIX)',
|
|
|
|
- ]
|
|
|
|
- }],
|
|
|
|
- ['OS=="linux"', {
|
|
|
|
- 'libraries': [
|
2018-02-01 11:06:00 +01:00
|
|
|
- '<(SHARED_INTERMEDIATE_DIR)<(OBJ_SEPARATOR)'
|
|
|
|
- 'node_dtrace_provider.<(OBJ_SUFFIX)',
|
2017-12-14 16:16:08 +01:00
|
|
|
- ]
|
|
|
|
- }],
|
|
|
|
- ],
|
2017-11-15 01:54:29 +01:00
|
|
|
- }, {
|
2018-02-01 11:06:00 +01:00
|
|
|
- 'conditions': [
|
|
|
|
- [ 'node_use_etw=="true" and OS=="win"', {
|
|
|
|
- 'libraries': [
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)node_dtrace.<(OBJ_SUFFIX)',
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)'
|
|
|
|
- 'node_win32_etw_provider.<(OBJ_SUFFIX)',
|
|
|
|
- ],
|
|
|
|
- }]
|
2017-11-15 01:54:29 +01:00
|
|
|
- ]
|
|
|
|
- }],
|
2018-02-01 11:06:00 +01:00
|
|
|
- [ 'OS=="win" and node_target_type!="static_library"', {
|
|
|
|
- 'libraries': [
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_win32.<(OBJ_SUFFIX)',
|
2017-12-14 16:16:08 +01:00
|
|
|
- ],
|
2018-02-01 11:06:00 +01:00
|
|
|
- }, {
|
|
|
|
- 'conditions': [
|
|
|
|
- ['node_target_type!="static_library"', {
|
|
|
|
- 'libraries': [
|
|
|
|
- '<(OBJ_PATH)<(OBJ_SEPARATOR)backtrace_posix.<(OBJ_SUFFIX)',
|
|
|
|
- ],
|
|
|
|
- }],
|
2017-11-15 01:54:29 +01:00
|
|
|
- ],
|
|
|
|
- }],
|
2017-05-08 10:54:46 +02:00
|
|
|
- ['OS=="solaris"', {
|
|
|
|
- 'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
|
|
|
|
- }],
|
2017-01-09 23:30:11 +01:00
|
|
|
- ]
|
|
|
|
}
|
|
|
|
], # end targets
|
|
|
|
|