#
# 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)

本文介绍了一种用于构建Android.mk文件的缓存机制。该机制通过使用findleaves.py脚本来查找并创建子目录下的Android.mk文件列表,并将这些路径缓存到特定文件中以提高构建效率。
4278

被折叠的 条评论
为什么被折叠?



