Skip to content

qt-build-utils: build system changes to have a QtInstallation #1230

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

ahayzen-kdab
Copy link
Collaborator

This is part of one of the steps towards #1125 and rewriting qt-build-utils.

Copy link

codecov bot commented Mar 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (20dd5ad) to head (b0f57b4).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1230   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           73        73           
  Lines        12681     12681           
=========================================
  Hits         12681     12681           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ahayzen-kdab ahayzen-kdab force-pushed the 1125-build-system-changes-qtinstallation branch from 5f33455 to 8dcd7d5 Compare March 14, 2025 17:04
@ahayzen-kdab ahayzen-kdab force-pushed the 1125-build-system-changes-qtinstallation branch 6 times, most recently from 634fb0d to 1ad252a Compare April 22, 2025 15:10
@ahayzen-kdab ahayzen-kdab marked this pull request as ready for review April 22, 2025 15:10
@ahayzen-kdab ahayzen-kdab force-pushed the 1125-build-system-changes-qtinstallation branch from fefe5fc to 155f7a1 Compare April 22, 2025 17:13
@ahayzen-kdab ahayzen-kdab force-pushed the 1125-build-system-changes-qtinstallation branch from 155f7a1 to 86a7f22 Compare April 24, 2025 09:23
@ahayzen-kdab ahayzen-kdab force-pushed the 1125-build-system-changes-qtinstallation branch 2 times, most recently from 328cc00 to 01dc659 Compare May 1, 2025 14:09
@ahayzen-kdab ahayzen-kdab force-pushed the 1125-build-system-changes-qtinstallation branch 2 times, most recently from cdb31a3 to 7015b0f Compare May 12, 2025 16:58
Copy link
Collaborator

@LeonMatthesKDAB LeonMatthesKDAB left a comment

Choose a reason for hiding this comment

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

Some nitpicks, overall looking great!

// }
fn link_modules(&self, builder: &mut cc::Build, qt_modules: &[String]);
/// Find the path to a given Qt tool for the Qt installation
fn try_find_tool(&self, tool: QtTool) -> Option<PathBuf>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should probably return an anyhow::Result instead of an Option.
Otherwise it can be heard to decipher why a required tool could not be found.

/// rather than `"QtCore"`).
//
// TODO: is there a better name for this method or a sane way to create a default QtInstallation?
pub fn new_with_default_installation(qt_modules: Vec<String>) -> anyhow::Result<Self> {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should be new and the other one should be with_installation as "automatically doing the right thing" should be the behavior of new.

@LeonMatthesKDAB
Copy link
Collaborator

I somehow managed to close this PR with an ill-formed force-push 🤯
@ahayzen-kdab #1286 contains these changes + the requested changes.

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.

2 participants