Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1068856
  • 博文数量: 135
  • 博客积分: 10182
  • 博客等级: 上将
  • 技术积分: 1565
  • 用 户 组: 普通用户
  • 注册时间: 2006-08-07 16:05
文章分类

全部博文(135)

文章存档

2011年(5)

2010年(20)

2009年(3)

2008年(16)

2007年(91)

分类: LINUX

2010-04-09 16:12:13

1.在源码目录下执行
. build/envsetup.sh
注意:.和build/envsetup.sh中间有空格
然后我们就可以使用以下命令了:
croot:   Changes directory to the top of the tree.
m:       Makes from the top of the tree.
mm:      Builds all of the modules in the current directory.
mmm:     Builds all of the modules in the supplied directories.
cgrep:   Greps on all local C/C++ files.
jgrep:   Greps on all local Java files.
resgrep: Greps on all local res/*.xml files.
godir:   Go to the directory containing a file.

2.接下来我们就使用mmm来编译指定目录的模块,如编译日历:
mmm packages/apps/Calendar
编完之后生成两个文件:
Install: out/target/product/generic/data/app/CalendarTests.apk
Install: out/target/product/generic/system/app/Calendar.apk

阅读(1488) | 评论(0) | 转发(0) |
0

上一篇:android模拟器使用

下一篇:Linux重定向

给主人留下些什么吧!~~