2020-04-19 21:59:03 +02:00
|
|
|
diff -u -r ../node-v12.16.2/node.gyp ./node.gyp
|
|
|
|
--- ../node-v12.16.2/node.gyp 2020-04-08 16:50:28.000000000 +0000
|
|
|
|
+++ ./node.gyp 2020-04-18 23:13:10.901764000 +0000
|
|
|
|
@@ -1079,110 +1079,6 @@
|
2017-01-09 23:30:11 +01:00
|
|
|
} ],
|
|
|
|
]
|
2019-10-23 17:20:41 +02:00
|
|
|
}, # specialize_node_d
|
2017-01-09 23:30:11 +01:00
|
|
|
- {
|
|
|
|
- 'target_name': 'cctest',
|
|
|
|
- 'type': 'executable',
|
2017-05-08 10:54:46 +02:00
|
|
|
-
|
|
|
|
- 'dependencies': [
|
2018-03-05 12:31:03 +01:00
|
|
|
- '<(node_lib_target_name)',
|
2019-10-23 17:20:41 +02:00
|
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
2020-02-23 00:18:38 +01:00
|
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'node_dtrace_header',
|
|
|
|
- 'node_dtrace_ustack',
|
|
|
|
- 'node_dtrace_provider',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- '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',
|
2020-02-23 00:18:38 +01:00
|
|
|
- 'deps/uvwasi/include',
|
2019-10-23 17:20:41 +02:00
|
|
|
- 'test/cctest',
|
2017-05-08 10:54:46 +02:00
|
|
|
- ],
|
|
|
|
-
|
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': [
|
2019-10-23 17:20:41 +02:00
|
|
|
- 'src/node_snapshot_stub.cc',
|
|
|
|
- 'src/node_code_cache_stub.cc',
|
|
|
|
- 'test/cctest/gtest/gtest-all.cc',
|
|
|
|
- 'test/cctest/gtest/gtest_main.cc',
|
2017-10-14 21:04:49 +02:00
|
|
|
- 'test/cctest/node_test_fixture.cc',
|
2019-10-23 17:20:41 +02:00
|
|
|
- 'test/cctest/node_test_fixture.h',
|
2017-10-14 21:04:49 +02:00
|
|
|
- 'test/cctest/test_aliased_buffer.cc',
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'test/cctest/test_base64.cc',
|
2020-04-19 21:59:03 +02:00
|
|
|
- 'test/cctest/test_base_object_ptr.cc',
|
2018-03-05 12:31:03 +01:00
|
|
|
- 'test/cctest/test_node_postmortem_metadata.cc',
|
2017-06-12 14:14:34 +02:00
|
|
|
- 'test/cctest/test_environment.cc',
|
2019-10-23 17:20:41 +02:00
|
|
|
- 'test/cctest/test_linked_binding.cc',
|
|
|
|
- 'test/cctest/test_per_process.cc',
|
2018-12-28 10:58:26 +01:00
|
|
|
- 'test/cctest/test_platform.cc',
|
|
|
|
- 'test/cctest/test_traced_value.cc',
|
2017-05-08 10:54:46 +02:00
|
|
|
- 'test/cctest/test_util.cc',
|
2019-10-23 17:20:41 +02:00
|
|
|
- 'test/cctest/test_url.cc',
|
2017-05-08 10:54:46 +02:00
|
|
|
- ],
|
|
|
|
-
|
2017-01-09 23:30:11 +01:00
|
|
|
- 'conditions': [
|
2017-11-15 01:54:29 +01:00
|
|
|
- [ 'node_use_openssl=="true"', {
|
2017-12-14 16:16:08 +01:00
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_OPENSSL=1',
|
|
|
|
- ],
|
2017-10-14 21:04:49 +02:00
|
|
|
- }],
|
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'
|
|
|
|
- ],
|
2017-11-15 01:54:29 +01:00
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_INSPECTOR=1',
|
|
|
|
- ],
|
|
|
|
- }, {
|
2019-10-23 17:20:41 +02:00
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_INSPECTOR=0',
|
|
|
|
- ]
|
2017-11-15 01:54:29 +01:00
|
|
|
- }],
|
2017-05-08 10:54:46 +02:00
|
|
|
- ['OS=="solaris"', {
|
|
|
|
- 'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
|
|
|
|
- }],
|
2018-12-28 10:58:26 +01:00
|
|
|
- # Skip cctest while building shared lib node for Windows
|
|
|
|
- [ 'OS=="win" and node_shared=="true"', {
|
|
|
|
- 'type': 'none',
|
|
|
|
- }],
|
|
|
|
- [ 'node_shared=="true"', {
|
|
|
|
- 'xcode_settings': {
|
|
|
|
- 'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
|
|
|
- },
|
|
|
|
- }],
|
2019-10-23 17:20:41 +02:00
|
|
|
- [ 'node_report=="true"', {
|
|
|
|
- 'sources': [
|
|
|
|
- 'test/cctest/test_report_util.cc',
|
|
|
|
- ],
|
|
|
|
- 'defines': [
|
|
|
|
- 'NODE_REPORT',
|
|
|
|
- 'NODE_ARCH="<(target_arch)"',
|
|
|
|
- 'NODE_PLATFORM="<(OS)"',
|
|
|
|
- ],
|
|
|
|
- 'conditions': [
|
|
|
|
- ['OS=="win"', {
|
|
|
|
- 'libraries': [ 'Ws2_32' ],
|
|
|
|
- }],
|
|
|
|
- ],
|
|
|
|
- }],
|
|
|
|
- ['OS=="win"', {
|
|
|
|
- 'libraries': [
|
|
|
|
- 'Dbghelp.lib',
|
|
|
|
- 'winmm.lib',
|
|
|
|
- 'Ws2_32.lib',
|
|
|
|
- ],
|
|
|
|
- }],
|
2018-03-05 12:31:03 +01:00
|
|
|
- ],
|
2018-12-28 10:58:26 +01:00
|
|
|
- }, # cctest
|
2017-01-09 23:30:11 +01:00
|
|
|
|
2019-10-23 17:20:41 +02:00
|
|
|
# TODO(joyeecheung): do not depend on node_lib,
|
|
|
|
# instead create a smaller static library node_lib_base that does
|