加快Android編譯速度

jackie_gnu發表於2011-08-27
 

#
# Include all of the makefiles in the system
#

# Can't use first-makefiles-under here because
# --mindepth=2 makes the prunes not work.
#subdir_makefiles := \
#   $(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdirs) Android.mk)

Android_mk_cache:= build/tools/Android.mk.cache.2
$(shell touch $(Android_mk_cache))

subdir_makefiles:=$(shell cat $(Android_mk_cache))
$(info subdir_makefiles ======  $(subdir_makefiles))
ifeq ($(strip $(subdir_makefiles)),)
$(info ======================)
$(info no cache. create build/tools/Android.mk.cache)
#$(shell build/tools/findleaves.sh --prune="./out" . Android.mk > build/tools/Android.mk.cache)
$(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdirs) Android.mk > $(Android_mk_cache))
subdir_makefiles:=$(shell cat $(Android_mk_cache))
else
$(info use cache: build/tools/Android.mk.cache)
endif
$(info subdir_makefiles ----------------$(subdir_makefiles))
$(error endddddddddddddddddddd)

相關文章