Chromium Code Reviews| 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 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1585 if (defined(invoker.java_files)) { | 1585 if (defined(invoker.java_files)) { |
| 1586 java_files = invoker.java_files | 1586 java_files = invoker.java_files |
| 1587 } else if (defined(invoker.DEPRECATED_java_in_dir)) { | 1587 } else if (defined(invoker.DEPRECATED_java_in_dir)) { |
| 1588 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir | 1588 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir |
| 1589 } else { | 1589 } else { |
| 1590 java_files = [] | 1590 java_files = [] |
| 1591 } | 1591 } |
| 1592 srcjar_deps = _srcjar_deps | 1592 srcjar_deps = _srcjar_deps |
| 1593 dex_path = base_path + ".dex.jar" | 1593 dex_path = base_path + ".dex.jar" |
| 1594 | 1594 |
| 1595 if (defined(invoker.run_findbugs)) { | |
| 1596 run_findbugs = invoker.run_findbugs | |
| 1597 } | |
|
Dirk Pranke
2015/08/17 19:25:02
this can be replaced with forward_variables_from(i
jbudorick
2015/08/22 22:45:19
ack, I'll send you a follow-up CL. agrieve partial
| |
| 1598 | |
| 1595 if (defined(invoker.deps)) { | 1599 if (defined(invoker.deps)) { |
| 1596 deps += invoker.deps | 1600 deps += invoker.deps |
| 1597 } | 1601 } |
| 1598 } | 1602 } |
| 1599 | 1603 |
| 1600 if (_dist_jar_path != "") { | 1604 if (_dist_jar_path != "") { |
| 1601 create_dist_target = "${_template_name}__create_dist_jar" | 1605 create_dist_target = "${_template_name}__create_dist_jar" |
| 1602 final_deps += [ ":$create_dist_target" ] | 1606 final_deps += [ ":$create_dist_target" ] |
| 1603 | 1607 |
| 1604 # TODO(cjhopman): This is only ever needed to calculate the list of tests to | 1608 # TODO(cjhopman): This is only ever needed to calculate the list of tests to |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1901 } | 1905 } |
| 1902 if (defined(invoker.native_libs)) { | 1906 if (defined(invoker.native_libs)) { |
| 1903 native_libs = invoker.native_libs | 1907 native_libs = invoker.native_libs |
| 1904 } | 1908 } |
| 1905 if (defined(invoker.apk_under_test)) { | 1909 if (defined(invoker.apk_under_test)) { |
| 1906 apk_under_test = invoker.apk_under_test | 1910 apk_under_test = invoker.apk_under_test |
| 1907 } | 1911 } |
| 1908 if (defined(invoker.DEPRECATED_java_in_dir)) { | 1912 if (defined(invoker.DEPRECATED_java_in_dir)) { |
| 1909 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir | 1913 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir |
| 1910 } | 1914 } |
| 1915 run_findbugs = false | |
| 1911 } | 1916 } |
| 1912 } | 1917 } |
| 1913 | 1918 |
| 1914 # Declare an Android gtest apk | 1919 # Declare an Android gtest apk |
| 1915 # | 1920 # |
| 1916 # This target creates an Android apk for running gtest-based unittests. | 1921 # This target creates an Android apk for running gtest-based unittests. |
| 1917 # | 1922 # |
| 1918 # Variables | 1923 # Variables |
| 1919 # deps: Specifies the dependencies of this target. These will be passed to | 1924 # deps: Specifies the dependencies of this target. These will be passed to |
| 1920 # the underlying android_apk invocation and should include the java and | 1925 # the underlying android_apk invocation and should include the java and |
| (...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2226 template("uiautomator_test") { | 2231 template("uiautomator_test") { |
| 2227 set_sources_assignment_filter([]) | 2232 set_sources_assignment_filter([]) |
| 2228 if (defined(invoker.testonly)) { | 2233 if (defined(invoker.testonly)) { |
| 2229 testonly = invoker.testonly | 2234 testonly = invoker.testonly |
| 2230 } | 2235 } |
| 2231 assert(target_name != "") | 2236 assert(target_name != "") |
| 2232 assert(invoker.deps != [] || true) | 2237 assert(invoker.deps != [] || true) |
| 2233 group(target_name) { | 2238 group(target_name) { |
| 2234 } | 2239 } |
| 2235 } | 2240 } |
| OLD | NEW |