| OLD | NEW |
| 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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 # own dependencies. | 516 # own dependencies. |
| 517 # | 517 # |
| 518 # Variables | 518 # Variables |
| 519 # deps: Specifies the dependencies of this target. Any Android resources | 519 # deps: Specifies the dependencies of this target. Any Android resources |
| 520 # listed in deps will be included by libraries/apks that depend on this | 520 # listed in deps will be included by libraries/apks that depend on this |
| 521 # target. | 521 # target. |
| 522 # resource_dirs: List of directories containing resources for this target. | 522 # resource_dirs: List of directories containing resources for this target. |
| 523 # android_manifest: AndroidManifest.xml for this target. Defaults to | 523 # android_manifest: AndroidManifest.xml for this target. Defaults to |
| 524 # //build/android/AndroidManifest.xml. | 524 # //build/android/AndroidManifest.xml. |
| 525 # custom_package: java package for generated .java files. | 525 # custom_package: java package for generated .java files. |
| 526 # v14_verify_only: If true, don't generate v14/v17 resources and just verify | 526 # v14_skip: If true, don't run v14 resource generator on this. Defaults to |
| 527 # that the resources are v14-compliant (see | 527 # false. (see build/android/gyp/generate_v14_compatible_resources.py) |
| 528 # build/android/gyp/generate_v14_compatible_resources.py). Defaults to | 528 # |
| 529 # false. | |
| 530 # shared_resources: If true make a resource package that can be loaded by a | 529 # shared_resources: If true make a resource package that can be loaded by a |
| 531 # different application at runtime to access the package's resources. | 530 # different application at runtime to access the package's resources. |
| 532 # | 531 # |
| 533 | 532 |
| 534 # Example | 533 # Example |
| 535 # android_resources("foo_resources") { | 534 # android_resources("foo_resources") { |
| 536 # deps = [":foo_strings_grd"] | 535 # deps = [":foo_strings_grd"] |
| 537 # resource_dirs = ["res"] | 536 # resource_dirs = ["res"] |
| 538 # custom_package = "org.chromium.foo" | 537 # custom_package = "org.chromium.foo" |
| 539 # } | 538 # } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 572 if (defined(invoker.android_manifest)) { | 571 if (defined(invoker.android_manifest)) { |
| 573 android_manifest = invoker.android_manifest | 572 android_manifest = invoker.android_manifest |
| 574 } | 573 } |
| 575 | 574 |
| 576 process_resources("${target_name}__process_resources") { | 575 process_resources("${target_name}__process_resources") { |
| 577 resource_dirs = invoker.resource_dirs | 576 resource_dirs = invoker.resource_dirs |
| 578 if (defined(invoker.custom_package)) { | 577 if (defined(invoker.custom_package)) { |
| 579 custom_package = invoker.custom_package | 578 custom_package = invoker.custom_package |
| 580 } | 579 } |
| 581 | 580 |
| 582 if (defined(invoker.v14_verify_only)) { | |
| 583 v14_verify_only = invoker.v14_verify_only | |
| 584 } | |
| 585 | |
| 586 if (defined(invoker.v14_skip)) { | 581 if (defined(invoker.v14_skip)) { |
| 587 v14_skip = invoker.v14_skip | 582 v14_skip = invoker.v14_skip |
| 588 } | 583 } |
| 589 | 584 |
| 590 if (defined(invoker.shared_resources)) { | 585 if (defined(invoker.shared_resources)) { |
| 591 shared_resources = invoker.shared_resources | 586 shared_resources = invoker.shared_resources |
| 592 } | 587 } |
| 593 } | 588 } |
| 594 | 589 |
| 595 group(target_name) { | 590 group(target_name) { |
| (...skipping 1223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1819 template("uiautomator_test") { | 1814 template("uiautomator_test") { |
| 1820 set_sources_assignment_filter([]) | 1815 set_sources_assignment_filter([]) |
| 1821 if (defined(invoker.testonly)) { | 1816 if (defined(invoker.testonly)) { |
| 1822 testonly = invoker.testonly | 1817 testonly = invoker.testonly |
| 1823 } | 1818 } |
| 1824 assert(target_name != "") | 1819 assert(target_name != "") |
| 1825 assert(invoker.deps != [] || true) | 1820 assert(invoker.deps != [] || true) |
| 1826 group(target_name) { | 1821 group(target_name) { |
| 1827 } | 1822 } |
| 1828 } | 1823 } |
| OLD | NEW |