WEB开发网
开发学院手机开发Android 开发 Android Source Code Download 阅读

Android Source Code Download

 2010-04-12 03:42:00 来源:WEB开发网   
核心提示:choosetype choosevariant croot findmakefile gdbclient get_abs_build_var getbugreports get_build_var getprebuilt gettop help isviewserverstarted jgrep lunch m mm
choosetype choosevariant croot findmakefile gd

bclient get_abs_build_var getbugreports get_build_var getprebuilt gettop help isviewserverstarted jgrep lunch m mm mmm pid

printconfig print_lunch_menu resgrep runhat runtest setpaths set_sequence_number set_stuff_for_environment settitle smoke

test startviewserver stopviewserver tapas tracedmdump

其中对模块的编译有帮助的是tapas、m、mm、mmm这几个命令。

1.tapas - 以交互方式设置build环境,以下是运行效果:

tapas

第一步,选择目标设备:

Build for the simulator or the device?

1. Device

2. Simulator

Which would you like? [1]

第二步,选择目标代码格式:

Build type choices are:

1. release

2. debug

Which would you like? [1]

第三步,选择产品平台:

Product choices are:

1. emulator

2. generic

3. sim

You can also type the name of a product if you know it.

Which would you like? [generic]

第四步,在选用参数下构建平台。

2. 独立模块的构件命令

* 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.

其中mmm后面要跟模块的根目录,不是所有的目录下都有子模块,那些含有Android.mk文件目录才是 模块的根目录,模块名可以从Android.mk的LOCAL_MODULE或者LOCAL_PACKAGE_NAME变量中得到。

单独编译某模块,需要在mmm后面指定模块路径,例如编译application中的Contacts:

mmm packages/apps/Contacts/

或者在src目录下直接运行make module name:

cd ~/android/src

make Contacts

TOP增量编译的步骤

1. 修改代码

2. 编译所修改的代码所在模块,例如:

cd ~/android/src

mmm packages/apps/Contacts

3. 在~/android/src中运行:

上一页  1 2 3 4 5 6 7  下一页

Tags:Android Source Code

编辑录入:coldstar [复制链接] [打 印]
赞助商链接