@@ -882,10 +882,10 @@ index 0000000000000000000000000000000000000000..f13b471d17128468bed06e66bd03a2ea
882
882
+ }
883
883
diff --git a/filenames.json b/filenames.json
884
884
new file mode 100644
885
- index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792f2119fcb
885
+ index 0000000000000000000000000000000000000000..bfe6555be5239c6d9cad59e8b845638d50f31ee3
886
886
--- /dev/null
887
887
+++ b/filenames.json
888
- @@ -0,0 +1,442 @@
888
+ @@ -0,0 +1,447 @@
889
889
+ // This file is automatically generated by generate_gn_filenames_json.py
890
890
+ // DO NOT EDIT
891
891
+ {
@@ -1051,6 +1051,7 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
1051
1051
+ "lib/internal/fixed_queue.js",
1052
1052
+ "lib/internal/freelist.js",
1053
1053
+ "lib/internal/freeze_intrinsics.js",
1054
+ + "lib/internal/fs/dir.js",
1054
1055
+ "lib/internal/fs/promises.js",
1055
1056
+ "lib/internal/fs/read_file_context.js",
1056
1057
+ "lib/internal/fs/rimraf.js",
@@ -1105,6 +1106,8 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
1105
1106
+ "lib/internal/repl/history.js",
1106
1107
+ "lib/internal/repl/utils.js",
1107
1108
+ "lib/internal/socket_list.js",
1109
+ + "lib/internal/source_map/source_map.js",
1110
+ + "lib/internal/source_map/source_map_cache.js",
1108
1111
+ "lib/internal/test/binding.js",
1109
1112
+ "lib/internal/timers.js",
1110
1113
+ "lib/internal/tls.js",
@@ -1190,6 +1193,7 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
1190
1193
+ "src/node_constants.cc",
1191
1194
+ "src/node_contextify.cc",
1192
1195
+ "src/node_credentials.cc",
1196
+ + "src/node_dir.cc",
1193
1197
+ "src/node_domain.cc",
1194
1198
+ "src/node_env_var.cc",
1195
1199
+ "src/node_errors.cc",
@@ -1271,6 +1275,7 @@ index 0000000000000000000000000000000000000000..be8613d11f9f5b1c6604257edf707792
1271
1275
+ "src/node_constants.h",
1272
1276
+ "src/node_context_data.h",
1273
1277
+ "src/node_contextify.h",
1278
+ + "src/node_dir.h",
1274
1279
+ "src/node_errors.h",
1275
1280
+ "src/node_file.h",
1276
1281
+ "src/node_http_parser_impl.h",
@@ -1534,7 +1539,7 @@ index 0000000000000000000000000000000000000000..f3c5c798c0aefcb8cf9b1570a7b4817c
1534
1539
+ args = rebase_path(inputs + outputs, root_build_dir)
1535
1540
+ }
1536
1541
diff --git a/src/node_version.h b/src/node_version.h
1537
- index 2d105483ba10533d992de3265121e6ab9edce2ed..8a8fd5f7fad4a69b65e06d67225a398385d3bbbf 100644
1542
+ index a61a186edd3c92d6f0bd760a9990b5c8ed57e6fa..e4963fdfd9b93a6f50a4f1035f63e95432dd8d8e 100644
1538
1543
--- a/src/node_version.h
1539
1544
+++ b/src/node_version.h
1540
1545
@@ -89,7 +89,10 @@
@@ -1666,25 +1671,25 @@ index 0000000000000000000000000000000000000000..3088ae4bdf814ae255c9805ebd393b2e
1666
1671
+
1667
1672
+ out_file.writelines(new_contents)
1668
1673
diff --git a/tools/js2c.py b/tools/js2c.py
1669
- index 0189dd762919162c8a897d291bdda3cfd600eab6..7b3e90af88b873c32f8ed51712f7dfdff3c1c706 100755
1674
+ index 1346b2a87046d3472577875c887b3b44a63280ed..752344d68c3f63b4c5e491b33d4576ed48f8b74f 100755
1670
1675
--- a/tools/js2c.py
1671
1676
+++ b/tools/js2c.py
1672
- @@ -261,9 +261,17 @@ def NormalizeFileName(filename):
1677
+ @@ -261,10 +261,18 @@ def NormalizeFileName(filename):
1673
1678
split = ['internal'] + split
1674
1679
else: # `lib/**/*.js` so drop the 'lib' part
1675
1680
split = split[1:]
1676
1681
+
1677
1682
if len(split):
1678
1683
filename = '/'.join(split)
1679
1684
- return os.path.splitext(filename)[0]
1680
- +
1685
+
1681
1686
+ # Electron-specific: when driving the node build from Electron, we generate
1682
1687
+ # config.gypi in a separate directory and pass the absolute path to js2c.
1683
1688
+ # This overrides the absolute path so that the variable names in the
1684
1689
+ # generated C are as if it was in the root node directory.
1685
1690
+ if filename.endswith("/config.gypi"):
1686
1691
+ filename = "config.gypi"
1687
-
1692
+ +
1688
1693
+ return os.path.splitext(filename)[0]
1689
1694
1690
1695
def JS2C(source_files, target):
0 commit comments