android下m、mm、mmm编译命令的使用
生活随笔
收集整理的這篇文章主要介紹了
android下m、mm、mmm编译命令的使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
通過查看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命令返回到源碼根目錄,很好用。?
轉載于:https://my.oschina.net/u/183622/blog/133800
總結
以上是生活随笔為你收集整理的android下m、mm、mmm编译命令的使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Write operations are
- 下一篇: ActionContext.getCon