Index: build/config/android/rules.gni |
diff --git a/build/config/android/rules.gni b/build/config/android/rules.gni |
index b33cd88793fc97e4df8e58888b53ab9fd7d70d07..07431d7a2c3b1076aaffdbadab5d7c59612aeb73 100644 |
--- a/build/config/android/rules.gni |
+++ b/build/config/android/rules.gni |
@@ -30,6 +30,7 @@ assert(is_android) |
# jni_package = "foo" |
# } |
template("generate_jni") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -128,6 +129,7 @@ template("generate_jni") { |
# jni_package = "foo" |
# } |
template("generate_jar_jni") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -237,6 +239,7 @@ template("generate_jar_jni") { |
# include_path = "android/java/templates" |
# } |
template("java_cpp_template") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -333,6 +336,7 @@ template("java_cpp_template") { |
# ] |
# } |
template("java_cpp_enum") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -392,6 +396,7 @@ template("java_cpp_enum") { |
# output = "$target_gen_dir/AndroidManifest.xml" |
# } |
template("jinja_template") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -448,6 +453,7 @@ template("jinja_template") { |
# variables = ["color=red"] |
# } |
template("jinja_template_resources") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -530,6 +536,7 @@ template("jinja_template_resources") { |
# custom_package = "org.chromium.foo" |
# } |
template("android_resources") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -600,6 +607,7 @@ template("android_resources") { |
# grd_file = "foo_strings.grd" |
# } |
template("java_strings_grd") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -666,6 +674,7 @@ template("java_strings_grd") { |
# ] |
# } |
template("java_strings_grd_prebuilt") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -725,6 +734,8 @@ template("java_strings_grd_prebuilt") { |
# main_class = "org.chromium.foo.FooMain" |
# } |
template("java_binary") { |
+ set_sources_assignment_filter([]) |
+ |
# TODO(cjhopman): This should not act like a java_library for dependents (i.e. |
# dependents shouldn't get the jar in their classpath, etc.). |
java_library_impl(target_name) { |
@@ -810,6 +821,7 @@ template("java_binary") { |
# ] |
# } |
template("java_library") { |
+ set_sources_assignment_filter([]) |
java_library_impl(target_name) { |
if (defined(invoker.DEPRECATED_java_in_dir)) { |
DEPRECATED_java_in_dir = invoker.DEPRECATED_java_in_dir |
@@ -876,6 +888,7 @@ template("java_library") { |
# ] |
# } |
template("java_prebuilt") { |
+ set_sources_assignment_filter([]) |
java_prebuilt_impl(target_name) { |
jar_path = invoker.jar_path |
if (defined(invoker.testonly)) { |
@@ -942,6 +955,7 @@ template("java_prebuilt") { |
# ] |
# } |
template("android_library") { |
+ set_sources_assignment_filter([]) |
assert(!defined(invoker.jar_path), |
"android_library does not support a custom jar path") |
java_library_impl(target_name) { |
@@ -1008,6 +1022,7 @@ template("android_library") { |
# will be packaged into the resulting .dex.jar file. |
# dex_path: location at which the output file will be put |
template("android_standalone_library") { |
+ set_sources_assignment_filter([]) |
deps_dex(target_name) { |
deps = invoker.deps |
dex_path = invoker.dex_path |
@@ -1037,6 +1052,7 @@ template("android_standalone_library") { |
# ] |
# } |
template("android_java_prebuilt") { |
+ set_sources_assignment_filter([]) |
java_prebuilt_impl(target_name) { |
jar_path = invoker.jar_path |
supports_android = true |
@@ -1105,6 +1121,7 @@ template("android_java_prebuilt") { |
# ] |
# } |
template("android_apk") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -1437,6 +1454,7 @@ template("android_apk") { |
# unittests_dep = ":foo_unittests" |
# } |
template("unittest_apk") { |
+ set_sources_assignment_filter([]) |
testonly = true |
assert(defined(invoker.unittests_dep), "Need unittests_dep for $target_name") |
@@ -1508,6 +1526,7 @@ template("unittest_apk") { |
# ] |
# } |
template("android_aidl") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -1583,6 +1602,7 @@ template("android_aidl") { |
# binary = "$root_build_dir/exe.stripped/foo" |
# } |
template("create_native_executable_dist") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |
@@ -1663,6 +1683,7 @@ template("create_native_executable_dist") { |
# sources = [ "$proto_path/foo.proto" ] |
# } |
template("proto_java_library") { |
+ set_sources_assignment_filter([]) |
_protoc_dep = "//third_party/android_protobuf:android_protoc($host_toolchain)" |
_protoc_out_dir = get_label_info(_protoc_dep, "root_out_dir") |
_protoc_bin = "$_protoc_out_dir/android_protoc" |
@@ -1705,6 +1726,7 @@ template("proto_java_library") { |
# TODO(GYP): implement this. |
template("uiautomator_test") { |
+ set_sources_assignment_filter([]) |
if (defined(invoker.testonly)) { |
testonly = invoker.testonly |
} |