WEB开发网
开发学院手机开发Android 开发 Android 开发基础知识 阅读

Android 开发基础知识

 2010-05-28 15:50:00 来源:WEB开发网   
核心提示:function runhat()function getbugreports()function startviewserver()function stopviewserver()function isviewserverstarted()function smoketest()function runtest()

function runhat()

function getbugreports()

function startviewserver()

function stopviewserver()

function isviewserverstarted()

function smoketest()

function runtest()

function runtest_py()

function godir ()

choosecombo 命令分析:

function choosecombo()

{

choosesim $1

echo

echo

choosetype $2

echo

echo

chooseproduct $3

echo

echo

choosevariant $4

echo

set_stuff_for_environment

printconfig

}

会依次进行如下选择:

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

4. littleton

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

Which would you like? [littleton]

Variant choices are:

1. user

2. userdebug

3. eng

Which would you like? [eng] user

默认选择以后会出现:

TARGET_PRODUCT=littleton

TARGET_BUILD_VARIANT=user

TARGET_SIMULATOR=false

TARGET_BUILD_TYPE=release

TARGET_ARCH=arm

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=

==========

function chooseproduct()函数分析:

choices=(`/bin/ls build/target/board/*/BoardConfig.mk vendor/*/*/BoardConfig.mk 2> /dev/null`)

读取 build/target/board/* 目录下的板配置文件:BoardConfig.mk

读取 vendor/*/*/目录下的板配置文件:BoardConfig.mk

上一页  3 4 5 6 7 8 9 10 11 12 13  下一页

Tags:Android 开发 基础知识

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