android下m、mm、mmm编译命令的使用
16lz
2021-01-26
通过查看android源码目录下的build/envsetup.sh文件,可知:
- 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.
要想使用这些命令,首先需要在android源码根目录执行. build/envsetup.sh
m:编译所有的模块
mm:编译当前目录下的模块,当前目录下要有Android.mk文件
mmm:编译指定路径下的模块,指定路径下要有Android.mk文件
下面举个例子说明,假设我要编译android下的libjpeg模块,当前目录为源码根目录,方法如下:
1、. build/envsetup.sh
2、mmm external/jpeg/
或者 :
1、. build/envsetup.sh
2、cd external/jpeg
3、mm
最后说明一下,envsetup.sh只要source一次就够了,source之后还可以用croot命令返回到源码根目录,很好用。
- 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.
要想使用这些命令,首先需要在android源码根目录执行. build/envsetup.sh
m:编译所有的模块
mm:编译当前目录下的模块,当前目录下要有Android.mk文件
mmm:编译指定路径下的模块,指定路径下要有Android.mk文件
下面举个例子说明,假设我要编译android下的libjpeg模块,当前目录为源码根目录,方法如下:
1、. build/envsetup.sh
2、mmm external/jpeg/
或者 :
1、. build/envsetup.sh
2、cd external/jpeg
3、mm
最后说明一下,envsetup.sh只要source一次就够了,source之后还可以用croot命令返回到源码根目录,很好用。
更多相关文章
- Android函数计算器(含源码,Android测试工程)
- unix like系统的android反编译工具
- android编译系统makefile(Android.mk)写法 (zz)
- Android(安卓)8.1预置apk为可卸载
- 二、PocketSphinx-Android编译与运行
- ubuntu 10.04 Android(安卓)编译环境搭建
- Android编译时报错:Error:Connection timed out: connect. If you
- ubuntu环境下载android系统源码代码
- Ubuntu12.10编译Android(安卓)4.0.3的常见错误