@@ -23,8 +23,54 @@ index f31d460038db2fa2fa4c47d62be3100da959978f..209f23b04663113e4f6b3c3242c0544c
2323 # We set v8_enable_pointer_compression_shared_cage to 0 always, even when
2424 # pointer compression is enabled so that we don't accidentally enable shared
2525 # cage mode when pointer compression is on.
26+ diff --git a/deps/merve/BUILD.gn b/deps/merve/BUILD.gn
27+ new file mode 100644
28+ index 0000000000000000000000000000000000000000..7bb318f8835dba6f4a6f211d8534bb6923958747
29+ --- /dev/null
30+ +++ b/deps/merve/BUILD.gn
31+ @@ -0,0 +1,14 @@
32+ + ##############################################################################
33+ + # #
34+ + # DO NOT EDIT THIS FILE! #
35+ + # #
36+ + ##############################################################################
37+ +
38+ + # This file is used by GN for building, which is NOT the build system used for
39+ + # building official binaries.
40+ + # Please modify the gyp files if you are making changes to build system.
41+ +
42+ + import("unofficial.gni")
43+ +
44+ + merve_gn_build("merve") {
45+ + }
46+ diff --git a/deps/merve/unofficial.gni b/deps/merve/unofficial.gni
47+ new file mode 100644
48+ index 0000000000000000000000000000000000000000..dfb508d1d22f84accb146620ed07d89715b367e6
49+ --- /dev/null
50+ +++ b/deps/merve/unofficial.gni
51+ @@ -0,0 +1,20 @@
52+ + # This file is used by GN for building, which is NOT the build system used for
53+ + # building official binaries.
54+ + # Please edit the gyp files if you are making changes to build system.
55+ +
56+ + # The actual configurations are put inside a template in unofficial.gni to
57+ + # prevent accidental edits from contributors.
58+ + template("merve_gn_build") {
59+ + config("merve_config") {
60+ + include_dirs = [ "." ]
61+ + }
62+ + gypi_values = exec_script("../../tools/gypi_to_gn.py",
63+ + [ rebase_path("merve.gyp") ],
64+ + "scope",
65+ + [ "merve.gyp" ])
66+ + source_set(target_name) {
67+ + forward_variables_from(invoker, "*")
68+ + public_configs = [ ":merve_config" ]
69+ + sources = gypi_values.merve_sources
70+ + }
71+ + }
2672diff --git a/node.gni b/node.gni
27- index d4438f7fd61598afac2c1e3184721a759d22b10c..e2407027ab05e59b2f0f1c213b98ea469db7a91b 100644
73+ index d4438f7fd61598afac2c1e3184721a759d22b10c..156fee33b3813fe4d94a1c9585f217a99dbfbd5f 100644
2874--- a/node.gni
2975+++ b/node.gni
3076@@ -5,10 +5,10 @@
@@ -40,7 +86,16 @@ index d4438f7fd61598afac2c1e3184721a759d22b10c..e2407027ab05e59b2f0f1c213b98ea46
4086
4187 # The location of OpenSSL - use the one from node's deps by default.
4288 node_openssl_path = "$node_path/deps/openssl"
43- @@ -50,7 +50,7 @@ declare_args() {
89+ @@ -26,8 +26,6 @@ declare_args() {
90+ # TODO(zcbenz): This is currently copied from configure.py, we should share
91+ # the list between configure.py and GN configurations.
92+ node_builtin_shareable_builtins = [
93+ - "deps/cjs-module-lexer/lexer.js",
94+ - "deps/cjs-module-lexer/dist/lexer.js",
95+ "deps/undici/undici.js",
96+ "deps/amaro/dist/index.js",
97+ ]
98+ @@ -50,7 +48,7 @@ declare_args() {
4499 node_openssl_system_ca_path = ""
45100
46101 # Initialize v8 platform during node.js startup.
@@ -49,7 +104,7 @@ index d4438f7fd61598afac2c1e3184721a759d22b10c..e2407027ab05e59b2f0f1c213b98ea46
49104
50105 # Custom build tag.
51106 node_tag = ""
52- @@ -70,10 +70 ,16 @@ declare_args() {
107+ @@ -70,10 +68 ,16 @@ declare_args() {
53108 # TODO(zcbenz): There are few broken things for now:
54109 # 1. cross-os compilation is not supported.
55110 # 2. node_mksnapshot crashes when cross-compiling for x64 from arm64.
@@ -251,10 +306,10 @@ index 856878c33681a73d41016729dabe48b0a6a80589..91a11852d206b65485fe90fd037a0bd1
251306 if sys.platform == 'win32':
252307 files = [ x.replace('\\', '/') for x in files ]
253308diff --git a/unofficial.gni b/unofficial.gni
254- index c742b62c484e9dd205eff63dcffad78c76828375..20d2483bb16e297ab5b12aab6f56948d6d25cb03 100644
309+ index c742b62c484e9dd205eff63dcffad78c76828375..bff7b0650cfe8578a044e45d0f9e352859909695 100644
255310--- a/unofficial.gni
256311+++ b/unofficial.gni
257- @@ -147,31 +147,41 @@ template("node_gn_build") {
312+ @@ -147,31 +147,42 @@ template("node_gn_build") {
258313 public_configs = [
259314 ":node_external_config",
260315 "deps/googletest:googletest_config",
@@ -273,6 +328,7 @@ index c742b62c484e9dd205eff63dcffad78c76828375..20d2483bb16e297ab5b12aab6f56948d
273328 "deps/cares",
274329 "deps/histogram",
275330 "deps/llhttp",
331+ + "deps/merve",
276332 "deps/nbytes",
277333 "deps/nghttp2",
278334- "deps/ngtcp2",
@@ -299,7 +355,7 @@ index c742b62c484e9dd205eff63dcffad78c76828375..20d2483bb16e297ab5b12aab6f56948d
299355 "$target_gen_dir/node_javascript.cc",
300356 ] + gypi_values.node_sources
301357
302- @@ -194,7 +204 ,7 @@ template("node_gn_build") {
358+ @@ -194,7 +205 ,7 @@ template("node_gn_build") {
303359 }
304360 if (node_use_openssl) {
305361 deps += [ "deps/ncrypto" ]
@@ -308,7 +364,7 @@ index c742b62c484e9dd205eff63dcffad78c76828375..20d2483bb16e297ab5b12aab6f56948d
308364 sources += gypi_values.node_crypto_sources
309365 }
310366 if (node_use_sqlite) {
311- @@ -223,6 +233 ,10 @@ template("node_gn_build") {
367+ @@ -223,6 +234 ,10 @@ template("node_gn_build") {
312368 }
313369 }
314370
@@ -319,15 +375,15 @@ index c742b62c484e9dd205eff63dcffad78c76828375..20d2483bb16e297ab5b12aab6f56948d
319375 executable(target_name) {
320376 forward_variables_from(invoker, "*")
321377
322- @@ -314,6 +328 ,7 @@ template("node_gn_build") {
378+ @@ -314,6 +329 ,7 @@ template("node_gn_build") {
323379 }
324380
325381 executable("node_js2c") {
326382+ defines = []
327383 deps = [
328384 "deps/uv",
329385 "$node_simdutf_path",
330- @@ -324,26 +339 ,75 @@ template("node_gn_build") {
386+ @@ -324,26 +340 ,75 @@ template("node_gn_build") {
331387 "src/embedded_data.cc",
332388 "src/embedded_data.h",
333389 ]
@@ -413,7 +469,7 @@ index c742b62c484e9dd205eff63dcffad78c76828375..20d2483bb16e297ab5b12aab6f56948d
413469 outputs = [ "$target_gen_dir/node_javascript.cc" ]
414470
415471 # Get the path to node_js2c executable of the host toolchain.
416- @@ -357,11 +421 ,11 @@ template("node_gn_build") {
472+ @@ -357,11 +422 ,11 @@ template("node_gn_build") {
417473 get_label_info(":node_js2c($host_toolchain)", "name") +
418474 host_executable_suffix
419475
0 commit comments