mirror of
https://github.com/termux/termux-packages.git
synced 2024-12-11 23:00:52 +00:00
381 lines
9.7 KiB
Diff
381 lines
9.7 KiB
Diff
diff -uNr node-v20.17.0/node.gyp node-v20.17.0.mod/node.gyp
|
|
--- node-v20.17.0/node.gyp 2024-08-21 15:35:29.000000000 +0300
|
|
+++ node-v20.17.0.mod/node.gyp 2024-09-08 02:14:28.718416719 +0300
|
|
@@ -529,7 +529,8 @@
|
|
],
|
|
|
|
'sources': [
|
|
- 'src/node_main.cc'
|
|
+ 'src/node_main.cc',
|
|
+ 'src/getaddrinfo.c'
|
|
],
|
|
|
|
'dependencies': [
|
|
@@ -1008,296 +1009,6 @@
|
|
},
|
|
],
|
|
}, # node_lib_target_name
|
|
- { # fuzz_env
|
|
- 'target_name': 'fuzz_env',
|
|
- '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',
|
|
- 'test/cctest',
|
|
- ],
|
|
- 'defines': [
|
|
- 'NODE_ARCH="<(target_arch)"',
|
|
- 'NODE_PLATFORM="<(OS)"',
|
|
- 'NODE_WANT_INTERNALS=1',
|
|
- ],
|
|
- 'sources': [
|
|
- 'src/node_snapshot_stub.cc',
|
|
- 'test/fuzzers/fuzz_env.cc',
|
|
- ],
|
|
- 'conditions': [
|
|
- ['OS=="linux"', {
|
|
- 'ldflags': [ '-fsanitize=fuzzer' ]
|
|
- }],
|
|
- # Ensure that ossfuzz flag has been set and that we are on Linux
|
|
- [ 'OS!="linux" or ossfuzz!="true"', {
|
|
- 'type': 'none',
|
|
- }],
|
|
- # Avoid excessive LTO
|
|
- ['enable_lto=="true"', {
|
|
- 'ldflags': [ '-fno-lto' ],
|
|
- }],
|
|
- ],
|
|
- }, # fuzz_env
|
|
- { # fuzz_ClientHelloParser.cc
|
|
- 'target_name': 'fuzz_ClientHelloParser',
|
|
- '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',
|
|
- 'test/cctest',
|
|
- ],
|
|
- 'defines': [
|
|
- 'NODE_ARCH="<(target_arch)"',
|
|
- 'NODE_PLATFORM="<(OS)"',
|
|
- 'NODE_WANT_INTERNALS=1',
|
|
- ],
|
|
- 'sources': [
|
|
- 'src/node_snapshot_stub.cc',
|
|
- 'test/fuzzers/fuzz_ClientHelloParser.cc',
|
|
- ],
|
|
- 'conditions': [
|
|
- ['OS=="linux"', {
|
|
- 'ldflags': [ '-fsanitize=fuzzer' ]
|
|
- }],
|
|
- # Ensure that ossfuzz flag has been set and that we are on Linux
|
|
- [ 'OS!="linux" or ossfuzz!="true"', {
|
|
- 'type': 'none',
|
|
- }],
|
|
- # Avoid excessive LTO
|
|
- ['enable_lto=="true"', {
|
|
- 'ldflags': [ '-fno-lto' ],
|
|
- }],
|
|
- ],
|
|
- }, # fuzz_ClientHelloParser.cc
|
|
- { # fuzz_strings
|
|
- 'target_name': 'fuzz_strings',
|
|
- 'type': 'executable',
|
|
- 'dependencies': [
|
|
- '<(node_lib_target_name)',
|
|
- 'deps/googletest/googletest.gyp:gtest_prod',
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
|
- 'deps/ada/ada.gyp:ada',
|
|
- ],
|
|
- 'includes': [
|
|
- 'node.gypi'
|
|
- ],
|
|
- 'include_dirs': [
|
|
- 'src',
|
|
- 'tools/msvs/genfiles',
|
|
- 'deps/v8/include',
|
|
- 'deps/cares/include',
|
|
- 'deps/uv/include',
|
|
- 'deps/uvwasi/include',
|
|
- 'test/cctest',
|
|
- ],
|
|
- 'defines': [
|
|
- 'NODE_ARCH="<(target_arch)"',
|
|
- 'NODE_PLATFORM="<(OS)"',
|
|
- 'NODE_WANT_INTERNALS=1',
|
|
- ],
|
|
- 'sources': [
|
|
- 'src/node_snapshot_stub.cc',
|
|
- 'test/fuzzers/fuzz_strings.cc',
|
|
- ],
|
|
- 'conditions': [
|
|
- ['OS=="linux"', {
|
|
- 'ldflags': [ '-fsanitize=fuzzer' ]
|
|
- }],
|
|
- # Ensure that ossfuzz flag has been set and that we are on Linux
|
|
- [ 'OS!="linux" or ossfuzz!="true"', {
|
|
- 'type': 'none',
|
|
- }],
|
|
- # Avoid excessive LTO
|
|
- ['enable_lto=="true"', {
|
|
- 'ldflags': [ '-fno-lto' ],
|
|
- }],
|
|
- ],
|
|
- }, # fuzz_strings
|
|
- {
|
|
- 'target_name': 'cctest',
|
|
- 'type': 'executable',
|
|
-
|
|
- 'dependencies': [
|
|
- '<(node_lib_target_name)',
|
|
- 'deps/base64/base64.gyp:base64',
|
|
- 'deps/googletest/googletest.gyp:gtest',
|
|
- 'deps/googletest/googletest.gyp:gtest_main',
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
|
- 'deps/simdutf/simdutf.gyp:simdutf',
|
|
- 'deps/ada/ada.gyp:ada',
|
|
- ],
|
|
-
|
|
- 'includes': [
|
|
- 'node.gypi'
|
|
- ],
|
|
-
|
|
- 'include_dirs': [
|
|
- 'src',
|
|
- 'tools/msvs/genfiles',
|
|
- 'deps/v8/include',
|
|
- 'deps/cares/include',
|
|
- 'deps/uv/include',
|
|
- 'deps/uvwasi/include',
|
|
- 'test/cctest',
|
|
- ],
|
|
-
|
|
- 'defines': [
|
|
- 'NODE_ARCH="<(target_arch)"',
|
|
- 'NODE_PLATFORM="<(OS)"',
|
|
- 'NODE_WANT_INTERNALS=1',
|
|
- ],
|
|
-
|
|
- 'sources': [ '<@(node_cctest_sources)' ],
|
|
-
|
|
- 'conditions': [
|
|
- [ 'node_use_openssl=="true"', {
|
|
- 'defines': [
|
|
- 'HAVE_OPENSSL=1',
|
|
- ],
|
|
- 'sources': [ '<@(node_cctest_openssl_sources)' ],
|
|
- }],
|
|
- ['v8_enable_inspector==1', {
|
|
- 'defines': [
|
|
- 'HAVE_INSPECTOR=1',
|
|
- ],
|
|
- 'sources': [ '<@(node_cctest_inspector_sources)' ],
|
|
- }, {
|
|
- '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',
|
|
- ],
|
|
- }],
|
|
- # Avoid excessive LTO
|
|
- ['enable_lto=="true"', {
|
|
- 'ldflags': [ '-fno-lto' ],
|
|
- }],
|
|
- ],
|
|
- }, # cctest
|
|
-
|
|
- {
|
|
- 'target_name': 'embedtest',
|
|
- 'type': 'executable',
|
|
-
|
|
- 'dependencies': [
|
|
- '<(node_lib_target_name)',
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
|
- 'deps/ada/ada.gyp:ada',
|
|
- ],
|
|
-
|
|
- 'includes': [
|
|
- 'node.gypi'
|
|
- ],
|
|
-
|
|
- 'include_dirs': [
|
|
- 'src',
|
|
- 'tools',
|
|
- 'tools/msvs/genfiles',
|
|
- 'deps/v8/include',
|
|
- 'deps/cares/include',
|
|
- 'deps/uv/include',
|
|
- 'deps/uvwasi/include',
|
|
- 'test/embedding',
|
|
- ],
|
|
-
|
|
- 'sources': [
|
|
- 'src/node_snapshot_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',
|
|
- ],
|
|
- }],
|
|
- # Avoid excessive LTO
|
|
- ['enable_lto=="true"', {
|
|
- 'ldflags': [ '-fno-lto' ],
|
|
- }],
|
|
- ],
|
|
- }, # embedtest
|
|
-
|
|
- {
|
|
- 'target_name': 'overlapped-checker',
|
|
- 'type': 'executable',
|
|
-
|
|
- 'conditions': [
|
|
- ['OS=="win"', {
|
|
- 'sources': [
|
|
- 'test/overlapped-checker/main_win.c'
|
|
- ],
|
|
- }],
|
|
- ['OS!="win"', {
|
|
- 'sources': [
|
|
- 'test/overlapped-checker/main_unix.c'
|
|
- ],
|
|
- }],
|
|
- # Avoid excessive LTO
|
|
- ['enable_lto=="true"', {
|
|
- 'ldflags': [ '-fno-lto' ],
|
|
- }],
|
|
- ]
|
|
- }, # overlapped-checker
|
|
{
|
|
'target_name': 'node_js2c',
|
|
'type': 'executable',
|
|
@@ -1334,69 +1045,7 @@
|
|
}],
|
|
]
|
|
},
|
|
- {
|
|
- 'target_name': 'node_mksnapshot',
|
|
- 'type': 'executable',
|
|
-
|
|
- 'dependencies': [
|
|
- '<(node_lib_target_name)',
|
|
- 'deps/histogram/histogram.gyp:histogram',
|
|
- 'deps/uvwasi/uvwasi.gyp:uvwasi',
|
|
- 'deps/ada/ada.gyp:ada',
|
|
- ],
|
|
-
|
|
- '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',
|
|
- 'tools/snapshot/node_mksnapshot.cc',
|
|
- ],
|
|
-
|
|
- 'conditions': [
|
|
- ['node_write_snapshot_as_array_literals=="true"', {
|
|
- 'defines': [ 'NODE_MKSNAPSHOT_USE_ARRAY_LITERALS=1' ],
|
|
- }],
|
|
- [ 'node_use_openssl=="true"', {
|
|
- 'defines': [
|
|
- 'HAVE_OPENSSL=1',
|
|
- ],
|
|
- }],
|
|
- [ 'node_use_node_code_cache=="true"', {
|
|
- 'defines': [
|
|
- 'NODE_USE_NODE_CODE_CACHE=1',
|
|
- ],
|
|
- }],
|
|
- ['v8_enable_inspector==1', {
|
|
- 'defines': [
|
|
- 'HAVE_INSPECTOR=1',
|
|
- ],
|
|
- }],
|
|
- ['OS=="win"', {
|
|
- 'libraries': [
|
|
- 'Dbghelp.lib',
|
|
- 'winmm.lib',
|
|
- 'Ws2_32.lib',
|
|
- ],
|
|
- }],
|
|
- # Avoid excessive LTO
|
|
- ['enable_lto=="true"', {
|
|
- 'ldflags': [ '-fno-lto' ],
|
|
- }],
|
|
- ],
|
|
- }, # node_mksnapshot
|
|
], # end targets
|
|
|
|
'conditions': [
|