| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//android_webview/system_webview_apk_tmpl.gni") | 5 import("//android_webview/system_webview_apk_tmpl.gni") |
| 6 import("//android_webview/webview_repack_locales.gni") | 6 import("//android_webview/webview_repack_locales.gni") |
| 7 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
| 8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
| 9 import("//build/config/compiler/compiler.gni") |
| 9 import("//build/config/locales.gni") | 10 import("//build/config/locales.gni") |
| 10 import("//components/spellcheck/spellcheck_build_features.gni") | 11 import("//components/spellcheck/spellcheck_build_features.gni") |
| 11 import("//tools/grit/repack.gni") | 12 import("//tools/grit/repack.gni") |
| 12 import("//tools/resources/generate_resource_whitelist.gni") | 13 import("//tools/resources/generate_resource_whitelist.gni") |
| 13 | 14 |
| 14 declare_args() { | 15 declare_args() { |
| 15 # Package name of the system_webview_apk target. | 16 # Package name of the system_webview_apk target. |
| 16 system_webview_package_name = "com.android.webview" | 17 system_webview_package_name = "com.android.webview" |
| 17 } | 18 } |
| 18 | 19 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 # Chrome. | 124 # Chrome. |
| 124 android_assets("monochrome_webview_assets") { | 125 android_assets("monochrome_webview_assets") { |
| 125 sources = [ | 126 sources = [ |
| 126 webview_license_path, | 127 webview_license_path, |
| 127 ] | 128 ] |
| 128 deps = [ | 129 deps = [ |
| 129 ":generate_webview_license_notice", | 130 ":generate_webview_license_notice", |
| 130 "//third_party/icu:icu_assets", | 131 "//third_party/icu:icu_assets", |
| 131 "//v8:v8_external_startup_data_assets", | 132 "//v8:v8_external_startup_data_assets", |
| 132 ] | 133 ] |
| 133 if (android_64bit_target_cpu && build_apk_secondary_abi) { | 134 if (is_target_cpu_64bit && build_apk_secondary_abi) { |
| 134 deps += [ ":v8_snapshot_secondary_abi_assets" ] | 135 deps += [ ":v8_snapshot_secondary_abi_assets" ] |
| 135 } | 136 } |
| 136 } | 137 } |
| 137 | 138 |
| 138 android_assets("assets") { | 139 android_assets("assets") { |
| 139 deps = [ | 140 deps = [ |
| 140 ":locale_pak_assets", | 141 ":locale_pak_assets", |
| 141 ":monochrome_webview_assets", | 142 ":monochrome_webview_assets", |
| 142 ":pak_file_assets", | 143 ":pak_file_assets", |
| 143 ] | 144 ] |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 ] | 266 ] |
| 266 } | 267 } |
| 267 | 268 |
| 268 shared_library("libwebviewchromium") { | 269 shared_library("libwebviewchromium") { |
| 269 deps = [ | 270 deps = [ |
| 270 ":webview_entry_point", | 271 ":webview_entry_point", |
| 271 ] | 272 ] |
| 272 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 273 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 273 } | 274 } |
| 274 | 275 |
| 275 if (android_64bit_target_cpu) { | 276 if (is_target_cpu_64bit) { |
| 276 android_assets("v8_snapshot_secondary_abi_assets") { | 277 android_assets("v8_snapshot_secondary_abi_assets") { |
| 277 _secondary_abi_out_dir = | 278 _secondary_abi_out_dir = |
| 278 get_label_info("//v8($android_secondary_abi_toolchain)", "root_out_dir") | 279 get_label_info("//v8($android_secondary_abi_toolchain)", "root_out_dir") |
| 279 assert(android_64bit_target_cpu, | 280 assert(is_target_cpu_64bit, "32-bit targets shouldn't have secondary abi") |
| 280 "32-bit targets shouldn't have secondary abi") | |
| 281 arch_suffix = "32" | 281 arch_suffix = "32" |
| 282 renaming_sources = [ "$_secondary_abi_out_dir/snapshot_blob.bin" ] | 282 renaming_sources = [ "$_secondary_abi_out_dir/snapshot_blob.bin" ] |
| 283 renaming_destinations = [ "snapshot_blob_$arch_suffix.bin" ] | 283 renaming_destinations = [ "snapshot_blob_$arch_suffix.bin" ] |
| 284 disable_compression = true | 284 disable_compression = true |
| 285 deps = [ | 285 deps = [ |
| 286 "//v8($android_secondary_abi_toolchain)", | 286 "//v8($android_secondary_abi_toolchain)", |
| 287 ] | 287 ] |
| 288 } | 288 } |
| 289 | 289 |
| 290 shared_library("monochrome") { | 290 shared_library("monochrome") { |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 system_webview_apk_tmpl("system_webview_apk") { | 691 system_webview_apk_tmpl("system_webview_apk") { |
| 692 android_manifest = system_webview_android_manifest | 692 android_manifest = system_webview_android_manifest |
| 693 android_manifest_dep = ":system_webview_manifest" | 693 android_manifest_dep = ":system_webview_manifest" |
| 694 deps = [ | 694 deps = [ |
| 695 ":system_webview_resources", | 695 ":system_webview_resources", |
| 696 "//android_webview/glue", | 696 "//android_webview/glue", |
| 697 ] | 697 ] |
| 698 apk_name = "SystemWebView" | 698 apk_name = "SystemWebView" |
| 699 } | 699 } |
| 700 } | 700 } |
| OLD | NEW |