-
Notifications
You must be signed in to change notification settings - Fork 327
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
Allow building sddm-greeter for both Qt 5 and Qt 6 in one go #1790
base: develop
Are you sure you want to change the base?
Conversation
2bfbde6
to
ca73111
Compare
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.
There's a discussion about the translations in the other MR, but I'll press the approve button here to show I read through all 3 commits.
Code is fine for what it's doing.
I don't think it's something we want to support forever, it might be easy enough to add support now, but it can end up holding back development and is the sort of thing that can break silently when someone modernises the SDDM components.
Yes. The question is how long we want to keep Qt 5 support (at least for the greeter). IMO as long as it doesn't hold back progress to an unreasonable extent we should keep it, which could be longer than we might expect now. This PR itself is mostly to make building + packaging easier, but it's not technically necessary. |
There's nothing wrong with mixing QML and C++, they're both code. Mixing big wallpapers not so much
If we're going to go down this route, yes.
Ideally.
Anything that's approved for use in other projects (such as Plasma)
Yeah, it's definitely one of those "person who actually does the work decides" situations, so could go any way. 🚢 |
Out of curiosity: are there other KDE projects that allow building against both Qt5 and Qt6 in one go? Glancing through some Arch packages kdsoap for example, the build is done twice. Perhaps that's was a deliberate package maintainer decision? |
Yes: breeze, oxygen, plasma-integration and phonon(-vlc) at least. |
When building with Qt 6, greeter is by default built and installed for both Qt 5 and Qt 6. When building with Qt 5, the greeter can optionally be built and installed for Qt 6 too. This means QT_IMPORTS_DIR/QML_INSTALL_DIR and COMPONENTS_TRANSLATION_DIR are now Qt version specific and can't be overridden anymore.
ca73111
to
3b6814a
Compare
With #1789 it's possible to have sddm-greeter and sddm-greeter-qt6 on the same system, but this requires building all of SDDM twice. With this PR, a Qt 6 build also installs a Qt 5 greeter automatically and the other way is also possible, but optional.
components
anddata/translations
folders be moved intosrc/greeter
? That way the ugly use ofPARENT_SCOPE
could be avoided, but it mixes data and QML with C++ code.BUILD_GREETER_QTX
options make sense?block()
?) and check whether that's acceptable.