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

238 lines
6.1 KiB
Diff
Raw Normal View History

2022-03-18 10:40:36 +01:00
diff '--color=auto' -uNr node-v16.14.2.orig/node.gyp node-v16.14.2/node.gyp
--- node-v16.14.2.orig/node.gyp 2022-03-18 15:06:23.851091188 +0530
+++ node-v16.14.2/node.gyp 2022-03-18 15:08:48.671091132 +0530
@@ -353,6 +353,7 @@
'include_dirs': [
'src',
+ 'deps/cares/src/lib',
'<(SHARED_INTERMEDIATE_DIR)' # for node_natives.h
],
'dependencies': [
2022-03-18 10:40:36 +01:00
@@ -1075,162 +1076,6 @@
}],
],
}, # fuzz_env
2017-01-09 23:30:11 +01:00
- {
- 'target_name': 'cctest',
- 'type': 'executable',
-
- 'dependencies': [
- '<(node_lib_target_name)',
2021-09-28 15:56:28 +02:00
- 'deps/googletest/googletest.gyp:gtest',
- 'deps/googletest/googletest.gyp:gtest_main',
- 'deps/histogram/histogram.gyp:histogram',
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'node_dtrace_header',
- 'node_dtrace_ustack',
- 'node_dtrace_provider',
- ],
-
- 'includes': [
- 'node.gypi'
- ],
-
2017-01-09 23:30:11 +01:00
- 'include_dirs': [
- 'src',
- 'tools/msvs/genfiles',
2017-01-09 23:30:11 +01:00
- 'deps/v8/include',
- 'deps/cares/include',
- 'deps/uv/include',
- 'deps/uvwasi/include',
- 'test/cctest',
- ],
-
2020-06-21 19:33:53 +02:00
- 'defines': [
- 'NODE_ARCH="<(target_arch)"',
- 'NODE_PLATFORM="<(OS)"',
- 'NODE_WANT_INTERNALS=1',
- ],
-
2017-01-09 23:30:11 +01:00
- 'sources': [
- 'src/node_snapshot_stub.cc',
- 'src/node_code_cache_stub.cc',
- 'test/cctest/node_test_fixture.cc',
- 'test/cctest/node_test_fixture.h',
- 'test/cctest/test_aliased_buffer.cc',
- 'test/cctest/test_base64.cc',
- 'test/cctest/test_base_object_ptr.cc',
- 'test/cctest/test_node_postmortem_metadata.cc',
- 'test/cctest/test_environment.cc',
2021-09-28 15:56:28 +02:00
- 'test/cctest/test_js_native_api_v8.cc',
- 'test/cctest/test_linked_binding.cc',
2021-09-28 15:56:28 +02:00
- 'test/cctest/test_node_api.cc',
- 'test/cctest/test_per_process.cc',
- 'test/cctest/test_platform.cc',
2020-06-21 19:33:53 +02:00
- 'test/cctest/test_json_utils.cc',
- 'test/cctest/test_sockaddr.cc',
- 'test/cctest/test_traced_value.cc',
- 'test/cctest/test_util.cc',
- 'test/cctest/test_url.cc',
- ],
-
2017-01-09 23:30:11 +01:00
- 'conditions': [
- [ 'node_use_openssl=="true"', {
- 'defines': [
- 'HAVE_OPENSSL=1',
- ],
2021-10-28 11:37:10 +02:00
- 'sources': [
- 'test/cctest/test_node_crypto.cc',
- ]
- }],
- ['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'
- ],
- 'defines': [
- 'HAVE_INSPECTOR=1',
- ],
- }, {
- 'defines': [
- 'HAVE_INSPECTOR=0',
- ]
- }],
- ['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',
- ],
- }],
- ],
- }, # cctest
2021-10-28 11:37:10 +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
2017-01-09 23:30:11 +01:00
{
2021-10-28 11:37:10 +02:00
'target_name': 'overlapped-checker',
2022-03-18 10:40:36 +01:00
@@ -1309,59 +1154,13 @@
2021-10-28 11:37:10 +02:00
'Ws2_32.lib',
],
}],
- ],
- }, # 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"', {
+ ['target_arch=="ia32"', {
'libraries': [
- 'Dbghelp.lib',
- 'winmm.lib',
- 'Ws2_32.lib',
+ '-latomic',
],
}],
],
- }, # node_mksnapshot
+ }, # mkcodecache
], # end targets
'conditions': [