2021-09-13 12:29:41 +02:00
|
|
|
--- ./node.gyp.orig 2021-09-13 15:57:45.411848965 +0530
|
|
|
|
+++ ./node.gyp 2021-09-13 15:58:53.811848939 +0530
|
2021-09-11 08:09:16 +02:00
|
|
|
@@ -340,6 +340,7 @@
|
|
|
|
|
|
|
|
'include_dirs': [
|
|
|
|
'src',
|
|
|
|
+ 'deps/cares/src/lib',
|
|
|
|
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
|
|
|
|
],
|
|
|
|
'dependencies': [
|
2021-09-11 14:23:45 +02:00
|
|
|
@@ -1061,162 +1062,6 @@
|
2021-09-11 08:09:16 +02:00
|
|
|
}],
|
2020-10-18 00:14:19 +02:00
|
|
|
],
|
|
|
|
}, # fuzz_env
|
2021-09-11 08:09:16 +02:00
|
|
|
- {
|
2016-05-02 06:48:34 +02:00
|
|
|
- 'target_name': 'cctest',
|
|
|
|
- 'type': 'executable',
|
2017-08-08 11:13:36 +02:00
|
|
|
-
|
|
|
|
- 'dependencies': [
|
2018-09-11 23:51:55 +02:00
|
|
|
- '<(node_lib_target_name)',
|
2021-09-10 07:38:48 +02:00
|
|
|
- 'deps/googletest/googletest.gyp:gtest',
|
|
|
|
- 'deps/googletest/googletest.gyp:gtest_main',
|
2019-02-15 23:37:40 +01:00
|
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
2020-04-19 23:34:14 +02:00
|
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
2017-08-08 11:13:36 +02:00
|
|
|
- 'node_dtrace_header',
|
|
|
|
- 'node_dtrace_ustack',
|
|
|
|
- 'node_dtrace_provider',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'includes': [
|
|
|
|
- 'node.gypi'
|
|
|
|
- ],
|
|
|
|
-
|
2016-05-02 06:48:34 +02:00
|
|
|
- 'include_dirs': [
|
|
|
|
- 'src',
|
2017-08-08 11:13:36 +02:00
|
|
|
- 'tools/msvs/genfiles',
|
|
|
|
- 'deps/v8/include',
|
|
|
|
- 'deps/cares/include',
|
|
|
|
- 'deps/uv/include',
|
2020-04-19 23:34:14 +02:00
|
|
|
- 'deps/uvwasi/include',
|
2019-05-06 00:13:05 +02:00
|
|
|
- 'test/cctest',
|
2016-05-02 06:48:34 +02:00
|
|
|
- ],
|
2017-08-08 11:13:36 +02:00
|
|
|
-
|
2020-04-19 23:34:14 +02:00
|
|
|
- 'defines': [
|
|
|
|
- 'NODE_ARCH="<(target_arch)"',
|
|
|
|
- 'NODE_PLATFORM="<(OS)"',
|
|
|
|
- 'NODE_WANT_INTERNALS=1',
|
|
|
|
- ],
|
2017-08-08 11:13:36 +02:00
|
|
|
-
|
2016-05-02 06:48:34 +02:00
|
|
|
- 'sources': [
|
2019-05-06 00:13:05 +02:00
|
|
|
- 'src/node_snapshot_stub.cc',
|
|
|
|
- 'src/node_code_cache_stub.cc',
|
2017-11-01 20:18:56 +01:00
|
|
|
- 'test/cctest/node_test_fixture.cc',
|
2019-05-06 00:13:05 +02:00
|
|
|
- 'test/cctest/node_test_fixture.h',
|
2017-11-01 20:18:56 +01:00
|
|
|
- 'test/cctest/test_aliased_buffer.cc',
|
2017-08-08 11:13:36 +02:00
|
|
|
- 'test/cctest/test_base64.cc',
|
2020-04-19 23:34:14 +02:00
|
|
|
- 'test/cctest/test_base_object_ptr.cc',
|
2018-09-11 23:51:55 +02:00
|
|
|
- 'test/cctest/test_node_postmortem_metadata.cc',
|
2017-11-01 20:18:56 +01:00
|
|
|
- 'test/cctest/test_environment.cc',
|
2021-09-10 07:38:48 +02:00
|
|
|
- 'test/cctest/test_js_native_api_v8.cc',
|
2019-03-31 21:19:23 +02:00
|
|
|
- 'test/cctest/test_linked_binding.cc',
|
2021-09-10 07:38:48 +02:00
|
|
|
- 'test/cctest/test_node_api.cc',
|
2019-06-08 00:36:00 +02:00
|
|
|
- 'test/cctest/test_per_process.cc',
|
2018-09-11 23:51:55 +02:00
|
|
|
- 'test/cctest/test_platform.cc',
|
2020-04-19 23:34:14 +02:00
|
|
|
- 'test/cctest/test_json_utils.cc',
|
|
|
|
- 'test/cctest/test_sockaddr.cc',
|
2018-09-11 23:51:55 +02:00
|
|
|
- 'test/cctest/test_traced_value.cc',
|
2017-08-08 11:13:36 +02:00
|
|
|
- 'test/cctest/test_util.cc',
|
2019-05-06 00:13:05 +02:00
|
|
|
- 'test/cctest/test_url.cc',
|
2017-08-08 11:13:36 +02:00
|
|
|
- ],
|
|
|
|
-
|
2016-07-15 17:58:32 +02:00
|
|
|
- 'conditions': [
|
2018-01-21 21:07:10 +01:00
|
|
|
- [ 'node_use_openssl=="true"', {
|
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_OPENSSL=1',
|
2017-11-01 20:18:56 +01:00
|
|
|
- ],
|
2021-09-10 07:38:48 +02:00
|
|
|
- 'sources': [
|
|
|
|
- 'test/cctest/test_node_crypto.cc',
|
|
|
|
- ]
|
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
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_INSPECTOR=1',
|
|
|
|
- ],
|
2018-05-18 03:35:09 +02:00
|
|
|
- }, {
|
2019-05-06 00:13:05 +02:00
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_INSPECTOR=0',
|
|
|
|
- ]
|
2018-01-21 21:07:10 +01: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-09-22 00:22:40 +02:00
|
|
|
- # Skip cctest while building shared lib node for Windows
|
|
|
|
- [ 'OS=="win" and node_shared=="true"', {
|
|
|
|
- 'type': 'none',
|
|
|
|
- }],
|
2018-10-14 20:30:58 +02:00
|
|
|
- [ 'node_shared=="true"', {
|
|
|
|
- 'xcode_settings': {
|
|
|
|
- 'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ],
|
|
|
|
- },
|
|
|
|
- }],
|
2019-08-25 18:22:08 +02:00
|
|
|
- ['OS=="win"', {
|
|
|
|
- 'libraries': [
|
|
|
|
- 'Dbghelp.lib',
|
|
|
|
- 'winmm.lib',
|
|
|
|
- 'Ws2_32.lib',
|
|
|
|
- ],
|
|
|
|
- }],
|
2018-09-11 23:51:55 +02:00
|
|
|
- ],
|
2018-10-14 20:30:58 +02:00
|
|
|
- }, # cctest
|
2021-09-11 14:23:45 +02:00
|
|
|
-
|
|
|
|
- {
|
|
|
|
- 'target_name': 'embedtest',
|
|
|
|
- 'type': 'executable',
|
|
|
|
-
|
|
|
|
- 'dependencies': [
|
|
|
|
- '<(node_lib_target_name)',
|
|
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
|
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
|
|
|
- 'node_dtrace_header',
|
|
|
|
- 'node_dtrace_ustack',
|
|
|
|
- 'node_dtrace_provider',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'includes': [
|
|
|
|
- 'node.gypi'
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'include_dirs': [
|
|
|
|
- 'src',
|
|
|
|
- 'tools/msvs/genfiles',
|
|
|
|
- 'deps/v8/include',
|
|
|
|
- 'deps/cares/include',
|
|
|
|
- 'deps/uv/include',
|
|
|
|
- 'deps/uvwasi/include',
|
|
|
|
- 'test/embedding',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'sources': [
|
|
|
|
- 'src/node_snapshot_stub.cc',
|
|
|
|
- 'src/node_code_cache_stub.cc',
|
|
|
|
- 'test/embedding/embedtest.cc',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'conditions': [
|
|
|
|
- ['OS=="solaris"', {
|
|
|
|
- 'ldflags': [ '-I<(SHARED_INTERMEDIATE_DIR)' ]
|
|
|
|
- }],
|
|
|
|
- # 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', ],
|
|
|
|
- },
|
|
|
|
- }],
|
|
|
|
- ['OS=="win"', {
|
|
|
|
- 'libraries': [
|
|
|
|
- 'Dbghelp.lib',
|
|
|
|
- 'winmm.lib',
|
|
|
|
- 'Ws2_32.lib',
|
|
|
|
- ],
|
|
|
|
- }],
|
|
|
|
- ],
|
|
|
|
- }, # embedtest
|
2021-09-10 07:38:48 +02:00
|
|
|
|
2021-09-11 08:09:16 +02:00
|
|
|
{
|
2021-09-11 14:23:45 +02:00
|
|
|
'target_name': 'overlapped-checker',
|
2021-09-13 12:29:41 +02:00
|
|
|
@@ -1295,59 +1140,13 @@
|
2021-09-12 15:30:25 +02:00
|
|
|
'Ws2_32.lib',
|
|
|
|
],
|
|
|
|
}],
|
2021-09-13 12:29:41 +02:00
|
|
|
- ],
|
|
|
|
- }, # mkcodecache
|
|
|
|
- {
|
|
|
|
- 'target_name': 'node_mksnapshot',
|
|
|
|
- 'type': 'executable',
|
|
|
|
-
|
|
|
|
- 'dependencies': [
|
|
|
|
- '<(node_lib_target_name)',
|
|
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
|
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'includes': [
|
|
|
|
- 'node.gypi'
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'include_dirs': [
|
|
|
|
- 'src',
|
|
|
|
- 'tools/msvs/genfiles',
|
|
|
|
- 'deps/v8/include',
|
|
|
|
- 'deps/cares/include',
|
|
|
|
- 'deps/uv/include',
|
|
|
|
- 'deps/uvwasi/include',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'defines': [ 'NODE_WANT_INTERNALS=1' ],
|
|
|
|
-
|
|
|
|
- 'sources': [
|
|
|
|
- 'src/node_snapshot_stub.cc',
|
|
|
|
- 'src/node_code_cache_stub.cc',
|
|
|
|
- 'tools/snapshot/node_mksnapshot.cc',
|
|
|
|
- ],
|
|
|
|
-
|
|
|
|
- 'conditions': [
|
|
|
|
- [ 'node_use_openssl=="true"', {
|
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_OPENSSL=1',
|
|
|
|
- ],
|
|
|
|
- }],
|
|
|
|
- ['v8_enable_inspector==1', {
|
|
|
|
- 'defines': [
|
|
|
|
- 'HAVE_INSPECTOR=1',
|
|
|
|
- ],
|
|
|
|
- }],
|
|
|
|
- ['OS=="win"', {
|
2021-09-12 15:30:25 +02:00
|
|
|
+ ['target_arch=="ia32"', {
|
2021-09-13 12:29:41 +02:00
|
|
|
'libraries': [
|
|
|
|
- 'Dbghelp.lib',
|
|
|
|
- 'winmm.lib',
|
|
|
|
- 'Ws2_32.lib',
|
2021-09-12 15:30:25 +02:00
|
|
|
+ '-latomic',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
],
|
2021-09-13 12:29:41 +02:00
|
|
|
- }, # node_mksnapshot
|
|
|
|
+ }, # mkcodecache
|
2021-09-12 15:30:25 +02:00
|
|
|
], # end targets
|
2021-09-13 12:29:41 +02:00
|
|
|
|
|
|
|
'conditions': [
|