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

Unified Diff: BUILD.gn

Issue 1412333005: Add v8_external_startup_data GN rule (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | no next file » | 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 6f60384759c64d28349d98bd6d4ab8c64493b9cd..3168a2298907fd722b3c70cf188db486f5112f51 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -7,6 +7,10 @@ import("//build/config/arm.gni")
import("//build/config/mips.gni")
import("//build/config/sanitizers/sanitizers.gni")
+if (is_android) {
+ import("//build/config/android/rules.gni")
+}
+
# Because standalone V8 builds are not supported, assume this is part of a
# Chromium build.
import("//build/module_args/v8.gni")
@@ -407,6 +411,21 @@ action("d8_js2c") {
rebase_path(inputs, root_build_dir)
}
+if (is_android) {
+ android_assets("v8_external_startup_data_assets") {
+ if (v8_use_external_startup_data) {
+ deps = [
+ "//v8",
+ ]
+ sources = [
+ "$root_out_dir/natives_blob.bin",
+ "$root_out_dir/snapshot_blob.bin",
+ ]
+ disable_compression = true
+ }
+ }
+}
+
if (v8_use_external_startup_data) {
action("natives_blob") {
visibility = [ ":*" ] # Only targets in this file can depend on this.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698