-
Notifications
You must be signed in to change notification settings - Fork 55
fix: FTBFS when building with newer treeland-protocols #1402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
treeland-dde-shell-v1.xml now requires wl_callback, which is not a part of wayland core. Log:
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAdds the NO_INCLUDE_CORE_ONLY flag to Wayland protocol client source generation for treeland-related protocols so that required non-core interfaces like wl_callback are included, fixing build failures with newer treeland-protocols. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
deepin pr auto review这段代码修改主要涉及 CMake 构建系统中 Wayland 协议生成方式的调整。以下是对该 diff 的详细审查: 1. 语法逻辑审查
2. 代码质量审查
3. 代码性能审查
4. 代码安全审查
5. 改进建议
总结这是一个合理的构建系统修改,目的是为了让生成的 Wayland 协议代码能够访问完整的 Wayland 客户端接口。代码逻辑正确,无明显安全隐患。建议补充 Qt 版本依赖检查以增强构建系统的健壮性。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey - I've left some high level feedback:
- Since
NO_INCLUDE_CORE_ONLYis a relatively new option, consider asserting a minimum Qt/CMake/ECM version (or adding a feature check) to avoid build failures on environments with older tooling. - To avoid duplication and keep behavior consistent across targets using
treeland-dde-shell-v1.xml, consider centralizing theqt_generate_wayland_protocol_client_sourcesconfiguration (includingNO_INCLUDE_CORE_ONLY) in a shared CMake module or function.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since `NO_INCLUDE_CORE_ONLY` is a relatively new option, consider asserting a minimum Qt/CMake/ECM version (or adding a feature check) to avoid build failures on environments with older tooling.
- To avoid duplication and keep behavior consistent across targets using `treeland-dde-shell-v1.xml`, consider centralizing the `qt_generate_wayland_protocol_client_sources` configuration (including `NO_INCLUDE_CORE_ONLY`) in a shared CMake module or function.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 18202781743, BLumia 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 |
treeland-dde-shell-v1.xml now requires wl_callback, which is not a part of wayland core.
Summary by Sourcery
Bug Fixes: