如何获得铬为Android源$ C ​​$ C [英] How to get the source code of Chromium for Android

查看:170
本文介绍了如何获得铬为Android源$ C ​​$ C的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立Chromium开源浏览器为Android。我曾提到:

I'm trying to build Chromium open source browser for Android. I have referred:

请访问: HTTP://$c$c.google.com/ P /铬/维基/ AndroidBuildInstructions

不过,我认为它只会构建测试包不完整的浏览器。任何想法我怎么能有它运行在我的设备上做了一些更改,通过源$ C ​​$ C。

But, I think it will only build the test bundles not the full browser. Any idea how can I have it running on my device for making some changes to it through source code.

我检查了从混帐的code的建议,并建立相应的它使用depot_tools和定位操作系统为安卓。所有构建环境是正确的,我可以使-j4命令。但还是蚀源$ C ​​$ c是不适用于我做出一些改变。

I checked out the code from Git as recommended and build it accordingly using depot_tools and targeting OS as android. All the build environment is correct and I can make "make -j4" command. But still eclipse source code is not available for me to make some changes.

我怎样才能改变呢?

请帮我得到过这个问题。

Please help me getting over this problem.

推荐答案

您可以建立单独使用使-j4 content_shell_apk,而不是建立全包内容的外壳。 这会给你content_shell.apk可以安装到它运行4.0或更高版本的任何Android设备。 如果你想一个Eclipse项目为内容的外壳,那么你必须收集所有必要的src文件和资源文件从铬源树。

You can build content shell alone using "make -j4 content_shell_apk" instead of building the full bundle. This will give you content_shell.apk which can be installed on to any android device which runs 4.0 or higher. If you want to make an eclipse project for content shell then you have to collect all necessary src files and resource files from chromium source tree.

src files:
base/android/java/src/org/chromium/*
media/base/android/java/src/org/chromium/*
ui/android/java/src/org/chromium/*
content/public/android/java/src/org/chromium/*
content/shell/android/java/src/org/chromium/*
net/android/java/src/org/chromium/*

res files:
content/shell/android/res/*
pak file:
out/Release/content_shell/assets/*

native libs:
out/Release/content_shell/libs/armeabi-v7a/*

这篇关于如何获得铬为Android源$ C ​​$ C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆