mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 08:28:22 -04:00
[plasmalnf] Make the module optional
- Check for presence of KDE Frameworks for Plasma & Package - Explain when module is skipped
This commit is contained in:
parent
2e1f389997
commit
661789825a
1 changed files with 37 additions and 18 deletions
|
@ -1,8 +1,24 @@
|
||||||
find_package(ECM ${ECM_VERSION} REQUIRED NO_MODULE)
|
find_package(ECM ${ECM_VERSION} REQUIRED NO_MODULE)
|
||||||
|
|
||||||
find_package( KF5 5.29 REQUIRED CoreAddons Plasma Package )
|
# Requires a sufficiently recent Plasma framework, but also
|
||||||
|
# needs a runtime support component (which we don't test for).
|
||||||
|
set( lnf_ver 5.41 )
|
||||||
|
|
||||||
calamares_add_plugin( plasmalnf
|
find_package( KF5Plasma ${lnf_ver} )
|
||||||
|
find_package( KF5Package ${lnf_ver} )
|
||||||
|
set_package_properties(
|
||||||
|
KF5Plasma PROPERTIES
|
||||||
|
PURPOSE "For Plasma Look-and-Feel selection"
|
||||||
|
)
|
||||||
|
set_package_properties(
|
||||||
|
KF5Package PROPERTIES
|
||||||
|
PURPOSE "For Plasma Look-and-Feel selection"
|
||||||
|
)
|
||||||
|
|
||||||
|
if ( KF5Plasma_FOUND AND KF5Package_FOUND )
|
||||||
|
find_package( KF5 ${lnf_ver} REQUIRED CoreAddons Plasma Package )
|
||||||
|
|
||||||
|
calamares_add_plugin( plasmalnf
|
||||||
TYPE viewmodule
|
TYPE viewmodule
|
||||||
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
||||||
SOURCES
|
SOURCES
|
||||||
|
@ -19,4 +35,7 @@ calamares_add_plugin( plasmalnf
|
||||||
KF5::Package
|
KF5::Package
|
||||||
KF5::Plasma
|
KF5::Plasma
|
||||||
SHARED_LIB
|
SHARED_LIB
|
||||||
)
|
)
|
||||||
|
else()
|
||||||
|
calamares_skip_module( "plasmalnf (missing requirements)" )
|
||||||
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue