Chinaunix首页 | 论坛 | 博客
  • 博客访问: 152677
  • 博文数量: 26
  • 博客积分: 1555
  • 博客等级: 上尉
  • 技术积分: 236
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-16 17:37
个人简介

我在互联网世界等候各位。。。。。

文章分类

全部博文(26)

文章存档

2015年(1)

2011年(4)

2010年(2)

2009年(19)

我的朋友

分类:

2009-11-10 20:18:25

习惯了automake之后,再用Android的编译系统,就是感觉不爽。编译一个小模块也等上几分钟,有次实在受不了,看了一下它的实现,发现它对任何一次编译都要查找所有的Android.mk:
subdir_makefiles=$(shell cat build/tools/Android.mk.cache)
我把build/core/main.mk修改了一下,增加了一个cache:

subdir_makefiles=$(shell cat build/tools/Android.mk.cache)
ifeq ($(subdir_makefiles),)
$(info "no cache. create build/tools/Android.mk.cache")
$(shell build/tools/findleaves.sh --prune="./out" . Android.mk > build/tools/Android.mk.cache)
subdir_makefiles=$(shell cat build/tools/Android.mk.cache)
else
$(info "use cache: build/tools/Android.mk.cache")
endif


阅读(1225) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~