| 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("//tools/resources/generate_resource_whitelist.gni") | 9 import("//tools/resources/generate_resource_whitelist.gni") |
| 10 import("system_webview_apk_tmpl.gni") | 10 import("system_webview_apk_tmpl.gni") |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 output_locales = locales | 46 output_locales = locales |
| 47 | 47 |
| 48 if (enable_resource_whitelist_generation) { | 48 if (enable_resource_whitelist_generation) { |
| 49 repack_whitelist = system_webview_pak_whitelist | 49 repack_whitelist = system_webview_pak_whitelist |
| 50 deps = [ | 50 deps = [ |
| 51 ":system_webview_pak_whitelist", | 51 ":system_webview_pak_whitelist", |
| 52 ] | 52 ] |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 | 55 |
| 56 android_assets("locale_pak_assets") { | 56 locale_pak_resources("locale_paks") { |
| 57 disable_compression = true | |
| 58 sources = [] | 57 sources = [] |
| 59 foreach(_locale, locales) { | 58 foreach(_locale, locales) { |
| 60 sources += [ "$root_out_dir/android_webview/locales/$_locale.pak" ] | 59 sources += [ "$root_out_dir/android_webview/locales/$_locale.pak" ] |
| 61 } | 60 } |
| 62 deps = [ | 61 deps = [ |
| 63 ":repack_locales", | 62 ":repack_locales", |
| 64 ] | 63 ] |
| 65 } | 64 } |
| 66 | 65 |
| 67 repack("repack_pack") { | 66 repack("repack_pack") { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 "//third_party/icu:icu_assets", | 128 "//third_party/icu:icu_assets", |
| 130 "//v8:v8_external_startup_data_assets", | 129 "//v8:v8_external_startup_data_assets", |
| 131 ] | 130 ] |
| 132 if (android_64bit_target_cpu && build_apk_secondary_abi) { | 131 if (android_64bit_target_cpu && build_apk_secondary_abi) { |
| 133 deps += [ ":v8_snapshot_secondary_abi_assets" ] | 132 deps += [ ":v8_snapshot_secondary_abi_assets" ] |
| 134 } | 133 } |
| 135 } | 134 } |
| 136 | 135 |
| 137 android_assets("assets") { | 136 android_assets("assets") { |
| 138 deps = [ | 137 deps = [ |
| 139 ":locale_pak_assets", | |
| 140 ":monochrome_webview_assets", | 138 ":monochrome_webview_assets", |
| 141 ":pak_file_assets", | 139 ":pak_file_assets", |
| 142 ] | 140 ] |
| 143 } | 141 } |
| 144 | 142 |
| 145 action("generate_webview_license_notice") { | 143 action("generate_webview_license_notice") { |
| 146 script = "tools/webview_licenses.py" | 144 script = "tools/webview_licenses.py" |
| 147 inputs = exec_script("//android_webview/tools/webview_licenses.py", | 145 inputs = exec_script("//android_webview/tools/webview_licenses.py", |
| 148 [ "gn_notice_deps" ], | 146 [ "gn_notice_deps" ], |
| 149 "value") | 147 "value") |
| 150 inputs += [ "tools/licenses_notice.tmpl" ] | 148 inputs += [ "tools/licenses_notice.tmpl" ] |
| 151 outputs = [ | 149 outputs = [ |
| 152 webview_license_path, | 150 webview_license_path, |
| 153 ] | 151 ] |
| 154 args = [ | 152 args = [ |
| 155 "notice", | 153 "notice", |
| 156 rebase_path(webview_license_path), | 154 rebase_path(webview_license_path), |
| 157 ] | 155 ] |
| 158 } | 156 } |
| 159 | 157 |
| 160 android_resources("system_webview_resources") { | 158 android_resources("system_webview_resources") { |
| 161 resource_dirs = [ "apk/java/res" ] | 159 resource_dirs = [ "apk/java/res" ] |
| 162 custom_package = system_webview_package_name | 160 custom_package = system_webview_package_name |
| 163 } | 161 } |
| 164 | 162 |
| 165 android_resources("resources") { | 163 android_resources("resources") { |
| 166 resource_dirs = [ "java/res" ] | 164 resource_dirs = [ "java/res" ] |
| 167 custom_package = "org.chromium.android_webview" | 165 custom_package = "org.chromium.android_webview" |
| 168 deps = [ | 166 deps = [ |
| 167 ":locale_paks", |
| 169 ":strings_grd", | 168 ":strings_grd", |
| 170 ] | 169 ] |
| 171 } | 170 } |
| 172 | 171 |
| 173 grit("generate_aw_resources") { | 172 grit("generate_aw_resources") { |
| 174 source = "ui/aw_resources.grd" | 173 source = "ui/aw_resources.grd" |
| 175 outputs = [ | 174 outputs = [ |
| 176 "grit/aw_resources.h", | 175 "grit/aw_resources.h", |
| 177 "aw_resources.pak", | 176 "aw_resources.pak", |
| 178 ] | 177 ] |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 system_webview_apk_tmpl("system_webview_apk") { | 693 system_webview_apk_tmpl("system_webview_apk") { |
| 695 android_manifest = system_webview_android_manifest | 694 android_manifest = system_webview_android_manifest |
| 696 android_manifest_dep = ":system_webview_manifest" | 695 android_manifest_dep = ":system_webview_manifest" |
| 697 deps = [ | 696 deps = [ |
| 698 ":system_webview_resources", | 697 ":system_webview_resources", |
| 699 "//android_webview/glue", | 698 "//android_webview/glue", |
| 700 ] | 699 ] |
| 701 apk_name = "SystemWebView" | 700 apk_name = "SystemWebView" |
| 702 } | 701 } |
| 703 } | 702 } |
| OLD | NEW |