diff options
author | Ying Wang <wangying@google.com> | 2012-05-24 21:05:19 -0700 |
---|---|---|
committer | Ying Wang <wangying@google.com> | 2012-06-04 18:02:55 -0700 |
commit | 71004f81351511b4873cdb09d52b7624158a4840 (patch) | |
tree | a864fd9b3b24fd388f26fe4ab595f6586e9a27ec /core/main.mk | |
parent | 28a181759079c34f8776f98f553e56554b527069 (diff) | |
download | build-71004f81351511b4873cdb09d52b7624158a4840.zip build-71004f81351511b4873cdb09d52b7624158a4840.tar.gz build-71004f81351511b4873cdb09d52b7624158a4840.tar.bz2 |
Clean common intermediate files if overlay changed
This change cleans the packages' intermediate files if their overlays
changed between incremental builds.
If two builds have different overlay, they will have different R
classes, and so the jar files in the common intermediate dirs can
not be shared. Therefore incremental build can't be applied.
This change detects the overlay changes on package's base.
If a package's overlay is different from the previous build, its common
intermediate dir is nuked.
This makes broader incremental builds possible.
Change-Id: I368610ebbbbc85a80f9aecd714ab22cd78da7f12
Diffstat (limited to 'core/main.mk')
-rw-r--r-- | core/main.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/main.mk b/core/main.mk index 3c64d95..8a5b407 100644 --- a/core/main.mk +++ b/core/main.mk @@ -466,8 +466,12 @@ subdir_makefiles := \ $(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdirs) Android.mk) include $(subdir_makefiles) + endif # ONE_SHOT_MAKEFILE +# Now with all Android.mks loaded we can do post cleaning steps. +include $(BUILD_SYSTEM)/post_clean.mk + ifeq ($(stash_product_vars),true) $(call assert-product-vars, __STASHED) endif |