AIDEGen: Add the java sources of host java library modules into module-info.json.
Build module-info.json without this change:
Build time: 2m50.172s
File size: 21,598,737 Bytes
Build module-info.json with this change:
Build time: 2m50.428s
File size: 21,977,565 Bytes
Bug: 133148266
Test: 1. Checkout internal branch
2. Patch this CL
3. m -j out/target/product/generic_x86_64/module-info.json
4. Check the java file exists:
"GtsBackupHostTestCases": {
"srcs": [...,
".../BaseBackupRestoreHostSideTest.java",
...]
Change-Id: I1e1b34592cb7d7abd4634d9cb1a3e276bc1dc7f1
diff --git a/core/host_java_library.mk b/core/host_java_library.mk
index 1225fa9..a29a1b8 100644
--- a/core/host_java_library.mk
+++ b/core/host_java_library.mk
@@ -52,6 +52,8 @@
$(filter %.java,$(LOCAL_GENERATED_SOURCES))
all_java_sources := $(java_sources)
+ALL_MODULES.$(my_register_name).SRCS := $(ALL_MODULES.$(my_register_name).SRCS) $(all_java_sources)
+
include $(BUILD_SYSTEM)/java_common.mk
# The layers file allows you to enforce a layering between java packages.