Development Environment

Development Environment

The Trade Federation source is stored in git along with the rest of the Android platform, and uses the Android platform build system to create its binary. First and foremost, follow these instructions to set up your machine to be able to compile and run things from the Android tree.

Getting the Source


The TF source lives in the Android codebase, but you need to specify an extra option to get at it. Follow these instructions to download the source, but use the branch tradefed to actually pull down the Trade Federation source. The actual command you run should look something like

$ repo init -u https://…/manifest -b tradefed

Building

Trade Federation is set up in a lightweight "unbundled" branch that uses slightly different build commands from the platform source. In particular, unbundled branches use the tapas command to set up the build environment, rather than the lunch command. So starting from the root directory of the source tree you checked out, try:

$ . build/envsetup.sh
$ tapas tradefed-all
$ m -j8

Note that once the $ . build/envsetup.sh step is done, the other two commands will run equally well from anywhere in the tree.

Running from Command Line


First and foremost, tradefed requires the adb utility to be in your current $PATH.

$ export PATH=$PATH:<path to adb>

Building TF using the steps mentioned above will add the tradefed.sh launcher script to your path. So to launch the TF console, run

$ tradefed.sh

At this point, your environment is set up for Trade Federation.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值