diff --git a/BUILD.gn b/BUILD.gn index 64027fc1ee..c735d5b073 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_overrides/v8.gni") @@ -411,6 +415,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.