减少30秒左右android编译时间
2011-09-18 11:35
585 查看
找到$your_android_dir/build/core/main.mk 500左右,关键字搜索subdir_makefiles
old:
subdir_makefiles := \
$(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdirs) Android.mk)
new:
#HAVE_CACHE := true
ifdef HAVE_CACHE
subdir_makefiles := $(shell cat make_cache)
else
subdir_makefiles := $(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdirs) Android.mk)
$(shell echo $(subdir_makefiles) > make_cache)
endif
第一次编译后将#HAVE_CACHE := true前的#去掉。
当添加了新的Android.mk文件时,重新设置一次。
old:
subdir_makefiles := \
$(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdirs) Android.mk)
new:
#HAVE_CACHE := true
ifdef HAVE_CACHE
subdir_makefiles := $(shell cat make_cache)
else
subdir_makefiles := $(shell build/tools/findleaves.py --prune=out --prune=.repo --prune=.git $(subdirs) Android.mk)
$(shell echo $(subdir_makefiles) > make_cache)
endif
第一次编译后将#HAVE_CACHE := true前的#去掉。
当添加了新的Android.mk文件时,重新设置一次。
相关文章推荐
- Android使用ccache减少编译时间
- Android使用ccache减少编译时间
- Android使用ccache减少编译时间
- cocos2d-x-2.2.3 android 使用已有静态库(*.a),大幅减少编译时间
- android ccache 减少编译的时间
- cocos2d-x 2.2 android 使用已有静态库(*.a),大幅减少编译时间
- Android使用ccache减少编译时间
- cocos2d-x ndk使用已有静态库,减少编译时间
- u3d减少编译时间原理
- 减少Qt编译时间暨简单Qt裁剪
- android 7.0 如何节省编译时间
- 减少Qt编译时间暨简单Qt裁剪
- Linux/Ubuntu 下编译安装Qt(和减少Qt编译时间)
- 减少C++代码编译时间的方法
- 减少C++代码编译时间的方法
- android 获取app的编译时间
- 减少C++代码编译时间的方法
- android编译过程的时间戳问题
- 减少C++代码编译时间的方法