AIDEGen: Collect the srcjar into out/soong/module_bp_java_deps.json
Build module_bp_java_deps.json without this change:
Build time: 3m53.761s
File size: 12,955,363 Bytes
Build module_bp_java_deps.json with this change:
Build time: 3m49.106s
File size: 13,361,647 Bytes
Bug: 132407603
Test: 1. SOONG_COLLECT_JAVA_DEPS=false make nothing
2. SOONG_COLLECT_JAVA_DEPS=true make nothing
3. Check module_bp_java_deps.json in /out/soong.
In SettingsProvider section there should contain
"srcjars": [
"out/soong/.intermediates/frameworks/base/packages/SettingsProvider/SettingsProvider/android_common/gen/R.jar"
]
Change-Id: I800a4d4f13b280d7ef87005e599cbd0aaf8c93f4
diff --git a/java/jdeps.go b/java/jdeps.go
index 18498be..fccc40f 100644
--- a/java/jdeps.go
+++ b/java/jdeps.go
@@ -72,6 +72,7 @@
dpInfo.Aidl_include_dirs = android.FirstUniqueStrings(dpInfo.Aidl_include_dirs)
dpInfo.Jarjar_rules = android.FirstUniqueStrings(dpInfo.Jarjar_rules)
dpInfo.Jars = android.FirstUniqueStrings(dpInfo.Jars)
+ dpInfo.SrcJars = android.FirstUniqueStrings(dpInfo.SrcJars)
moduleInfos[name] = dpInfo
mkProvider, ok := module.(android.AndroidMkDataProvider)