如何编译 chromium for android

本文档详细介绍了如何从源代码编译 Chromium 的 Android 版本,包括安装必需的工具、配置工作环境、同步代码、构建项目等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1 install the depot_tools 

   1) git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 

     2) export PATH="$PATH":`pwd`/depot_tools

2 gclient config https://src.chromium.org/chrome/trunk/src

3 Modify .gclient

           solutions = [ { "name" : "src",

           "url" : "https://git.chromium.org/chromium/src.git", 

          "deps_file" : ".DEPS.git", 

          "managed" : True, "custom_deps" : { },

         "safesync_url": "", },]

         target_os = ['android'] //add this line

4 gclient sync  –nohooks 

(if fail, execute “gclient sync” again)

if error occured, execute this script and go next. 

# cd src/build # sudo ./install-build-deps.sh

5 . build/android/envsetup.sh 

6 gclient runhooks

7 android_gyp 

8 ninja -C out/Release -j10 content_shell_apk 

目前chromium的android版本, app是没有开源的 . 只有 contentshell 和 testshell两个 简易的app. contentshell只是 可以显示网页, 支持前进和后退

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值