| 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 | 9 |
| 10 assert(is_android) | 10 assert(is_android) |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 if (defined(invoker.public_deps)) { | 180 if (defined(invoker.public_deps)) { |
| 181 public_deps = invoker.public_deps | 181 public_deps = invoker.public_deps |
| 182 } | 182 } |
| 183 public_configs = [ ":jni_includes_${target_name}" ] | 183 public_configs = [ ":jni_includes_${target_name}" ] |
| 184 } | 184 } |
| 185 } | 185 } |
| 186 | 186 |
| 187 | 187 |
| 188 # Declare a target for c-preprocessor-generated java files | 188 # Declare a target for c-preprocessor-generated java files |
| 189 # | 189 # |
| 190 # NOTE: For generating Java conterparts to enums prefer using the java_cpp_enum |
| 191 # rule instead. |
| 192 # |
| 190 # This target generates java files using the host C pre-processor. Each file in | 193 # This target generates java files using the host C pre-processor. Each file in |
| 191 # sources will be compiled using the C pre-processor. If include_path is | 194 # sources will be compiled using the C pre-processor. If include_path is |
| 192 # specified, it will be passed (with --I) to the pre-processor. | 195 # specified, it will be passed (with --I) to the pre-processor. |
| 193 # | 196 # |
| 194 # This target will create a single .srcjar. Adding this target to an | 197 # This target will create a single .srcjar. Adding this target to an |
| 195 # android_library target's srcjar_deps will make the generated java files be | 198 # android_library target's srcjar_deps will make the generated java files be |
| 196 # included in that library's final outputs. | 199 # included in that library's final outputs. |
| 197 # | 200 # |
| 198 # Variables | 201 # Variables |
| 199 # sources: list of files to be processed by the C pre-processor. For each | 202 # sources: list of files to be processed by the C pre-processor. For each |
| (...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1395 } | 1398 } |
| 1396 | 1399 |
| 1397 # TODO(GYP): implement this. | 1400 # TODO(GYP): implement this. |
| 1398 template("uiautomator_test") { | 1401 template("uiautomator_test") { |
| 1399 if (defined(invoker.testonly)) { testonly = invoker.testonly } | 1402 if (defined(invoker.testonly)) { testonly = invoker.testonly } |
| 1400 assert(target_name != "") | 1403 assert(target_name != "") |
| 1401 assert(invoker.deps != [] || true) | 1404 assert(invoker.deps != [] || true) |
| 1402 group(target_name) { | 1405 group(target_name) { |
| 1403 } | 1406 } |
| 1404 } | 1407 } |
| OLD | NEW |