Android单个模块编译
2011-12-06 11:15
561 查看
编译模块
android中的一个应用程序可以单独编译,编译后要重新生成system.img
在源码目录下执行
. 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.
可以加—help查看用法
我们可以使用mmm来编译指定目录的模块,如编译联系人:
mmm packages/apps/Contacts/
编完之后生成两个文件:
out/target/product/generic/data/app/ContactsTests.apk
out/target/product/generic/system/app/ Contacts.apk
可以使用make snod重新生成system.img
再运行模拟器
android中的一个应用程序可以单独编译,编译后要重新生成system.img
在源码目录下执行
. 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.
可以加—help查看用法
我们可以使用mmm来编译指定目录的模块,如编译联系人:
mmm packages/apps/Contacts/
编完之后生成两个文件:
out/target/product/generic/data/app/ContactsTests.apk
out/target/product/generic/system/app/ Contacts.apk
可以使用make snod重新生成system.img
再运行模拟器
相关文章推荐
- android 编译单个模块
- android编译系统分析(二)mm编译单个模块
- Android源码开发中单个模块的编译自动化
- 怎么将android单个模块源代码导入到eclipse里编译
- (转)android 编译单个模块
- Android单个模块编译
- Android单个模块编译
- Android单个模块编译
- Android编译系统分析二:mm编译单个模块
- Android 单个模块编译
- Android单个模块编译
- android 单个模块编译的方法
- android 编译单个模块
- android 编译单个模块
- android 编译单个模块
- android 单个模块编译
- 编译Android源码以及单个模块的编译
- android 编译单个模块
- Android模块编译:m/mm/mmm命令
- ubuntu11.10下为android模拟器编译内核到为android开发内核模块(.ko文件)全过程纪实