summaryrefslogtreecommitdiff
path: root/java/base.go
diff options
context:
space:
mode:
author Yike <yikezh@google.com> 2022-04-13 20:41:01 +0800
committer Yike <yikezh@google.com> 2022-04-18 10:23:28 +0800
commitf628202aabf55d989b6ab1a1ccb6a33967ec969e (patch)
treec0cdd7f4eb7c1aab0c3dfca9b69a09ade4c6bed6 /java/base.go
parentfa8e9cc3a19c60e36945432fa8eece5a4a12c112 (diff)
Export Java library dependency information
Write `static_libs` and `libs` of Java library and Android app modules to module_bp_java_deps.json. This enables downstream tools to correctly set up the runtime environment. Note that while static libraries don't need to be on the Java classpath these modules could have non-static library dependencies that do need to be present. Test: m out/soong/module_bp_java_deps.json Bug: 227538646 Change-Id: I7c4aecb2fb03c890f0d2aaae80e619f6176809ef
Diffstat (limited to 'java/base.go')
-rw-r--r--java/base.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/base.go b/java/base.go
index 5802099ae..c6c560935 100644
--- a/java/base.go
+++ b/java/base.go
@@ -1694,6 +1694,8 @@ func (j *Module) IDEInfo(dpInfo *android.IdeInfo) {
dpInfo.Jarjar_rules = append(dpInfo.Jarjar_rules, j.expandJarjarRules.String())
}
dpInfo.Paths = append(dpInfo.Paths, j.modulePaths...)
+ dpInfo.Static_libs = append(dpInfo.Static_libs, j.properties.Static_libs...)
+ dpInfo.Libs = append(dpInfo.Libs, j.properties.Libs...)
}
func (j *Module) CompilerDeps() []string {