# manifest **Repository Path**: chromium_develop_ver99/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**: 1 - **Created**: 2022-11-10 - **Last Updated**: 2023-06-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # chromium_develop ## 介绍 基线代码为chromium 99.0.4844.88版本 ## 下载 - tags: origins(无需编译) repo init -u https://gitee.com/chromium_develop_ver99/manifest -m default.xml -b refs/tags/origins --no-repo-verify - tags: master_1115(依赖鸿蒙monthly_20221018分支,目前暂不支持编译) repo init -u https://gitee.com/chromium_develop_ver99/manifest -m default.xml -b refs/tags/master_1115 --no-repo-verify - tags: 3.2_beta5(依赖鸿蒙[OpenHarmony-3.2-Beta5](https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.2-beta5.md#通过repo获取) 分支) repo init -u https://gitee.com/chromium_develop_ver99/manifest -m default.xml -b refs/tags/3.2_beta5 --no-repo-verify - tags: 3.2_release(依赖鸿蒙[OpenHarmony-3.2-Release](https://gitee.com/openharmony/docs/blob/master/zh-cn/release-notes/OpenHarmony-v3.2-release.md#通过repo获取) 分支) repo init -u https://gitee.com/chromium_develop_ver99/manifest -m default.xml -b refs/tags/3.2_release --no-repo-verify - master主干(目前与3.2_release同步) repo init -u https://gitee.com/chromium_develop_ver99/manifest -m default.xml --no-repo-verify ## 编译 修改src/build/config/ohos/config.gni(如果openharmony代码路径为/home/master) ``` if (build_chromium_with_ohos_src) { ohos_ndk_root = "//../../../prebuilts" ohos_build_root = "//../../.." 修改为 if (build_chromium_with_ohos_src) { ohos_ndk_root = "/home/master/prebuilts" ohos_build_root = "/home/master/" ``` ./build.sh rk3568 ## 推送上库 由于仓库很多,几乎src的下一级目录都是一个仓。所以提交代码注意修改可能涉及到多个仓 - 1、查看所在仓 git remote -v - 2、fork到自己的私仓 - 3、提交到自己私仓 ``` git statu git add . git commit -sm "modify information" git push origin 本地分支:远程分支 ``` - 4、在自己私仓提交PR ## 运行 在out目录下找到两个文件 libnweb_render.so、libweb_engine.so 将这几个文件推送到设备中 ``` 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)