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).
|
2022-02-08 16:18:47 +01:00
|
|
|
set(lnf_ver 5.41)
|
2017-12-03 18:47:41 +01:00
|
|
|
|
2022-02-08 16:18:47 +01: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
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
find_package(KF5Plasma ${lnf_ver})
|
|
|
|
set_package_properties(KF5Plasma PROPERTIES PURPOSE "For Plasma Look-and-Feel selection")
|
2020-11-17 14:32:50 +01:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
find_package(KF5Package ${lnf_ver})
|
|
|
|
set_package_properties(KF5Package PROPERTIES PURPOSE "For Plasma Look-and-Feel selection")
|
2017-12-23 16:07:42 +01:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
if(KF5Plasma_FOUND AND KF5Package_FOUND)
|
|
|
|
calamares_add_plugin(plasmalnf
|
2017-12-23 16:07:42 +01:00
|
|
|
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
|
|
|
|
KF5::Package
|
|
|
|
KF5::Plasma
|
|
|
|
SHARED_LIB
|
|
|
|
)
|
2022-02-08 16:18:47 +01:00
|
|
|
if(KF5Config_FOUND)
|
2019-05-20 12:59:28 +02:00
|
|
|
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()
|