0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 11:35:44 +00:00
Files
termux-packages/x11-packages/chromium/9001-use-prebuilt-snapshot.patch
Chongyun Lee 63158944a3 new package: chromium (#24333)
[ci reuse]
2025-04-23 19:40:59 +08:00

33 lines
840 B
Diff

--- a/tools/v8_context_snapshot/BUILD.gn
+++ b/tools/v8_context_snapshot/BUILD.gn
@@ -36,7 +36,7 @@
]
}
-if (use_v8_context_snapshot) {
+if (use_v8_context_snapshot && false) {
action("generate_v8_context_snapshot") {
script = "//build/gn_run_binary.py"
@@ -125,3 +125,20 @@
}
}
}
+
+if (use_v8_context_snapshot) {
+ action("generate_v8_context_snapshot") {
+ script = "//v8/tools/run.py"
+ output_file = "$root_out_dir/$v8_context_snapshot_filename"
+ output_path = rebase_path(output_file, root_build_dir)
+ args = [
+ "bash", "-c",
+ "cp -f" + " " +
+ "@TERMUX_PREFIX@/opt/chromium-host-tools/$output_path" + " " +
+ "$output_path",
+ ]
+ outputs = [ output_file ]
+ sources = [ "$root_out_dir/snapshot_blob.bin" ]
+ deps = [ "//v8:run_mksnapshot_default" ]
+ }
+}