9 Star 1 Fork 24

src-openEuler/chromium

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
chromium-127-bindgen.patch 4.02 KB
一键复制 编辑 原始数据 按行查看 历史
misaka00251 提交于 2024-09-13 17:05 . Upgrade to version 128
author: Andres Salomon <dilinger@debian.org>
description: fix bindgen-related stuff
Two separate but related fixes:
Crabbyav1f is calling bindgen features which are not currently in
bookworm or sid; --allowlist-item was added in bindgen 0.68. As far
as I can tell the build.rs stuff calls allowlist_item from there as
well, so these arguments may just be redundant? Hopefully I'm not
breaking stuff.. Drop this for sid once bindgen gets upgraded.
Also, the call to bindgen sets the path for libclang to
rust_bindgen_root, which is wrong. We're already passing
clang_base_path with the path to libclang, there's no reason that
we'd expect libclang to be in the same directory as bindgen. That
fix should probably go upstream.
--- a/third_party/crabbyavif/BUILD.gn
+++ b/third_party/crabbyavif/BUILD.gn
@@ -12,15 +12,6 @@ rust_bindgen("crabbyavif_dav1d_bindings"
bindgen_flags = [
"no-doc-comments",
"generate=functions,types,vars,methods,constructors,destructors",
- "allowlist-item=dav1d_close",
- "allowlist-item=dav1d_data_unref",
- "allowlist-item=dav1d_data_wrap",
- "allowlist-item=dav1d_default_settings",
- "allowlist-item=dav1d_error",
- "allowlist-item=dav1d_get_picture",
- "allowlist-item=dav1d_open",
- "allowlist-item=dav1d_picture_unref",
- "allowlist-item=dav1d_send_data",
]
}
@@ -46,59 +37,6 @@ rust_bindgen("crabbyavif_libyuv_bindings
bindgen_flags = [
"no-doc-comments",
"generate=functions,types,vars,methods,constructors,destructors",
- "allowlist-item=ARGBAttenuate",
- "allowlist-item=ARGBUnattenuate",
- "allowlist-item=Convert16To8Plane",
- "allowlist-item=FilterMode",
- "allowlist-item=FilterMode_kFilterBilinear",
- "allowlist-item=FilterMode_kFilterBox",
- "allowlist-item=FilterMode_kFilterNone",
- "allowlist-item=HalfFloatPlane",
- "allowlist-item=I010AlphaToARGBMatrix",
- "allowlist-item=I010AlphaToARGBMatrixFilter",
- "allowlist-item=I010ToARGBMatrix",
- "allowlist-item=I010ToARGBMatrixFilter",
- "allowlist-item=I012ToARGBMatrix",
- "allowlist-item=I210AlphaToARGBMatrix",
- "allowlist-item=I210AlphaToARGBMatrixFilter",
- "allowlist-item=I210ToARGBMatrix",
- "allowlist-item=I210ToARGBMatrixFilter",
- "allowlist-item=I400ToARGBMatrix",
- "allowlist-item=I410AlphaToARGBMatrix",
- "allowlist-item=I410ToARGBMatrix",
- "allowlist-item=I420AlphaToARGBMatrix",
- "allowlist-item=I420AlphaToARGBMatrixFilter",
- "allowlist-item=I420ToARGBMatrix",
- "allowlist-item=I420ToARGBMatrixFilter",
- "allowlist-item=I420ToRGB24Matrix",
- "allowlist-item=I420ToRGB24MatrixFilter",
- "allowlist-item=I420ToRGB565Matrix",
- "allowlist-item=I420ToRGBAMatrix",
- "allowlist-item=I422AlphaToARGBMatrix",
- "allowlist-item=I422AlphaToARGBMatrixFilter",
- "allowlist-item=I422ToARGBMatrix",
- "allowlist-item=I422ToARGBMatrixFilter",
- "allowlist-item=I422ToRGB24MatrixFilter",
- "allowlist-item=I422ToRGB565Matrix",
- "allowlist-item=I422ToRGBAMatrix",
- "allowlist-item=I444AlphaToARGBMatrix",
- "allowlist-item=I444ToARGBMatrix",
- "allowlist-item=I444ToRGB24Matrix",
- "allowlist-item=ScalePlane",
- "allowlist-item=ScalePlane_12",
- "allowlist-item=YuvConstants",
- "allowlist-item=kYuv2020Constants",
- "allowlist-item=kYuvF709Constants",
- "allowlist-item=kYuvH709Constants",
- "allowlist-item=kYuvI601Constants",
- "allowlist-item=kYuvJPEGConstants",
- "allowlist-item=kYuvV2020Constants",
- "allowlist-item=kYvu2020Constants",
- "allowlist-item=kYvuF709Constants",
- "allowlist-item=kYvuH709Constants",
- "allowlist-item=kYvuI601Constants",
- "allowlist-item=kYvuJPEGConstants",
- "allowlist-item=kYvuV2020Constants",
]
}
--- a/build/rust/rust_bindgen.gni
+++ b/build/rust/rust_bindgen.gni
@@ -18,7 +18,7 @@ if (host_os == "win") {
# On Windows, the libclang.dll is beside the bindgen.exe, otherwise it is in
# ../lib.
-_libclang_path = rust_bindgen_root
+_libclang_path = clang_base_path
if (host_os == "win") {
_libclang_path += "/bin"
} else {
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/chromium.git
git@gitee.com:src-openeuler/chromium.git
src-openeuler
chromium
chromium
master

搜索帮助