From ada3a8d5e8f73eec6f9fb23867f00ae002ffd59d Mon Sep 17 00:00:00 2001 From: patricktu Date: Thu, 23 May 2019 14:22:45 +0800 Subject: [PATCH] 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 --- core/host_java_library.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/host_java_library.mk b/core/host_java_library.mk index 1225fa996b..a29a1b8e29 100644 --- a/core/host_java_library.mk +++ b/core/host_java_library.mk @@ -52,6 +52,8 @@ java_sources := $(addprefix $(LOCAL_PATH)/, $(filter %.java,$(LOCAL_SRC_FILES))) $(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.