Comments (7)
你好,什么问题?
chromium源代码只是了解一些,希望可以帮到你
from chromium-android-custom-experiment.
你好我根據Google的文件
嘗試做出AS可以開起的Chromium專案 以及 module
https://github.com/CMingTseng/chromium_module_net/blob/master/README.md
但是可能年代久遠
我根據
https://github.com/chromium/chromium/blob/master/docs/android_studio.md
使用
build/android/gradle/generate_gradle.py --output-directory out/Debug
但是AS跟本開不起來
其中相依性問題太多(這個python把R java也引入??!!)
目前還在手動搬遷
然後抽出module -net部分
文章說使用
gn desc out/Default/ net
可以抽出相依性的 c跟h 檔案
實際上我目前也是相依性缺少一堆
請問你的專案是如何整理出來的?
謝謝
因為我需要修改chromium加入功能
from chromium-android-custom-experiment.
我创建这个Chromium源代码转换AS工程的初衷也是想把chromium某个版本的源代码规整到AS工程中定制开发,但是Chromium的编译工具链迁移到AS使用Gradle+CMake或者ndk-build有许多问题,而且有部分代码是基于工程内脚本生成的。
所以暂时的方案是native文件通过chromium编译工具链来生成,然后导入把so编译产物放入AS工程,上层Java代码通过子工程和build产物去定位寻找,然后再做扩展开发。
由于其他工作,这个项目就没有再继续探索下去。
这里是我当时迁移编译时的一个博文,希望对你能有所帮助。
https://www.nitrohsu.com/android-chromium-android-studio-gradle.html
from chromium-android-custom-experiment.
我创建这个Chromium源代码转换AS工程的初衷也是想把chromium某个版本的源代码规整到AS工程中定制开发,但是Chromium的编译工具链迁移到AS使用Gradle+CMake或者ndk-build有许多问题,而且有部分代码是基于工程内脚本生成的。
所以暂时的方案是native文件通过chromium编译工具链来生成,然后导入把so编译产物放入AS工程,上层Java代码通过子工程和build产物去定位寻找,然后再做扩展开发。
由于其他工作,这个项目就没有再继续探索下去。
这里是我当时迁移编译时的一个博文,希望对你能有所帮助。
https://www.nitrohsu.com/android-chromium-android-studio-gradle.html
感謝回覆
我的想法跟你一樣
因為用AS編輯 Java與 XML 比較方便
實際的C當然還是 原始編譯開發環境
我也是透過那個方式拿到SO檔案
你的文章跟版本我看過(因此才找到這個repo)
因為你的版本已經算是很早期了 (目前79~83)
整個差異又很大
相關這樣提取的文章很少
大多看到的都是你們那邊的
可惜都年代久遠 (有6X版73版等)
可以使用的script 已經部分無效(檔案位置改變或是禁用而移除)
就算是 指抽取某些模組的方式(例如net)
也與文章所說的不符
文章說 gn指令可以提取出相依的 c/h檔案
實際上提出來的 還是缺少上百的其他相依檔案!!! (我目前手動對照複製 搬到要死了)
所以想問問有經驗的你
有比較近期的版本 ?
PS. 這是我嘗試抽module的版本
https://github.com/CMingTseng/chromium_module_net/blob/master/README.md
目前後面步驟有錯(原始文章說法 與實際操作上有差異 我還沒完成 所以還沒更新)
謝謝
from chromium-android-custom-experiment.
你好,你使用的浏览器的内核版本是多少?
from chromium-android-custom-experiment.
你好,你使用的浏览器的内核版本是多少?
問我嗎 ?
我後來 提取到 9X (好像是 92 還是 94 反正是 2020年底最後穩定版)版的
不過是私人自己用
from chromium-android-custom-experiment.
from chromium-android-custom-experiment.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chromium-android-custom-experiment.