summaryrefslogtreecommitdiff
path: root/rust/testing.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2020-11-10 18:12:15 -0800
committerColin Cross <ccross@android.com>2020-11-14 16:24:10 -0800
commit62a0cfd05460d0e760ce9133690e48861bb57eee (patch)
tree153f57708b363d7b8ef640defaa5c7079308ed86 /rust/testing.go
parenta615901b53c2b1ee4491869c25e92b73675216db (diff)
Annotate dependency tags for dependencies of installed files
Soong currently assumes that installed files should depend on installed files of all transitive dependencies, which results in extra installed file dependencies through genrules, static libs, etc. Annotate dependency tags for dependencies for which the installed files are necessary such as shared libraries and JNI libraries. This avoids extra installed files, and is also a first step towards genrules using their own copy of tools instead of the installed copy. Bug: 124313442 Test: m checkbuild Test: java.TestBinary Test: cc.TestInstallSharedLibs Test: deptag_test.go Change-Id: Ic22603a5c0718b5a21686672a7471f952b4d1017
Diffstat (limited to 'rust/testing.go')
-rw-r--r--rust/testing.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/rust/testing.go b/rust/testing.go
index 66877a907..001f322d8 100644
--- a/rust/testing.go
+++ b/rust/testing.go
@@ -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)