Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Unified Diff: BUILD.gn

Issue 2113583002: [gn] Switch custom snapsot bot to gn (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix and rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | infra/mb/mb_config.pyl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: BUILD.gn
diff --git a/BUILD.gn b/BUILD.gn
index 404d076679584dfdccf625e010d07f68a93352dc..a1d9d684246f03b2d5d696722bc85c67b40e372f 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -28,6 +28,9 @@ declare_args() {
# Enable compiler warnings when using V8_DEPRECATE_SOON apis.
v8_imminent_deprecation_warnings = false
+ # Embeds the given script into the snapshot.
+ v8_embed_script = ""
+
# Sets -dENABLE_DISASSEMBLER.
v8_enable_disassembler = false
@@ -588,6 +591,8 @@ action("run_mksnapshot") {
script = "tools/run.py"
+ sources = []
+
outputs = [
"$target_gen_dir/snapshot.cc",
]
@@ -614,6 +619,11 @@ action("run_mksnapshot") {
rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir),
]
}
+
+ if (v8_embed_script != "") {
+ sources += [ v8_embed_script ]
+ args += [ rebase_path(v8_embed_script, root_build_dir) ]
+ }
}
###############################################################################
« no previous file with comments | « no previous file | infra/mb/mb_config.pyl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698