利用mm命令编译Android模块 .
来源:互联网 发布:linux 多核启动 编辑:程序博客网 时间:2024/06/05 12:07
转载:http://blog.csdn.net/kellycan/article/details/6457030
在Android开发过程中,当我们只需要编译某个修改过的模块时,使用mm命令可以使你不用编译整个Android项目,而只需单独编译该模块即可,这样速度是不是很快呢?具体的步骤如下:
1. 在Android源代码目录下:
- cd mydroid
- source build/envsetup.sh
也可以将source ~/mydroid/build/envsetup.sh放到~/.bashrc中,这样每次打开shell时就会自动运行该脚本。
2. 在shell中使用help命令查看可以运行的命令
- # help
- Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:
- - 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.
- Look at the source to view more functions. The complete list is:
- add_lunch_combo cgrep check_product check_variant choosecombo chooseproduct choosetype choosevariant cproj croot findmakefile gdbclient get_abs_build_var getbugreports get_build_var getprebuilt gettop godir help isviewserverstarted jgrep lunch m mm mmm pid printconfig print_lunch_menu resgrep runhat runtest set_java_home setpaths set_sequence_number set_stuff_for_environment settitle smoketest startviewserver stopviewserver systemstack tapas tracedmdump
可以看到mm命令,意思是编译当前文件夹下的所有模块。
3. 接下来的事情将变得很简单,只需来到需要编译的模块文件夹下,运行mm命令即可,当然我们也可以用mmm命令,如mmm external/jpeg/,和在external/jpeg/目录下运行mm命令具有同样的效果。
- 利用mm命令编译Android模块 .
- 利用mm命令编译Android模块
- 利用mm命令编译Android模块
- 利用mm命令编译Android模块
- 利用mm命令编译Android模块
- android 模块编译,mm 命令
- android 模块编译,mm 命令
- android模块编译,mm命令, 模块编译
- android模块编译,mm命令, 模块编译
- android模块编译,mm命令, 模块编译
- android模块编译,mm命令, 模块编译
- android模块编译,mm命令, 模块编译
- Android模块编译:m/mm/mmm命令
- Android 模块mm命令编译时出错
- android模块编译,mm命令, 模块编译 .转
- android模块编译,mm命令, 模块编译 .转
- android模块编译,mm命令, 模块编译 .转
- Andriod模块编译,mm命令
- android 精典博文内容推荐
- 判断一个字符是否是CJK(中,日,韩的象形文字)
- 在IIS中碰到的错误,无法识别的属性“targetFramework”。
- 2012社交商务技术创新日(北京站)火热报名中!
- 通过apt-get在Debian Linux下安装FireFox和ThunderBird
- 利用mm命令编译Android模块 .
- 【Web Trick 5】CSS替代图片
- eclipse加载maven工程提示pom.xml无法解析org.apache.maven.plugins:maven-resources-plugin:2.4.3解决方案
- 怎样从Eclipse当中打开一个存在的项目?
- Emoji表情符号兼容方案
- MapReduce Design Patterns
- 用c语言动态操作sqilite3数据库
- Linux tail 命令详解
- dhtmlxgrid实现左右列表数据移动