Skip to content
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

fix(build): Remove unnecessary dependencies #366

Merged
merged 1 commit into from
May 9, 2024

Conversation

kegechen
Copy link
Contributor

qtwebengine5-dev build dependcies unnecessary

@@ -1,4 +1,5 @@
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets WebEngineWidgets REQUIRED)
# install qtwebengine5-dev / qt6-webengine-dev manually
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets WebEngineWidgets REQUIRED)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

既然移除了dev的依赖,cmake里面是不是也要移除掉find_package。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个模块 debug 才编译,不 find_package 的话 debug 编译都失败了

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个模块应该没用到了,只是一个示例。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

判断是否找到,没找到加一个message(ERROR)吧,写在注释里面比较难看到。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没找到 cmake 就直接编译失败了 🤣

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果有人执行了sudo apt build-dep . 还编译失败,那他就会很疑惑了,失败的时候把原因打印出来。

@deepin-bot
Copy link

deepin-bot bot commented Mar 27, 2024

TAG Bot

New tag: 6.0.18
DISTRIBUTION: unstable
Suggest: synchronizing this PR through rebase #365

qtwebengine5-dev build dependcies unnecessary
@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • debian/control文件中移除了qtwebengine5-dev依赖,并在注释中说明了手动安装Qt web引擎的步骤。这是一个合理的选择,因为qtwebengine5-dev可能不是所有环境都支持的。

是否建议立即修改:

  • 否,因为这个提交看起来是一个合理地处理环境依赖问题的变更。除非有额外的上下文信息表明需要立即修改,否则这个提交可以被接受。

@kegechen kegechen merged commit a307345 into linuxdeepin:master May 9, 2024
15 of 18 checks passed
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: FeiWang1119, kegechen, Zeno-sole

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants