aports/main/nodejs/unbundle-ada-simdjson-simdutf.patch
2024-11-17 01:26:35 +01:00

97 lines
2.9 KiB
Diff

Patch-Source: https://github.com/nodejs/node/pull/55886
diff --git a/node.gyp b/node.gyp
index 5b5b2b7c1c..ae21978922 100644
--- a/node.gyp
+++ b/node.gyp
@@ -849,9 +849,6 @@
'dependencies': [
'deps/googletest/googletest.gyp:gtest_prod',
'deps/histogram/histogram.gyp:histogram',
- 'deps/simdjson/simdjson.gyp:simdjson',
- 'deps/simdutf/simdutf.gyp:simdutf',
- 'deps/ada/ada.gyp:ada',
'deps/nbytes/nbytes.gyp:nbytes',
'node_js2c#host',
],
@@ -1125,7 +1122,6 @@
'deps/googletest/googletest.gyp:gtest_prod',
'deps/histogram/histogram.gyp:histogram',
'deps/uvwasi/uvwasi.gyp:uvwasi',
- 'deps/ada/ada.gyp:ada',
'deps/nbytes/nbytes.gyp:nbytes',
],
'includes': [
@@ -1172,9 +1168,6 @@
'deps/googletest/googletest.gyp:gtest',
'deps/googletest/googletest.gyp:gtest_main',
'deps/histogram/histogram.gyp:histogram',
- 'deps/simdjson/simdjson.gyp:simdjson',
- 'deps/simdutf/simdutf.gyp:simdutf',
- 'deps/ada/ada.gyp:ada',
'deps/nbytes/nbytes.gyp:nbytes',
],
@@ -1252,7 +1245,6 @@
'dependencies': [
'<(node_lib_target_name)',
'deps/histogram/histogram.gyp:histogram',
- 'deps/ada/ada.gyp:ada',
'deps/nbytes/nbytes.gyp:nbytes',
],
@@ -1327,9 +1319,6 @@
'target_name': 'node_js2c',
'type': 'executable',
'toolsets': ['host'],
- 'dependencies': [
- 'deps/simdutf/simdutf.gyp:simdutf#host',
- ],
'include_dirs': [
'tools',
'src',
@@ -1341,6 +1330,9 @@
'src/embedded_data.cc',
],
'conditions': [
+ [ 'node_shared_simdutf=="false"', {
+ 'dependencies': [ 'deps/simdutf/simdutf.gyp:simdutf#host' ],
+ }],
[ 'node_shared_libuv=="false"', {
'dependencies': [ 'deps/uv/uv.gyp:libuv#host' ],
}],
@@ -1366,10 +1358,7 @@
'dependencies': [
'<(node_lib_target_name)',
'deps/histogram/histogram.gyp:histogram',
- 'deps/ada/ada.gyp:ada',
'deps/nbytes/nbytes.gyp:nbytes',
- 'deps/simdjson/simdjson.gyp:simdjson',
- 'deps/simdutf/simdutf.gyp:simdutf',
],
'includes': [
diff --git a/node.gypi b/node.gypi
index 9c989022a9..c61e9b170a 100644
--- a/node.gypi
+++ b/node.gypi
@@ -212,6 +212,18 @@
'dependencies': [ 'deps/nghttp2/nghttp2.gyp:nghttp2' ],
}],
+ [ 'node_shared_ada=="false"', {
+ 'dependencies': [ 'deps/ada/ada.gyp:ada' ],
+ }],
+
+ [ 'node_shared_simdjson=="false"', {
+ 'dependencies': [ 'deps/simdjson/simdjson.gyp:simdjson' ],
+ }],
+
+ [ 'node_shared_simdutf=="false"', {
+ 'dependencies': [ 'deps/simdutf/simdutf.gyp:simdutf' ],
+ }],
+
[ 'node_shared_brotli=="false"', {
'dependencies': [ 'deps/brotli/brotli.gyp:brotli' ],
}],