首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

Chromium for android 一 源码获取

2013-02-20 
Chromium for android 1 源码获取最近发现 chromium 开源项目可以编译出来一个 shell 了,看来离 chrome fo

Chromium for android 1 源码获取

最近发现 chromium 开源项目可以编译出来一个 shell 了,看来离 chrome for android 的正式开源的日期越来越近。

今天就整理一下如何下载源码、编译、运行

以下内容在 ubuntu 12.04  64-bit 上面实践,工作目录在 Public

获取源码1.  git 要安装的。2. chromium 的源码管理使用了自定义的一组工具,先把它抓下来 git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
3. Add depot_tools to your PATH:
      $ export PATH="$PATH":`pwd`/depot_toolsYou may want to add this to your .bashrc file or your shell's equivalent so that you don’t need to reset your $PATH manually each time you open a new shell.

Now tell git about yourself.

--global."My Name"--global."my@email"--global.false--global.false
Initial checkout

First, have gclient create its configuration file.

://chromium.googlesource.com/chromium/src.git --git-deps
源码中默认有很多内容是我们暂时不需要的,为了尽快完成获取源码,请按照以下步骤:


Edit your .gclient file to avoid checking out the enormous set of WebKit layout tests (unless, of course, you need them). Add to the "custom_deps" dictionary:

"src/third_party/WebKit/LayoutTests":None,"src/content/test/data/layout_tests/LayoutTests":None,

Other things that are large and that you probably won't need that you can put there:

"src/chrome_frame/tools/test/reference_build/chrome":None,"src/chrome_frame/tools/test/reference_build/chrome_win":None,"src/chrome/test/data/perf/third_party/octane":None,"src/chrome/tools/test/reference_build/chrome":None,"src/chrome/tools/test/reference_build/chrome_linux":None,"src/chrome/tools/test/reference_build/chrome_mac":None,"src/chrome/tools/test/reference_build/chrome_win":None,
在最后面添加一行,来设定我们要获取能够编译android 版本。
=['android']
Checkout

 you should avoid running gclient hooks when syncing for the first time, as the setup for these tools is not complete until build/android/envsetup.sh has been run.

--.//.shgclient runhooks
后面就可以准备开始编译了。
编译和运行结果看下一篇http://blog.csdn.net/yajun0601/article/details/8583320




热点排行