summaryrefslogtreecommitdiffstats
path: root/build_overrides
diff options
context:
space:
mode:
authormichaelbai <michaelbai@chromium.org>2015-10-22 16:58:53 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-22 23:59:52 +0000
commit979b03a19f63b1cbe02fa3df99707c3f93f7c9cf (patch)
tree6f7185e47abf2c6cf3a054fb5ac0bc270ddc6147 /build_overrides
parentd5ac7d52b323d04178bba9cc746c623438d48751 (diff)
downloadchromium_src-979b03a19f63b1cbe02fa3df99707c3f93f7c9cf.zip
chromium_src-979b03a19f63b1cbe02fa3df99707c3f93f7c9cf.tar.gz
chromium_src-979b03a19f63b1cbe02fa3df99707c3f93f7c9cf.tar.bz2
Switch Chrome Android using v8 arch specific external data name
For 32-bit, natives_blob_32.bin and snapshot_blob_32.bin are used. For 64-bit, natives_blob_64.bin and natives_blob_64.bin are used. This patch also removed the existing v8 startup data in destination directory by using copy_ex to remove directory first. BUG=540788 Review URL: https://codereview.chromium.org/1400953002 Cr-Commit-Position: refs/heads/master@{#355680}
Diffstat (limited to 'build_overrides')
-rw-r--r--build_overrides/v8.gni18
1 files changed, 18 insertions, 0 deletions
diff --git a/build_overrides/v8.gni b/build_overrides/v8.gni
index ee1b666..02bb900 100644
--- a/build_overrides/v8.gni
+++ b/build_overrides/v8.gni
@@ -22,3 +22,21 @@ v8_use_external_startup_data = !(is_win || is_ios)
v8_extra_library_files = []
v8_experimental_extra_library_files =
[ "../third_party/WebKit/Source/core/streams/ByteLengthQueuingStrategy.js" ]
+
+if (is_android) {
+ v8_external_startup_data_renaming_sources = [
+ "$root_build_dir/natives_blob.bin",
+ "$root_build_dir/snapshot_blob.bin",
+ ]
+ if (current_cpu == "arm" || current_cpu == "x86" || current_cpu == "mipsel") {
+ v8_external_startup_data_renaming_destinations = [
+ "natives_blob_32.bin",
+ "snapshot_blob_32.bin",
+ ]
+ } else {
+ v8_external_startup_data_renaming_destinations = [
+ "natives_blob_64.bin",
+ "snapshot_blob_64.bin",
+ ]
+ }
+}