Android 编译的几个命令
2014-07-29 14:23
246 查看
- 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.
其中命令:
croot是改变到顶层目录;m是编译源码树;mm是编译当前目录下所有模块;
mmm是编译所有满足条件编译的模块;
cgrep是查找本地所有C/C++文件;
jgrep是查找本地所有java文件;
resgrep是查找本地所有资源文件res/*.xml;
godir是跳到包括这个文件的目录。
下面使用命令来编译一个目录:
tony@tony-desktop:~/arm/Android-2.0/system/core$ mm
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=AOSP
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
make:进入目录'/home/tony/arm/Android-2.0'
这个命令是在目录~/arm/Android-2.0/system/core开始编译,这样编译速度就可以提高很多了。
- 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.
其中命令:
croot是改变到顶层目录;m是编译源码树;mm是编译当前目录下所有模块;
mmm是编译所有满足条件编译的模块;
cgrep是查找本地所有C/C++文件;
jgrep是查找本地所有java文件;
resgrep是查找本地所有资源文件res/*.xml;
godir是跳到包括这个文件的目录。
下面使用命令来编译一个目录:
tony@tony-desktop:~/arm/Android-2.0/system/core$ mm
============================================
PLATFORM_VERSION_CODENAME=AOSP
PLATFORM_VERSION=AOSP
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=MASTER
============================================
make:进入目录'/home/tony/arm/Android-2.0'
这个命令是在目录~/arm/Android-2.0/system/core开始编译,这样编译速度就可以提高很多了。
相关文章推荐
- 编译android源码时用到的几个命令m、mm、mmm
- adb fastboot 烧机 和 编译android的几个命令
- android平台的几个编译命令----make,mmm,mm,mma
- Android快速编译命令及相关make指令
- android获取源代码、编译、命令(转)
- 【摘录】Ubuntu 10.10编译Android froyo可能需要注意的几个地方
- Android 编译命令及选项(转)
- android 编译命令
- android模块编译,mm命令, 模块编译 .转
- Android 编译命令及选项
- Ubuntu 10.04(64位)下载并编译 Android 2.2 源码[只有11条命令]
- android模块编译,mm命令, 模块编译
- Android 编译命令及选项
- android模块编译,mm命令, 模块编译 .转
- android 模块编译,mm 命令
- android 编译命令
- Android 编译命令及选项
- 几个Android源码编译环境搭建的文章
- Ubuntu 10.04(64位)下载并编译 Android 2.2 源码[只有11条命令]
- Android原生(Native)C开发之一(备份测试代码的编译命令)