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

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

Issue 1198693002: Reland "Roll buildtools fa660d47..ecc8e253" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android rules for missing dependencies Created 5 years, 6 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
« no previous file with comments | « DEPS ('k') | chrome/android/BUILD.gn » ('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("//third_party/android_platform/config.gni") 8 import("//third_party/android_platform/config.gni")
9 import("//tools/grit/grit_rule.gni") 9 import("//tools/grit/grit_rule.gni")
10 10
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 # Creates a resources.zip with locale.pak files placed into appropriate 547 # Creates a resources.zip with locale.pak files placed into appropriate
548 # resource configs (e.g. en-GB.pak -> res/raw-en/en_gb.pak). Also generates 548 # resource configs (e.g. en-GB.pak -> res/raw-en/en_gb.pak). Also generates
549 # a locale_paks TypedArray so that resource files can be enumerated at runtime. 549 # a locale_paks TypedArray so that resource files can be enumerated at runtime.
550 # 550 #
551 # If this target is included in the deps of an android resources/library/apk, 551 # If this target is included in the deps of an android resources/library/apk,
552 # the resources will be included with that target. 552 # the resources will be included with that target.
553 # 553 #
554 # Variables: 554 # Variables:
555 # sources: List of .pak files. Names must be of the form "en.pak" or 555 # sources: List of .pak files. Names must be of the form "en.pak" or
556 # "en-US.pak". 556 # "en-US.pak".
557 # deps: (optional) List of dependencies that might be needed to generate
558 # the .pak files.
557 # 559 #
558 # Example 560 # Example
559 # locale_pak_resources("locale_paks") { 561 # locale_pak_resources("locale_paks") {
560 # sources = [ "path/en-US.pak", "path/fr.pak", ... ] 562 # sources = [ "path/en-US.pak", "path/fr.pak", ... ]
561 # } 563 # }
562 template("locale_pak_resources") { 564 template("locale_pak_resources") {
563 set_sources_assignment_filter([]) 565 set_sources_assignment_filter([])
564 assert(defined(invoker.sources)) 566 assert(defined(invoker.sources))
565 567
566 _base_path = "$target_gen_dir/$target_name" 568 _base_path = "$target_gen_dir/$target_name"
(...skipping 17 matching lines...) Expand all
584 ] 586 ]
585 587
586 _rebased_sources = rebase_path(invoker.sources, root_build_dir) 588 _rebased_sources = rebase_path(invoker.sources, root_build_dir)
587 args = [ 589 args = [
588 "--locale-paks=${_rebased_sources}", 590 "--locale-paks=${_rebased_sources}",
589 "--resources-zip", 591 "--resources-zip",
590 rebase_path(_resources_zip, root_build_dir), 592 rebase_path(_resources_zip, root_build_dir),
591 "--depfile", 593 "--depfile",
592 rebase_path(depfile, root_build_dir), 594 rebase_path(depfile, root_build_dir),
593 ] 595 ]
596
597 if (defined(invoker.deps)) {
598 deps = invoker.deps
599 }
594 } 600 }
595 601
596 group(target_name) { 602 group(target_name) {
597 deps = [ 603 deps = [
598 ":${target_name}__build_config", 604 ":${target_name}__build_config",
599 ":${target_name}__create_resources_zip", 605 ":${target_name}__create_resources_zip",
600 ] 606 ]
601 } 607 }
602 } 608 }
603 609
(...skipping 1572 matching lines...) Expand 10 before | Expand all | Expand 10 after
2176 template("uiautomator_test") { 2182 template("uiautomator_test") {
2177 set_sources_assignment_filter([]) 2183 set_sources_assignment_filter([])
2178 if (defined(invoker.testonly)) { 2184 if (defined(invoker.testonly)) {
2179 testonly = invoker.testonly 2185 testonly = invoker.testonly
2180 } 2186 }
2181 assert(target_name != "") 2187 assert(target_name != "")
2182 assert(invoker.deps != [] || true) 2188 assert(invoker.deps != [] || true)
2183 group(target_name) { 2189 group(target_name) {
2184 } 2190 }
2185 } 2191 }
OLDNEW
« no previous file with comments | « DEPS ('k') | chrome/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698