| 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("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
| 6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
| 7 import("//build/config/locales.gni") | 7 import("//build/config/locales.gni") |
| 8 import("//tools/grit/repack.gni") | 8 import("//tools/grit/repack.gni") |
| 9 import("system_webview_apk_tmpl.gni") | 9 import("system_webview_apk_tmpl.gni") |
| 10 import("webview_repack_locales.gni") | 10 import("webview_repack_locales.gni") |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 # Chrome. | 149 # Chrome. |
| 150 android_assets("monochrome_webview_assets") { | 150 android_assets("monochrome_webview_assets") { |
| 151 sources = [ | 151 sources = [ |
| 152 webview_license_path, | 152 webview_license_path, |
| 153 ] | 153 ] |
| 154 deps = [ | 154 deps = [ |
| 155 ":generate_webview_license_notice", | 155 ":generate_webview_license_notice", |
| 156 "//third_party/icu:icu_assets", | 156 "//third_party/icu:icu_assets", |
| 157 "//v8:v8_external_startup_data_assets", | 157 "//v8:v8_external_startup_data_assets", |
| 158 ] | 158 ] |
| 159 if (android_64bit_target_cpu && build_apk_secondary_abi) { |
| 160 deps += [ ":v8_snapshot_secondary_abi_assets" ] |
| 161 } |
| 159 } | 162 } |
| 160 | 163 |
| 161 android_assets("assets") { | 164 android_assets("assets") { |
| 162 deps = [ | 165 deps = [ |
| 163 ":monochrome_webview_assets", | 166 ":monochrome_webview_assets", |
| 164 ":pak_file_assets", | 167 ":pak_file_assets", |
| 165 ] | 168 ] |
| 166 } | 169 } |
| 167 | 170 |
| 168 action("generate_webview_license_notice") { | 171 action("generate_webview_license_notice") { |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 } | 392 } |
| 390 | 393 |
| 391 shared_library("libwebviewchromium") { | 394 shared_library("libwebviewchromium") { |
| 392 deps = [ | 395 deps = [ |
| 393 ":webview_entry_point", | 396 ":webview_entry_point", |
| 394 ] | 397 ] |
| 395 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 398 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 396 } | 399 } |
| 397 | 400 |
| 398 if (android_64bit_target_cpu) { | 401 if (android_64bit_target_cpu) { |
| 402 android_assets("v8_snapshot_secondary_abi_assets") { |
| 403 _secondary_abi_out_dir = |
| 404 get_label_info("//v8($android_secondary_abi_toolchain)", "root_out_dir") |
| 405 assert(android_64bit_target_cpu, |
| 406 "32-bit targets shouldn't have secondary abi") |
| 407 arch_suffix = "32" |
| 408 renaming_sources = [ "$_secondary_abi_out_dir/snapshot_blob.bin" ] |
| 409 renaming_destinations = [ "snapshot_blob_$arch_suffix.bin" ] |
| 410 disable_compression = true |
| 411 deps = [ |
| 412 "//v8($android_secondary_abi_toolchain)", |
| 413 ] |
| 414 } |
| 415 |
| 399 shared_library("monochrome") { | 416 shared_library("monochrome") { |
| 400 deps = [ | 417 deps = [ |
| 401 ":webview_entry_point", | 418 ":webview_entry_point", |
| 402 ] | 419 ] |
| 403 configs -= [ "//build/config/android:hide_native_jni_exports" ] | 420 configs -= [ "//build/config/android:hide_native_jni_exports" ] |
| 404 } | 421 } |
| 405 } | 422 } |
| 406 | 423 |
| 407 source_set("common") { | 424 source_set("common") { |
| 408 sources = [ | 425 sources = [ |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 system_webview_apk_tmpl("system_webview_apk") { | 805 system_webview_apk_tmpl("system_webview_apk") { |
| 789 android_manifest = system_webview_android_manifest | 806 android_manifest = system_webview_android_manifest |
| 790 android_manifest_dep = ":system_webview_manifest" | 807 android_manifest_dep = ":system_webview_manifest" |
| 791 deps = [ | 808 deps = [ |
| 792 ":system_webview_resources", | 809 ":system_webview_resources", |
| 793 "//android_webview/glue", | 810 "//android_webview/glue", |
| 794 ] | 811 ] |
| 795 apk_name = "SystemWebView" | 812 apk_name = "SystemWebView" |
| 796 } | 813 } |
| 797 } | 814 } |
| OLD | NEW |