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
|
|
|
|
#
|
2022-02-08 16:18:47 +01:00
|
|
|
include(KPMcoreHelper)
|
2019-04-12 11:18:29 +02:00
|
|
|
|
2022-07-03 11:43:01 +02:00
|
|
|
if(KPMcore_FOUND)
|
2022-02-08 16:18:47 +01:00
|
|
|
include_directories(${KPMCORE_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/src/modules/partition)
|
2018-09-14 13:56:18 +02:00
|
|
|
|
2018-09-25 12:39:14 +02:00
|
|
|
# The PartitionIterator is a small class, and it's easiest -- but also a
|
|
|
|
# gross hack -- to just compile it again from the partition module tree.
|
2022-02-08 16:18:47 +01:00
|
|
|
calamares_add_plugin(fsresizer
|
2018-09-14 13:56:18 +02:00
|
|
|
TYPE job
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
|
|
|
ResizeFSJob.cpp
|
|
|
|
LINK_PRIVATE_LIBRARIES
|
2022-07-03 11:43:01 +02:00
|
|
|
calamares::kpmcore
|
2020-10-07 00:11:18 +02:00
|
|
|
COMPILE_DEFINITIONS ${KPMcore_API_DEFINITIONS}
|
2018-09-14 13:56:18 +02:00
|
|
|
SHARED_LIB
|
|
|
|
)
|
2018-09-25 12:39:14 +02:00
|
|
|
|
2020-02-17 14:36:52 +01:00
|
|
|
calamares_add_test(
|
|
|
|
fsresizertest
|
2022-02-08 16:18:47 +01:00
|
|
|
SOURCES Tests.cpp
|
2020-02-17 14:36:52 +01:00
|
|
|
LIBRARIES
|
2022-02-08 16:18:47 +01:00
|
|
|
calamares_job_fsresizer # From above
|
2021-07-26 15:08:29 +02:00
|
|
|
yamlcpp::yamlcpp
|
2020-10-07 00:11:18 +02:00
|
|
|
DEFINITIONS ${KPMcore_API_DEFINITIONS}
|
2020-02-17 14:36:52 +01:00
|
|
|
)
|
2018-09-14 13:56:18 +02:00
|
|
|
else()
|
2022-02-08 16:18:47 +01:00
|
|
|
if(NOT KPMcore_FOUND)
|
2019-08-08 13:32:20 +02:00
|
|
|
calamares_skip_module( "fsresizer (missing suitable KPMcore)" )
|
|
|
|
else()
|
|
|
|
calamares_skip_module( "fsresizer (missing dependencies for KPMcore)" )
|
|
|
|
endif()
|
2018-09-14 13:56:18 +02:00
|
|
|
endif()
|