1. 程式人生 > >build chromium for android

build chromium for android

Get the code

下載安裝depot_tools
clone depot_tools, 並新增到PATH裡面去:

    $ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
    $ export PATH=$PATH:/path/to/depot_tools

下載程式碼

    $ mkdir ~/chromium && cd ~/chromium
    ~/chromium$ fetch --nohooks android
    ~/chromium/src$ gclient sync

Configure your build

chromium Android版本支援GN和GYP編譯配置, 推薦使用GN, 最新版本GYP編譯出錯.

    ~/chromium$ gclient runhooks
    cd src
    ~/chromium/src$ gn args out/Default

出現vi編輯檔案的介面, 添上如下內容:

    target_os = "android"
    target_cpu = "arm"  # (default)
    is_debug = true  # (default)

    # Other args you may want to set:
is_component_build = true is_clang = true symbol_level = 1 # Faster build with fewer symbols. -g1 rather than -g2 enable_incremental_javac = true # Much faster; experimental

安裝依賴庫

配置使用OpenJDK 1.7

    ~/chromium/src$ build/install-build-deps-android.sh

編譯執行

編譯整個瀏覽器

    ~/chromium/src
$ . build/android/envsetup.sh ~/chromium/src$ ninja -C out/Default chrome_public_apk ~/chromium/src$ build/android/adb_install_apk.py out/Default/apks/ChromePublic.apk

編譯webview.apk

    ~/chromium/src$ ninja -C out/Release android_webview_apk

相關推薦

build chromium for android

Get the code 下載安裝depot_tools clone depot_tools, 並新增到PATH裡面去: $ git clone https://chromium.googlesource.com/chromium/tools/de

Build WebRTC for Android

WebRTC 的 Android 編譯指令碼如下: #! /bin/bash #out directories ARMV7_OUT_DIR="out_android_armv7" ARM64_OUT_DIR="out_android_arm64" X86_OUT_DIR

chromium for android硬體渲染流程全解析(render程序)

這篇部落格分析的是網頁內容更新時(比如滾動),render程序將新的網頁內容渲染到off-screen surface的完整流程。 render程序建立的是off-screen surface(不能顯示在螢幕上)。渲染到off-screen surface是通過 frame

Chromium for android 1 原始碼獲取

最近發現 chromium 開源專案可以編譯出來一個 shell 了,看來離 chrome for android 的正式開源的日期越來越近。 今天就整理一下如何下載原始碼、編譯、執行 以下內容在 ubuntu 12.04 64-bit 上面實踐,工作目錄在 Public 獲

Build opencv libraries for android arm, x86 ubuntu

code post cto san data- 動態庫 ack blank scripts 廢話不多說。 準備工作: 1. 下載源代碼: http://opencv.org/ 編譯平臺:ubuntu14.04 opencv 2.4.6.1 本人用這樣的辦法

How to build Tensorflow as a Static Library for Android

A few months ago, I published a Medium story teaching "How to build Tensorflow on Windows with /MT (CPU & GPU)". Recently, I had to make the same Tenso

Gradle For Android系列2:自定義Build配置

在上一章節中我們學習了Gradle的用法,以及如何建立Android專案以及如何從Eclipse中將專案轉換到Android Studio中。這一章節將介紹構建檔案配置的更多細節,以及一些有用的構建任務,並深入Gradle的Android外掛。 在本章中,

How to build Clang toolchains for Android NDK from source code

we have some source changes to LLVM/Clang need add into NDK. After download and change "external/llvm" and build NDK from source. It find

安卓build variant ----Gradle for Android( 構建變體 )

當你在開發一個app,通常你會有幾個版本。大多數情況是你需要一個開發版本,用來測試app和弄清它的質量,然後還需要一個生產版本。這些版本通常有不同的設定,例如不同的URL地址。更可能的是你可能需要一個免費版和收費版本。基於上述情況,你需要處理不同的版本:開發免費版,開發

Visual Studio Emulator for Android 折騰記

多個 develop 新版本 代理 option key 折騰 最新 mac 想用虛擬機調試Android項目,於是想到了MS免費提供的 Visual Studio Emulator for Android,這玩意價格免費量又足,N久之前試用過,速度杠杠的! 安裝包很小,

【社交分享SDK】ShareSDK for Android 2.5.9已經公布

地址 nload trac p s unity3 share 2.x con clas ShareSDK for Android 2.5.9已經公布 版本號:V2.5.9 2015-3-19 1、升級Dropbox對API接口的調用。包含授權、

加快QT工程編譯速度(還可給Qt for Android設置)

qmake targe 沒有 利用 tools too blank tab 這樣的 一、多核編譯 環境:win10, Qt 5.4.1,編譯器mingw32 項目: Qt for Android Qt Creator 在編譯android項目時不支持預編譯,默認cpu

開源項目Universal Image Loader for Android 說明文檔 (1) 簡單介紹

bst 成功 開源 ica ctu structure 使用 說明 由於  When developing applications for Android, one often facesthe problem of displa

ArcGIS Runtime SDK for Android功能概述

部署 編輯 最短路徑 設備 下載 用戶 系統 幾何 和平   使用ArcGIS Runtime SDK for Android,用戶能夠開發出功能強大的移動端GIS應用程序並將它們部署到Android系統的智能手機和平板上,主要功能可覆蓋: 地圖瀏覽:實現常見的地圖縮放、

Qt for Android 開發大坑

tail target details 之前 ide comm eve 自己 post Qt for Android 開發大坑 作者: qyvlik Qt 5.5.1 這裏說一說比較常見的 Qt 開發安卓的大坑。希望同學們不要做無謂

更新 是 可用的 針對 安卓 軟件開發包和工具 Updates are available for android software development packages and tools

安卓 模擬器 軟件 ide software ava -m android 設置 作者:韓夢飛沙 Author:han_meng_fei_sha 郵箱:[email protected]/* */ E-mail: 313134555 @qq.com

NDk編譯opencv for Android,並引用在Unity3d遊戲中的一般步驟

ret app sset cpp unity3d 環境 ptr small var 本文使用:Unity3d + opencv + Android Unity3d中可以調用opencv 編譯好的.so 動態庫,在生成Android apk時可以正常運行。 因為An

OSG for android的編譯總結

display article 原因 mat cygwin 動態鏈接 cep evel arr 最近對OSG進行了android下的編譯。簡單總結一下: 0.介紹下環境:WIN7 64位 + cygwin32位 + OSG3.2.0 1.首先介紹幾篇博文,參考了不少,但並沒

SecureCRT/FX 8.0.0 (build 1063) for Windows 破解版

下載 保持 序列 技術 準備 gin 運行 密文 第一次 SecureCRT 是一款 Windows 上專業的終端 SSH 工具,類似於 Windows 中的 Putty,SecureCRT 支持 SSH1、SSH2、Telnet 等遠程連接,同時具有很多實用和專業的輔助功

RULES OF SURVIVAL 1.115153.115248 Full Apk + Data for Android

rom world mage rac fur this favor class pic Welcome to the arena of RULES OF SURVIVAL! This is a Battle Royale mobile game that has favor