| 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("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
| 9 import("//third_party/android_platform/config.gni") | 9 import("//third_party/android_platform/config.gni") |
| 10 import("//tools/grit/grit_rule.gni") | 10 import("//tools/grit/grit_rule.gni") |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 | 420 |
| 421 # Declare a target for processing a Jinja template. | 421 # Declare a target for processing a Jinja template. |
| 422 # | 422 # |
| 423 # Variables | 423 # Variables |
| 424 # input: The template file to be processed. | 424 # input: The template file to be processed. |
| 425 # output: Where to save the result. | 425 # output: Where to save the result. |
| 426 # variables: (Optional) A list of variables to make available to the template | 426 # variables: (Optional) A list of variables to make available to the template |
| 427 # processing environment, e.g. ["name=foo", "color=red"]. | 427 # processing environment, e.g. ["name=foo", "color=red"]. |
| 428 # | 428 # |
| 429 # Example | 429 # Example |
| 430 # jinja_template("chrome_shell_manifest") { | 430 # jinja_template("chrome_public_manifest") { |
| 431 # input = "shell/java/AndroidManifest.xml" | 431 # input = "java/AndroidManifest.xml" |
| 432 # output = "$target_gen_dir/AndroidManifest.xml" | 432 # output = "$target_gen_dir/AndroidManifest.xml" |
| 433 # } | 433 # } |
| 434 template("jinja_template") { | 434 template("jinja_template") { |
| 435 set_sources_assignment_filter([]) | 435 set_sources_assignment_filter([]) |
| 436 if (defined(invoker.testonly)) { | 436 if (defined(invoker.testonly)) { |
| 437 testonly = invoker.testonly | 437 testonly = invoker.testonly |
| 438 } | 438 } |
| 439 | 439 |
| 440 assert(defined(invoker.input)) | 440 assert(defined(invoker.input)) |
| 441 assert(defined(invoker.output)) | 441 assert(defined(invoker.output)) |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 480 # If this target is included in the deps of an android resources/library/apk, | 480 # If this target is included in the deps of an android resources/library/apk, |
| 481 # the resources will be included with that target. | 481 # the resources will be included with that target. |
| 482 # | 482 # |
| 483 # Variables | 483 # Variables |
| 484 # resources: The list of resources files to process. | 484 # resources: The list of resources files to process. |
| 485 # res_dir: The resource directory containing the resources. | 485 # res_dir: The resource directory containing the resources. |
| 486 # variables: (Optional) A list of variables to make available to the template | 486 # variables: (Optional) A list of variables to make available to the template |
| 487 # processing environment, e.g. ["name=foo", "color=red"]. | 487 # processing environment, e.g. ["name=foo", "color=red"]. |
| 488 # | 488 # |
| 489 # Example | 489 # Example |
| 490 # jinja_template_resources("chrome_shell_template_resources") { | 490 # jinja_template_resources("chrome_public_template_resources") { |
| 491 # res_dir = "shell/res_template" | 491 # res_dir = "res_template" |
| 492 # resources = ["shell/res_template/xml/syncable.xml"] | 492 # resources = ["res_template/xml/syncable.xml"] |
| 493 # variables = ["color=red"] | 493 # variables = ["color=red"] |
| 494 # } | 494 # } |
| 495 template("jinja_template_resources") { | 495 template("jinja_template_resources") { |
| 496 set_sources_assignment_filter([]) | 496 set_sources_assignment_filter([]) |
| 497 if (defined(invoker.testonly)) { | 497 if (defined(invoker.testonly)) { |
| 498 testonly = invoker.testonly | 498 testonly = invoker.testonly |
| 499 } | 499 } |
| 500 | 500 |
| 501 assert(defined(invoker.resources)) | 501 assert(defined(invoker.resources)) |
| 502 assert(defined(invoker.res_dir)) | 502 assert(defined(invoker.res_dir)) |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2226 template("uiautomator_test") { | 2226 template("uiautomator_test") { |
| 2227 set_sources_assignment_filter([]) | 2227 set_sources_assignment_filter([]) |
| 2228 if (defined(invoker.testonly)) { | 2228 if (defined(invoker.testonly)) { |
| 2229 testonly = invoker.testonly | 2229 testonly = invoker.testonly |
| 2230 } | 2230 } |
| 2231 assert(target_name != "") | 2231 assert(target_name != "") |
| 2232 assert(invoker.deps != [] || true) | 2232 assert(invoker.deps != [] || true) |
| 2233 group(target_name) { | 2233 group(target_name) { |
| 2234 } | 2234 } |
| 2235 } | 2235 } |
| OLD | NEW |