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

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

Issue 708883003: Add support for shared library resources to java_apk build rules. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 import("//base/android/linker/config.gni") 5 import("//base/android/linker/config.gni")
6 import("//build/config/android/config.gni") 6 import("//build/config/android/config.gni")
7 import("//build/config/android/internal_rules.gni") 7 import("//build/config/android/internal_rules.gni")
8 import("//tools/grit/grit_rule.gni") 8 import("//tools/grit/grit_rule.gni")
9 import("//tools/relocation_packer/config.gni") 9 import("//tools/relocation_packer/config.gni")
10 10
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 # listed in deps will be included by libraries/apks that depend on this 470 # listed in deps will be included by libraries/apks that depend on this
471 # target. 471 # target.
472 # resource_dirs: List of directories containing resources for this target. 472 # resource_dirs: List of directories containing resources for this target.
473 # android_manifest: AndroidManifest.xml for this target. Defaults to 473 # android_manifest: AndroidManifest.xml for this target. Defaults to
474 # //build/android/AndroidManifest.xml. 474 # //build/android/AndroidManifest.xml.
475 # custom_package: java package for generated .java files. 475 # custom_package: java package for generated .java files.
476 # v14_verify_only: If true, don't generate v14/v17 resources and just verify 476 # v14_verify_only: If true, don't generate v14/v17 resources and just verify
477 # that the resources are v14-compliant (see 477 # that the resources are v14-compliant (see
478 # build/android/gyp/generate_v14_compatible_resources.py). Defaults to 478 # build/android/gyp/generate_v14_compatible_resources.py). Defaults to
479 # false. 479 # false.
480 # shared_resources: If true make a resource package that can be loaded by a
481 # different application at runtime to access the package's resources.
480 # 482 #
481 # Example 483 # Example
482 # android_resources("foo_resources") { 484 # android_resources("foo_resources") {
483 # deps = [":foo_strings_grd"] 485 # deps = [":foo_strings_grd"]
484 # resource_dirs = ["res"] 486 # resource_dirs = ["res"]
485 # custom_package = "org.chromium.foo" 487 # custom_package = "org.chromium.foo"
486 # } 488 # }
487 template("android_resources") { 489 template("android_resources") {
488 if (defined(invoker.testonly)) { testonly = invoker.testonly } 490 if (defined(invoker.testonly)) { testonly = invoker.testonly }
489 491
(...skipping 21 matching lines...) Expand all
511 513
512 process_resources("${target_name}__process_resources") { 514 process_resources("${target_name}__process_resources") {
513 resource_dirs = invoker.resource_dirs 515 resource_dirs = invoker.resource_dirs
514 if (defined(invoker.custom_package)) { 516 if (defined(invoker.custom_package)) {
515 custom_package = invoker.custom_package 517 custom_package = invoker.custom_package
516 } 518 }
517 519
518 if (defined(invoker.v14_verify_only)) { 520 if (defined(invoker.v14_verify_only)) {
519 v14_verify_only = invoker.v14_verify_only 521 v14_verify_only = invoker.v14_verify_only
520 } 522 }
523
524 if (defined(invoker.shared_resources)) {
525 shared_resources = invoker.shared_resources
526 }
521 } 527 }
522 528
523 group(target_name) { 529 group(target_name) {
524 deps = [ 530 deps = [
525 ":${target_name}__build_config", 531 ":${target_name}__build_config",
526 ":${target_name}__process_resources", 532 ":${target_name}__process_resources",
527 ] 533 ]
528 } 534 }
529 } 535 }
530 536
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 } 1469 }
1464 1470
1465 # TODO(GYP): implement this. 1471 # TODO(GYP): implement this.
1466 template("uiautomator_test") { 1472 template("uiautomator_test") {
1467 if (defined(invoker.testonly)) { testonly = invoker.testonly } 1473 if (defined(invoker.testonly)) { testonly = invoker.testonly }
1468 assert(target_name != "") 1474 assert(target_name != "")
1469 assert(invoker.deps != [] || true) 1475 assert(invoker.deps != [] || true)
1470 group(target_name) { 1476 group(target_name) {
1471 } 1477 }
1472 } 1478 }
OLDNEW
« no previous file with comments | « build/config/android/internal_rules.gni ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698