# manifest **Repository Path**: chromium_develop/manifest ## Basic Information - **Project Name**: manifest - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-07 - **Last Updated**: 2023-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # chromium_develop ## 介绍 基线代码为chromium 91.0.4455.0版本 ## 下载(master主干代码) - chromium下载: repo init -u https://gitee.com/chromium_develop/manifest -m default.xml --no-repo-verify ## 编译 由于不同分支编译命令不同,具体表格选项 编译命令 | 分支名 | 对应的openharmony分支 | 编译命令 | | --- | --- | --- | | Chromium_Develop-Origin | 无 | [origin](https://gitee.com/chromium_develop/manifest/tree/Chromium_Develop-Origin/) | | Chromium_Develop-3.1-Release | OpenHarmony-3.1-Release | [3.1Release](https://gitee.com/chromium_develop/manifest/tree/Chromium_Develop-3.1-Release) | | Chromium_Develop-3.2-Beta1 | OpenHarmony-3.2-Beta1 | [3.2Beta1](https://gitee.com/chromium_develop/manifest/tree/Chromium_Develop-3.2-Beta1/) | | Chromium_Develop-3.2-Beta2 | OpenHarmony-3.2-Beta2 | [3.2Beta2](https://gitee.com/chromium_develop/manifest/tree/Chromium_Develop-3.2-Beta2/) | | master | OpenHarmony-3.2-Beta2 | [3.2Beta2](https://gitee.com/chromium_develop/manifest/tree/Chromium_Develop-3.2-Beta2/)| ## 推送上库 由于仓库很多,几乎src的下一级目录都是一个仓。所以提交代码注意修改可能涉及到多个仓 - 1、查看所在仓 git remote -v - 2、fork到自己的私仓 - 3、提交到自己私仓 ``` git statu git add . git commit -sm "modify information" git push origin 本地分支:远程分支 ``` - 4、在自己私仓提交PR ## 运行 在out目录下找到几个文件 chrome_100_percent.pak、resources.pak、snapshot_blob.bin、icudtl.dat、locales/zh-CN.pak、libnweb_adapter.so、libnweb_render.so、libweb_engine.so 将这几个文件推送到设备中 ``` hdc file send chrome_100_percent.pak /data/app/ell/bundle/public/com.ohos.nweb/entry/resources/rawfile hdc file send resources.pak /data/app/ell/bundle/public/com.ohos.nweb/entry/resources/rawfile hdc file send snapshot_blob.bin /data/app/ell/bundle/public/com.ohos.nweb/entry/resources/rawfile hdc file send icudtl.dat /data/app/ell/bundle/public/com.ohos.nweb/entry/resources/rawfile hdc file send locales/zh-CN.pak /data/app/ell/bundle/public/com.ohos.nweb/entry/resources/rawfile hdc file send libnweb_adapter.so /data/app/ell/bundle/public/com.ohos.nweb/libs/arm hdc file send libnweb_render.so /data/app/ell/bundle/public/com.ohos.nweb/libs/arm hdc file send libweb_engine.so /data/app/ell/bundle/public/com.ohos.nweb/libs/arm ``` 重启设备 ``` hdc reboot ``` ## nweb_test使用说明 [web_webview](https://gitee.com/openharmony/web_webview)是openharmony web组件的Native引擎,此处仅提供基于Native接口的测试使用说明 - 1.测试代码默认不编译,使用测试代码时,需要在代码仓根目录[bundle.json](https://gitee.com/openharmony/web_webview/blob/master/bundle.json)中增加nweb_test目标: ``` "sub_component": [ "//base/web/webview/ohos_nweb:libnweb", "//base/web/webview/ohos_nweb:nweb_hap", "//base/web/webview/test:nweb_test" ], ``` - 2.编译 目前openharmony编译是基于32位 ``` ./build.sh --product-name rk3568 --ccache --build-target webview_test ``` 会在openharmony的out/rk3568/web/webview/目录下生成libnweb_ohos_adapter.z.so、libnweb.z.so、nweb_test、web_render文件。 - 3.将上一步4个文件推送到RK3568 ``` hdc file send libnweb.z.so /system/lib/ hdc file send libnweb_ohos_adapter.z.so /system/bin/ hdc file send nweb_test /system/bin/ hdc file send web_render /system/bin/ ``` - 4.运行 ``` hdc shell nweb_test 1 --width=720 --height=1184 --add-args=--for-test ``` 以上命令会默认加载百度首页,--url=xxx.com命令行参数可以设置你想加载的网页 ## 相关仓 [web_webview](https://gitee.com/openharmony/web_webview)