diff options
author | Colin Cross <ccross@android.com> | 2017-12-30 17:54:27 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2018-01-02 18:23:43 -0800 |
commit | ee6143cde25cbe41df754337de89d608ca890bb1 (patch) | |
tree | 7e972f8184630590cc38542c9cda9758cd7609f1 /java/system_modules.go | |
parent | b4330e222b8df54727d0054075d63f2dcdf0a959 (diff) | |
download | build_soong-ee6143cde25cbe41df754337de89d608ca890bb1.tar.gz build_soong-ee6143cde25cbe41df754337de89d608ca890bb1.tar.bz2 build_soong-ee6143cde25cbe41df754337de89d608ca890bb1.zip |
Add VisitDirectDepsWithTag
Add a method on ModuleContext and TopDownMutatorContext to visit
direct dependencies that have a given dependency tag.
Test: m checkbuild
Change-Id: Ib875563091dcae6b7282b3e3427d0eb07d8c8af5
Diffstat (limited to 'java/system_modules.go')
-rw-r--r-- | java/system_modules.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/java/system_modules.go b/java/system_modules.go index 5234d174..196d041c 100644 --- a/java/system_modules.go +++ b/java/system_modules.go @@ -112,11 +112,9 @@ type SystemModulesProperties struct { func (system *SystemModules) GenerateAndroidBuildActions(ctx android.ModuleContext) { var jars android.Paths - ctx.VisitDirectDeps(func(module android.Module) { - if ctx.OtherModuleDependencyTag(module) == libTag { - dep, _ := module.(Dependency) - jars = append(jars, dep.HeaderJars()...) - } + ctx.VisitDirectDepsWithTag(libTag, func(module android.Module) { + dep, _ := module.(Dependency) + jars = append(jars, dep.HeaderJars()...) }) jars = append(jars, android.PathsForModuleSrc(ctx, system.properties.Jars)...) |