Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: build/config/android/internal_rules.gni

Issue 2345143002: Move language pak files to assets. (Closed)
Patch Set: Move language pak files back to assets rather than res. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # Do not add any imports to non-//build directories here. 5 # Do not add any imports to non-//build directories here.
6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in. 6 # Some projects (e.g. V8) do not have non-build directories DEPS'ed in.
7 import("//build_overrides/build.gni") 7 import("//build_overrides/build.gni")
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/sanitizers/sanitizers.gni") 9 import("//build/config/sanitizers/sanitizers.gni")
10 10
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 get_label_info(invoker.apk_under_test, "target_gen_dir") 223 get_label_info(invoker.apk_under_test, "target_gen_dir")
224 apk_under_test_name = get_label_info(invoker.apk_under_test, "name") 224 apk_under_test_name = get_label_info(invoker.apk_under_test, "name")
225 apk_under_test_config = 225 apk_under_test_config =
226 "$apk_under_test_gen_dir/$apk_under_test_name.build_config" 226 "$apk_under_test_gen_dir/$apk_under_test_name.build_config"
227 args += [ 227 args += [
228 "--tested-apk-config", 228 "--tested-apk-config",
229 rebase_path(apk_under_test_config, root_build_dir), 229 rebase_path(apk_under_test_config, root_build_dir),
230 ] 230 ]
231 } 231 }
232 232
233 if (is_android_assets) { 233 if (is_android_assets || is_apk) {
234 if (defined(invoker.asset_sources)) { 234 if (defined(invoker.asset_sources)) {
235 _rebased_asset_sources = 235 _rebased_asset_sources =
236 rebase_path(invoker.asset_sources, root_build_dir) 236 rebase_path(invoker.asset_sources, root_build_dir)
237 args += [ "--asset-sources=$_rebased_asset_sources" ] 237 args += [ "--asset-sources=$_rebased_asset_sources" ]
238 } 238 }
239 if (defined(invoker.asset_renaming_sources)) { 239 if (defined(invoker.asset_renaming_sources)) {
240 _rebased_asset_renaming_sources = 240 _rebased_asset_renaming_sources =
241 rebase_path(invoker.asset_renaming_sources, root_build_dir) 241 rebase_path(invoker.asset_renaming_sources, root_build_dir)
242 args += [ "--asset-renaming-sources=$_rebased_asset_renaming_sources" ] 242 args += [ "--asset-renaming-sources=$_rebased_asset_renaming_sources" ]
243 243
244 # These are zip paths, so no need to rebase. 244 # These are zip paths, so no need to rebase.
245 args += [ "--asset-renaming-destinations=${invoker.asset_renaming_destin ations}" ] 245 args += [ "--asset-renaming-destinations=${invoker.asset_renaming_destin ations}" ]
246 } 246 }
247 if (defined(invoker.disable_compression) && invoker.disable_compression) { 247 if (defined(invoker.disable_compression) && invoker.disable_compression) {
248 args += [ "--disable-asset-compression" ] 248 args += [ "--disable-asset-compression" ]
249 } 249 }
250 if (defined(invoker.is_locale_asset) && invoker.is_locale_asset) {
251 args += [ "--is-locale-asset" ]
252 }
253 if (defined(invoker.has_alternative_locale_asset) &&
254 invoker.has_alternative_locale_asset) {
255 args += [ "--has-alternative-locale-asset" ]
256 }
250 } 257 }
251 258
252 if (is_android_resources || is_apk) { 259 if (is_android_resources || is_apk) {
253 assert(defined(invoker.resources_zip)) 260 assert(defined(invoker.resources_zip))
254 args += [ 261 args += [
255 "--resources-zip", 262 "--resources-zip",
256 rebase_path(invoker.resources_zip, root_build_dir), 263 rebase_path(invoker.resources_zip, root_build_dir),
257 ] 264 ]
258 if (defined(invoker.android_manifest)) { 265 if (defined(invoker.android_manifest)) {
259 inputs += [ invoker.android_manifest ] 266 inputs += [ invoker.android_manifest ]
260 args += [ 267 args += [
261 "--android-manifest", 268 "--android-manifest",
262 rebase_path(invoker.android_manifest, root_build_dir), 269 rebase_path(invoker.android_manifest, root_build_dir),
263 ] 270 ]
264 } else { 271 } else {
265 assert(!is_apk, "apk build configs require an android_manifest") 272 assert(!is_apk, "apk build configs require an android_manifest")
266 } 273 }
267 if (defined(invoker.custom_package)) { 274 if (defined(invoker.custom_package)) {
268 args += [ 275 args += [
269 "--package-name", 276 "--package-name",
270 invoker.custom_package, 277 invoker.custom_package,
271 ] 278 ]
272 } 279 }
273 if (defined(invoker.r_text)) { 280 if (defined(invoker.r_text)) {
274 args += [ 281 args += [
275 "--r-text", 282 "--r-text",
276 rebase_path(invoker.r_text, root_build_dir), 283 rebase_path(invoker.r_text, root_build_dir),
277 ] 284 ]
278 } 285 }
279 if (defined(invoker.is_locale_resource) && invoker.is_locale_resource) {
280 args += [ "--is-locale-resource" ]
281 }
282 if (defined(invoker.has_alternative_locale_resource) &&
283 invoker.has_alternative_locale_resource) {
284 args += [ "--has-alternative-locale-resource" ]
285 }
286 } 286 }
287 287
288 if (is_android_resources && defined(invoker.resource_dirs)) { 288 if (is_android_resources && defined(invoker.resource_dirs)) {
289 resource_dirs = rebase_path(invoker.resource_dirs, root_build_dir) 289 resource_dirs = rebase_path(invoker.resource_dirs, root_build_dir)
290 args += [ "--resource-dirs=$resource_dirs" ] 290 args += [ "--resource-dirs=$resource_dirs" ]
291 } 291 }
292 292
293 if (is_apk) { 293 if (is_apk) {
294 if (defined(invoker.shared_libraries_runtime_deps_file)) { 294 if (defined(invoker.shared_libraries_runtime_deps_file)) {
295 # Don't list shared_libraries_runtime_deps_file as an input in order to 295 # Don't list shared_libraries_runtime_deps_file as an input in order to
(...skipping 2397 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 rebase_path(root_build_dir, root_build_dir), 2693 rebase_path(root_build_dir, root_build_dir),
2694 "--packed-libraries-dir", 2694 "--packed-libraries-dir",
2695 rebase_path(_packed_libraries_dir, root_build_dir), 2695 rebase_path(_packed_libraries_dir, root_build_dir),
2696 "--libraries=${invoker.libraries_filearg}", 2696 "--libraries=${invoker.libraries_filearg}",
2697 "--filelistjson", 2697 "--filelistjson",
2698 rebase_path(invoker.file_list_json, root_build_dir), 2698 rebase_path(invoker.file_list_json, root_build_dir),
2699 ] 2699 ]
2700 } 2700 }
2701 } 2701 }
2702 } 2702 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698