| 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("//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 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 878 if (defined(invoker.DEPRECATED_java_in_dir)) { | 878 if (defined(invoker.DEPRECATED_java_in_dir)) { |
| 879 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir | 879 DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir |
| 880 } | 880 } |
| 881 if (defined(invoker.chromium_code)) { | 881 if (defined(invoker.chromium_code)) { |
| 882 chromium_code = invoker.chromium_code | 882 chromium_code = invoker.chromium_code |
| 883 } | 883 } |
| 884 deps = [ | 884 deps = [ |
| 885 "//testing/android/junit:junit_test_support", | 885 "//testing/android/junit:junit_test_support", |
| 886 "//third_party/junit", | 886 "//third_party/junit", |
| 887 "//third_party/mockito:mockito_java", | 887 "//third_party/mockito:mockito_java", |
| 888 "//third_party/robolectric:android-all-4.3_r2-robolectric-0", |
| 888 "//third_party/robolectric:robolectric_java", | 889 "//third_party/robolectric:robolectric_java", |
| 889 "//third_party/robolectric:android-all-4.3_r2-robolectric-0", | |
| 890 ] | 890 ] |
| 891 if (defined(invoker.deps)) { | 891 if (defined(invoker.deps)) { |
| 892 deps += invoker.deps | 892 deps += invoker.deps |
| 893 } | 893 } |
| 894 if (defined(invoker.java_files)) { | 894 if (defined(invoker.java_files)) { |
| 895 java_files = invoker.java_files | 895 java_files = invoker.java_files |
| 896 } | 896 } |
| 897 if (defined(invoker.srcjar_deps)) { | 897 if (defined(invoker.srcjar_deps)) { |
| 898 srcjar_deps = invoker.srcjar_deps | 898 srcjar_deps = invoker.srcjar_deps |
| 899 } | 899 } |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1015 # java_prebuilt("foo_java") { | 1015 # java_prebuilt("foo_java") { |
| 1016 # jar_path = "foo.jar" | 1016 # jar_path = "foo.jar" |
| 1017 # deps = [ | 1017 # deps = [ |
| 1018 # ":foo_resources", | 1018 # ":foo_resources", |
| 1019 # ":bar_java" | 1019 # ":bar_java" |
| 1020 # ] | 1020 # ] |
| 1021 # } | 1021 # } |
| 1022 template("java_prebuilt") { | 1022 template("java_prebuilt") { |
| 1023 set_sources_assignment_filter([]) | 1023 set_sources_assignment_filter([]) |
| 1024 java_prebuilt_impl(target_name) { | 1024 java_prebuilt_impl(target_name) { |
| 1025 jar_path = invoker.jar_path | 1025 forward_variables_from(invoker, "*") |
| 1026 if (defined(invoker.testonly)) { | |
| 1027 testonly = invoker.testonly | |
| 1028 } | |
| 1029 if (defined(invoker.deps)) { | |
| 1030 deps = invoker.deps | |
| 1031 } | |
| 1032 if (defined(invoker.proguard_config)) { | |
| 1033 proguard_config = invoker.proguard_config | |
| 1034 } | |
| 1035 if (defined(invoker.proguard_preprocess)) { | |
| 1036 proguard_preprocess = invoker.proguard_preprocess | |
| 1037 } | |
| 1038 } | 1026 } |
| 1039 } | 1027 } |
| 1040 | 1028 |
| 1041 # Declare an Android library target | 1029 # Declare an Android library target |
| 1042 # | 1030 # |
| 1043 # This target creates an Android library containing java code and Android | 1031 # This target creates an Android library containing java code and Android |
| 1044 # resources. | 1032 # resources. |
| 1045 # | 1033 # |
| 1046 # Variables | 1034 # Variables |
| 1047 # deps: Specifies the dependencies of this target. Java targets in this list | 1035 # deps: Specifies the dependencies of this target. Java targets in this list |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1612 | 1600 |
| 1613 version_code = _version_code | 1601 version_code = _version_code |
| 1614 version_name = _version_name | 1602 version_name = _version_name |
| 1615 | 1603 |
| 1616 keystore_name = _keystore_name | 1604 keystore_name = _keystore_name |
| 1617 keystore_path = _keystore_path | 1605 keystore_path = _keystore_path |
| 1618 keystore_password = _keystore_password | 1606 keystore_password = _keystore_password |
| 1619 | 1607 |
| 1620 # This target generates the input file _all_resources_zip_path. | 1608 # This target generates the input file _all_resources_zip_path. |
| 1621 deps = [ | 1609 deps = [ |
| 1610 ":$final_dex_target_name", |
| 1622 ":$process_resources_target", | 1611 ":$process_resources_target", |
| 1623 ":$final_dex_target_name", | |
| 1624 ] | 1612 ] |
| 1625 if (defined(invoker.deps)) { | 1613 if (defined(invoker.deps)) { |
| 1626 deps += invoker.deps | 1614 deps += invoker.deps |
| 1627 } | 1615 } |
| 1628 | 1616 |
| 1629 if (defined(invoker.asset_location)) { | 1617 if (defined(invoker.asset_location)) { |
| 1630 asset_location = invoker.asset_location | 1618 asset_location = invoker.asset_location |
| 1631 | 1619 |
| 1632 # We don't know the exact dependencies that create the assets in | 1620 # We don't know the exact dependencies that create the assets in |
| 1633 # |asset_location|; we depend on all caller deps until a better solution | 1621 # |asset_location|; we depend on all caller deps until a better solution |
| (...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2114 template("uiautomator_test") { | 2102 template("uiautomator_test") { |
| 2115 set_sources_assignment_filter([]) | 2103 set_sources_assignment_filter([]) |
| 2116 if (defined(invoker.testonly)) { | 2104 if (defined(invoker.testonly)) { |
| 2117 testonly = invoker.testonly | 2105 testonly = invoker.testonly |
| 2118 } | 2106 } |
| 2119 assert(target_name != "") | 2107 assert(target_name != "") |
| 2120 assert(invoker.deps != [] || true) | 2108 assert(invoker.deps != [] || true) |
| 2121 group(target_name) { | 2109 group(target_name) { |
| 2122 } | 2110 } |
| 2123 } | 2111 } |
| OLD | NEW |