Merge "Annotate dependency tags for dependencies of installed files"

This commit is contained in:
Colin Cross
2020-11-24 16:01:35 +00:00
committed by Gerrit Code Review
15 changed files with 346 additions and 30 deletions

View File

@@ -286,6 +286,12 @@ func TestSourceProviderDeps(t *testing.T) {
srcs: ["src/any.h"],
out: ["src/any.rs"],
}
rust_binary_host {
name: "any_rust_binary",
srcs: [
"foo.rs",
],
}
rust_bindgen {
name: "libbindings",
crate_name: "bindings",

View File

@@ -17,7 +17,6 @@ package rust
import (
"android/soong/android"
"android/soong/cc"
"android/soong/genrule"
)
func GatherRequiredDepsForTest() string {
@@ -132,7 +131,6 @@ func CreateTestContext(config android.Config) *android.TestContext {
android.RegisterPrebuiltMutators(ctx)
ctx.PreArchMutators(android.RegisterDefaultsPreArchMutators)
cc.RegisterRequiredBuildComponentsForTest(ctx)
ctx.RegisterModuleType("genrule", genrule.GenRuleFactory)
ctx.RegisterModuleType("rust_binary", RustBinaryFactory)
ctx.RegisterModuleType("rust_binary_host", RustBinaryHostFactory)
ctx.RegisterModuleType("rust_bindgen", RustBindgenFactory)