From b1f57728d9b0122abfc1426052a5a1ab464a934e Mon Sep 17 00:00:00 2001 From: Ying Wang Date: Thu, 15 Sep 2011 16:16:45 -0700 Subject: [PATCH] Use the correct dependency $(LOCAL_BUILT_MODULE) of the module framework points to a product-specific file (required by dex-preopt), which is nuked by installclean. While the result of $(java-lib-deps) points to a file in the common directory. This change reduces the incremental build time significantly: It takes around 7 minutes to run "make instalclean && make" without this change v.s. 3 minutes with this change. So it will save lots of build time when switching between user, userdebug and eng builds on the build server. Change-Id: I832bafca04677af561bb0c28e2e0260f633b96a1 --- Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Android.mk b/Android.mk index 352e5ebca4fc0..91850d5af79d4 100644 --- a/Android.mk +++ b/Android.mk @@ -238,7 +238,7 @@ $(full_classes_compiled_jar): $(framework_res_R_stamp) # Make sure that framework-res is installed when framework is. $(LOCAL_INSTALLED_MODULE): | $(dir $(LOCAL_INSTALLED_MODULE))framework-res.apk -framework_built := $(LOCAL_BUILT_MODULE) +framework_built := $(call java-lib-deps,framework) # AIDL files to be preprocessed and included in the SDK, # relative to the root of the build tree.