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

Android Source Code Download

 2010-04-12 03:42:00 来源:WEB开发网   
核心提示:generic-img-eng.justin.zip生成的SDK目录结构为:/home/justin/android/src/out/host/linux-x86/sdk/android-sdk_eng.justin_linux-x86:总计 32drwxrwx--- 6 justin justin 4096 02-1

generic-img-eng.justin.zip

生成的SDK目录结构为:

/home/justin/android/src/out/host/linux-x86/sdk/android-sdk_eng.justin_linux-x86:

总计 32

drwxrwx--- 6 justin justin 4096 02-13 17:06 .

drwxr-x--- 3 justin justin 4096 02-13 17:09 ..

drwxrwx--- 2 justin justin 4096 02-13 17:06 add-ons

drwxrwx--- 14 justin justin 4096 02-13 17:06 docs

-rw-rw---- 1 justin justin 172 02-13 17:08 documentation.html

drwxrwx--- 3 justin justin 4096 02-13 17:06 platforms

-rw-rw---- 1 justin justin 225 02-13 17:08 RELEASE_NOTES.txt

drwxrwx--- 3 justin justin 4096 02-13 17:08 tools

安装生成的SDK只需要在.bashrc中增加:

export PATH=$PATH:/home/justin/android/src/out/host/linux-x86/sdk/android-sdk_eng.justin_linux-x86/tools

为了使用方便,将生成的SDK目录链结至~/android/sdk:

ln -sf /home/justin/android/src/out/host/linux-x86/sdk/android-sdk_eng.justin_linux-x86/tools

~/android/sdk

TOP模块编译

在src目录执行:

cd ~/android/src

. build/envsetup.sh

envsetup.sh 提供了一些的bash函数定义,当运行了envsetup.sh后就可以使用help 命令来查看:

help

得到这些命令的帮助信息:

Invoke ". build/envsetup.sh" from your shell to add the following functions to your environment:

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

Look at the source to view more functions. The complete list is:

add_lunch_combo cgrep check_product check_variant choosecombo chooseproduct

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

Tags:Android Source Code

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