android:speedandroidcompile
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
android:speedandroidcompile [2010/04/01 13:12] – created percy | android:speedandroidcompile [2016/05/05 13:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | 如何加快Android单模块编译速度 | ||
+ | |||
+ | |||
+ | 参见: | ||
+ | |||
+ | 原文引用: | ||
+ | < | ||
+ | 加快Android单模块编译 | ||
+ | |||
+ | 转载时请注明出处和作者联系方式 | ||
+ | 文章出处:http:// | ||
+ | 作者联系方式:李先静 < | ||
+ | |||
+ | 习惯了automake之后,再用Android的编译系统,就是感觉不爽。编译一个小模块也等上几分钟,有次实在受不了,看了一下它的实现,发现它对任何一次编译都要查找所有的Android.mk: | ||
+ | |||
+ | subdir_makefiles=$(shell cat build/ | ||
+ | |||
+ | 我把build/ | ||
+ | |||
+ | subdir_makefiles=$(shell cat build/ | ||
+ | ifeq ($(subdir_makefiles), | ||
+ | $(info "no cache. create build/ | ||
+ | $(shell build/ | ||
+ | subdir_makefiles=$(shell cat build/ | ||
+ | else | ||
+ | $(info "use cache: build/ | ||
+ | endif | ||
+ | |||
+ | 速度终于可以接受了。 | ||
+ | </ | ||
+ | |||
+ | 参照上面的说明, | ||
+ | build/ | ||
+ | 大概在463行, | ||
+ | <code BASH> | ||
+ | subdir_makefiles=$(shell cat build/ | ||
+ | ifeq ($(subdir_makefiles), | ||
+ | $(info "no cache. create build/ | ||
+ | $(shell build/ | ||
+ | subdir_makefiles=$(shell cat build/ | ||
+ | else | ||
+ | $(info "use cache: build/ | ||
+ | endif | ||
+ | </ | ||
+ | |||