Skip to content

Commit b1f5772

Browse files
author
Ying Wang
committed
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
1 parent cb99512 commit b1f5772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Android.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ $(full_classes_compiled_jar): $(framework_res_R_stamp)
238238
# Make sure that framework-res is installed when framework is.
239239
$(LOCAL_INSTALLED_MODULE): | $(dir $(LOCAL_INSTALLED_MODULE))framework-res.apk
240240

241-
framework_built := $(LOCAL_BUILT_MODULE)
241+
framework_built := $(call java-lib-deps,framework)
242242

243243
# AIDL files to be preprocessed and included in the SDK,
244244
# relative to the root of the build tree.

0 commit comments

Comments
 (0)