From 979b03a19f63b1cbe02fa3df99707c3f93f7c9cf Mon Sep 17 00:00:00 2001 From: michaelbai Date: Thu, 22 Oct 2015 16:58:53 -0700 Subject: 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} --- build_overrides/v8.gni | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'build_overrides') 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", + ] + } +} -- cgit v1.1