Git Product home page Git Product logo

androidgo's Introduction

#AndroidGo#

Auto build android project use ant command.

Android工程的自动化编译脚本工具------androidGo
此工具采用最新的计算机GO语言(golang)完成,能在linux系统上顺利工作,支持32bits和64bits。

##特性:##

  • 快速编译, Speed! Speed! Speed!
  • 工程深度依赖解决办法,Deep! Deep! Deep!

##场景:## 如project A 依赖 project B(而B也依赖D),project B 依赖 project C,project C 依赖 project D。 那么你只需要告知此工具project A的绝对路径,工具即可自动查找依赖,并依次编译。

##帮助:##

Usage :
   -h : Show command help tip.
   -c : Check your environment.
   -v : Show command version number.
   -p : Input android project path.
   -publish : Choice release(default) or debug mode to publish.
   -tool    : Update project use Git(default) or other code store manager tools.
   -ppath   : Update project path.

-tool和-ppath一起使用,用于从仓库中更新代码;
-tool可以指定Git(暂时只支持Git)、svn、hg等
-ppath用于指定仓库目录

测试:

1.Master分支:顺序执行编译

Tool name : androidGo-sip

2.Develop-goruntime分支:具有多核并行处理能力

Tool name : androidGo-mult

现对比如下(编译相同的Android工程):

ToolCPU NumberDispend Time(Unit:ns)
androidGo-sip1175881123215
androidGo-sip498466618185
androidGo-mult1113663692767
androidGo-mult465844843454
从表格可以看出,在机器配置相同、工程一样的情况下,具有多核并行能力的编译工具更加节省时间
尤其在多核环境下的表现能力,尤为突出。
我的工程较大,但是在这种情况下,优化后在4核上消耗近1分钟,没优化单核上消耗接近3分钟,时间差不多压缩近1/3

androidgo's People

Contributors

shlf avatar

Stargazers

 avatar shenshan avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.