feat(build): add sources to rofd to support OFD - #401
Merged
Merged
Conversation
1. 新增 sources 拉取 rofd 源码,装 cargo/rustc 及 libjbig2dec0-dev 2. cargo 构建 rofd-ffi,安装 so 与头文件 3. CMake 加 -DROFD_ROOT,LDD_FILES 加 librofd_ffi.so / libjbig2dec.so 1. Add sources to fetch rofd, install cargo/rustc and libjbig2dec0-dev 2. Build rofd-ffi with cargo, install so and header 3. Add -DROFD_ROOT to CMake, add librofd_ffi.so / libjbig2dec.so to LDD_FILES Log: 源码构建 rofd-ffi 并打包 libjbig2dec,新增 OFD 支持 Influence: deepin-reader 支持 OFD 渲染,运行时依赖自带
|
Warning
详情 {
"export": {
"linglong.yaml": {
"b": [
" export PATH=\"$PREFIX/bin:$PATH\""
]
}
}
} |
Reviewer's Guide该 PR 在 Linglong 构建流程中拉取固定版本的 rofd 源码,安装 Rust/Cargo 工具链和 jbig2dec 依赖,编译并部署 rofd-ffi 及头文件;同时通过 ROFD_ROOT 接入 CMake,并将 rofd 与 libjbig2dec 运行时库纳入最终包,以支持 OFD 渲染。 Flow diagram for building and packaging OFD supportflowchart TD
A[Fetch pinned rofd source] --> B[Install cargo rustc and libjbig2dec0]
B --> C[Build rofd-ffi with cargo]
C --> D[Install librofd_ffi.so and rofd.h]
D --> E[CMake configure with ROFD_ROOT]
E --> F[Build deepin-reader]
F --> G[Package librofd_ffi.so and libjbig2dec.so]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
lzwind
approved these changes
Sep 20, 2026
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: add-uos, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Contributor
Author
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
新增 sources 拉取 rofd 源码,装 cargo/rustc 及 libjbig2dec0-dev
cargo 构建 rofd-ffi,安装 so 与头文件
CMake 加 -DROFD_ROOT,LDD_FILES 加 librofd_ffi.so / libjbig2dec.so
Add sources to fetch rofd, install cargo/rustc and libjbig2dec0-dev
Build rofd-ffi with cargo, install so and header
Add -DROFD_ROOT to CMake, add librofd_ffi.so / libjbig2dec.so to LDD_FILES
Log: 源码构建 rofd-ffi 并打包 libjbig2dec,新增 OFD 支持
Influence: deepin-reader 支持 OFD 渲染,运行时依赖自带
Summary by Sourcery
Build and package rofd-ffi and its dependencies to enable OFD rendering in deepin-reader.
New Features:
Enhancements:
Build: