All below build steps are trivial, but i took like a week to get a grip of..  just documenting to be handy.


$MYDROID is root of your android source directory.

Quick Incremental Build
Setup the environment for your build setup, go to moudle's directory with Android.mk and build.
`source $MYDROID/build/envsetup.sh`
`cd ./hardware/ti/omap3/liboverlay`
`mm`

Note: `mm-B` will clean build all the libraries under a subdirectory.
Package build Building .apk in android SDK. No need of eclipse or PDK. `source $MYDROID/build/envsetup.sh`
`mmm `
(say #mmm $MYDROID/packages/gallery)
Selective Clean
` make clean-` (eg. #make clean-libomxcommon )
Complete clean  `make clean`  works but, "rm -rf ./out" is faster

Display full commands
`make showcommands`

Number of parallel threads
This is same as GNU make, and chose it based on number of cpu cores available.
`make -j`
Btw, complete android build guide is available athttp://pdk.android.com/online-pdk/guide/build_system.html

------------------------
From: http://www.bittoggler.com/2010/06/android-build-tips-and-tricks.html

更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. 安卓boot recovery解包打包
  2. Android(安卓)多点触控技术
  3. Android介绍
  4. AIDL实现进程间通信
  5. :Handler方法小结(在线程中更新UI和了解Han
  6. 开源项目之Android Afinal框架
  7. android:gravity和android:layout_gravit
  8. [Android菜鸟笔记]xml实现编辑框/按钮的
  9. Android(安卓)Service
  10. 【Android】Uri、UriMatcher、ContentUri