2020-08-25 16:05:56 +02:00
|
|
|
# === This file is part of Calamares - <https://calamares.io> ===
|
2020-08-26 00:24:52 +02:00
|
|
|
#
|
|
|
|
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
|
|
|
# SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
#
|
2017-12-03 18:47:41 +01:00
|
|
|
find_package(ECM ${ECM_VERSION} REQUIRED NO_MODULE)
|
|
|
|
|
2017-12-23 16:07:42 +01:00
|
|
|
# Requires a sufficiently recent Plasma framework, but also
|
|
|
|
# needs a runtime support component (which we don't test for).
|
|
|
|
set( lnf_ver 5.41 )
|
2017-12-03 18:47:41 +01:00
|
|
|
|
2018-03-29 14:49:22 +02:00
|
|
|
find_package( KF5Config ${lnf_ver} )
|
|
|
|
set_package_properties(
|
|
|
|
KF5Config PROPERTIES
|
|
|
|
PURPOSE "For finding default Plasma Look-and-Feel"
|
|
|
|
)
|
2020-11-17 14:32:50 +01:00
|
|
|
|
|
|
|
find_package( KF5Plasma ${lnf_ver} )
|
2017-12-23 16:07:42 +01:00
|
|
|
set_package_properties(
|
|
|
|
KF5Plasma PROPERTIES
|
|
|
|
PURPOSE "For Plasma Look-and-Feel selection"
|
2017-12-03 18:47:41 +01:00
|
|
|
)
|
2020-11-17 14:32:50 +01:00
|
|
|
|
|
|
|
find_package( KF5Package ${lnf_ver} )
|
2017-12-23 16:07:42 +01:00
|
|
|
set_package_properties(
|
|
|
|
KF5Package PROPERTIES
|
|
|
|
PURPOSE "For Plasma Look-and-Feel selection"
|
|
|
|
)
|
|
|
|
|
2020-11-17 14:32:50 +01:00
|
|
|
find_package( KF5ItemModels ${lnf_ver} )
|
|
|
|
set_package_properties(
|
|
|
|
KF5ItemModels PROPERTIES
|
|
|
|
PURPOSE "For Plasma Look-and-Feel display"
|
|
|
|
)
|
|
|
|
|
|
|
|
if ( KF5Plasma_FOUND AND KF5Package_FOUND AND KF5ItemModels_FOUND )
|
2017-12-23 16:07:42 +01:00
|
|
|
calamares_add_plugin( plasmalnf
|
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
2018-03-29 14:49:22 +02:00
|
|
|
COMPILE_DEFINITIONS
|
|
|
|
${option_defs}
|
2017-12-23 16:07:42 +01:00
|
|
|
SOURCES
|
2020-11-11 13:08:42 +01:00
|
|
|
Config.cpp
|
2017-12-23 16:07:42 +01:00
|
|
|
PlasmaLnfViewStep.cpp
|
|
|
|
PlasmaLnfPage.cpp
|
|
|
|
PlasmaLnfJob.cpp
|
2020-11-16 16:37:30 +01:00
|
|
|
ThemeInfo.cpp
|
2017-12-23 16:07:42 +01:00
|
|
|
RESOURCES
|
|
|
|
page_plasmalnf.qrc
|
|
|
|
UI
|
|
|
|
page_plasmalnf.ui
|
|
|
|
LINK_PRIVATE_LIBRARIES
|
|
|
|
calamaresui
|
2020-11-17 14:32:50 +01:00
|
|
|
KF5::ItemModels
|
2017-12-23 16:07:42 +01:00
|
|
|
KF5::Package
|
|
|
|
KF5::Plasma
|
|
|
|
SHARED_LIB
|
|
|
|
)
|
2019-05-20 12:59:28 +02:00
|
|
|
if ( KF5Config_FOUND )
|
|
|
|
target_compile_definitions(calamares_viewmodule_plasmalnf PRIVATE WITH_KCONFIG)
|
|
|
|
endif()
|
2017-12-23 16:07:42 +01:00
|
|
|
else()
|
|
|
|
calamares_skip_module( "plasmalnf (missing requirements)" )
|
|
|
|
endif()
|