-
Notifications
You must be signed in to change notification settings - Fork 19
feat: allow unbundled fonts and resources #80
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
add new CMake option BUNDLED_KCATEGORIZEDVIEW to choose. Default to enabled on Windows, Mac, and disabled on other platforms (linux).
This is used instead of D-Bus on systems without it (Windows, Mac).
The bundled QXT library has already been disabled for a while. On most systems, the mediakeys can be handled by the standard interface for "playing music".
This package is readily available in development environments, so there's no point in keeping an old version around in the source tree.
CMake option BUNDLED_FONTAWESOME controls whether Cantata attempts to use and bundle FontAwesome in a QResource. In addition, this should help fix the font icon issues present in previous versions by setting the fontStyle parameter on QFont.
This is a modified copy of KDE Solid inherited from upstream Cantata. While Solid is definitely available as a package on Linux, it might be harder to install KDE Frameworks on Windows and Linux. Keep this in tree for now until KF6::Solid can be correctly vendored and implemented. Also, the devices feature might not even be working properly right now.
|
Thanks a lot! I've split the changes and kept compatibility with the other platforms. There are two new CMake options: BUNDLED_KCATEGORIZEDVIEW and BUNDLED_FONTAWESOME, and they're both disabled by default on Linux so that system libraries/fonts are used first. The only thing I changed was the deletion of the in-tree version of Solid. I don't wanna break builds, and it seems that the feature might be broken in some ways anyway. The version of Solid needs to be upgraded to KF6::Solid (and also have a BUNDLED_SOLID option), which will probably happen in another changeset. |
Well you caused me to go back and see what you were talking about, because on of my ways of testing for 3rdparty addons was simply changing the name and see what broke and run it down. I did it with solid, and nothing happened, things built properly and all was right with the world, so I thought it wasn't used. What I have now found out is that in the CMake, there is a test for taglib 2... well, Fedora has taglib 2, but it is just called taglib, so that check is failed and cantata builds with device support off, even though it is marked on - and solid is never used. I just went ahead and turned device support off, since it has never been on to begin with. I think it would be fairly easy to switch to use the system library at least in linux, but in my mind the question is why? Seems cantata has strayed a bit from being just a great mpd client to a jack of all trades. |
This patch removes bundled fonts and resource files from Cantata’s source tree
Changes:
Dependency: This is the base patch for a four-part cleanup series: