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
|
|
|
|
#
|
|
|
|
|
2018-05-29 09:45:14 +02:00
|
|
|
# When debugging the timezone widget, add this debugging definition
|
|
|
|
# to have a debugging-friendly timezone widget, debug logging,
|
|
|
|
# and no intrusive timezone-setting while clicking around.
|
2022-02-08 16:18:47 +01:00
|
|
|
option(DEBUG_TIMEZONES "Debug-friendly timezone widget." OFF)
|
|
|
|
if(DEBUG_TIMEZONES)
|
|
|
|
add_definitions(-DDEBUG_TIMEZONES)
|
2019-03-17 14:47:50 +01:00
|
|
|
endif()
|
2018-05-29 09:45:14 +02:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
include_directories(${PROJECT_BINARY_DIR}/src/libcalamaresui)
|
2014-07-03 18:00:40 +02:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
calamares_add_plugin(locale
|
2014-07-02 17:59:24 +02:00
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
2018-04-12 18:18:43 +02:00
|
|
|
${geoip_src}
|
2020-03-24 15:47:53 +01:00
|
|
|
Config.cpp
|
2014-11-25 17:40:38 +01:00
|
|
|
LCLocaleDialog.cpp
|
2016-08-10 11:40:22 +02:00
|
|
|
LocaleConfiguration.cpp
|
2022-07-26 22:10:46 +02:00
|
|
|
LocaleNames.cpp
|
2014-07-02 17:59:24 +02:00
|
|
|
LocalePage.cpp
|
2016-08-10 11:40:22 +02:00
|
|
|
LocaleViewStep.cpp
|
2014-08-01 16:29:19 +02:00
|
|
|
SetTimezoneJob.cpp
|
2014-07-02 17:59:24 +02:00
|
|
|
timezonewidget/timezonewidget.cpp
|
2020-04-14 14:44:24 +02:00
|
|
|
timezonewidget/TimeZoneImage.cpp
|
2014-07-02 17:59:24 +02:00
|
|
|
UI
|
2014-08-26 15:18:30 +02:00
|
|
|
RESOURCES
|
|
|
|
locale.qrc
|
2016-12-07 16:37:29 +01:00
|
|
|
LINK_PRIVATE_LIBRARIES
|
|
|
|
Qt5::Network
|
2018-04-12 18:18:43 +02:00
|
|
|
${geoip_libs}
|
2021-07-26 15:08:29 +02:00
|
|
|
yamlcpp::yamlcpp
|
2014-07-02 17:59:24 +02:00
|
|
|
SHARED_LIB
|
|
|
|
)
|
2018-04-12 22:05:02 +02:00
|
|
|
|
2020-02-17 14:36:52 +01:00
|
|
|
calamares_add_test(
|
|
|
|
localetest
|
2022-07-26 22:10:46 +02:00
|
|
|
SOURCES Tests.cpp Config.cpp LocaleConfiguration.cpp LocaleNames.cpp SetTimezoneJob.cpp timezonewidget/TimeZoneImage.cpp
|
2022-02-08 16:18:47 +01:00
|
|
|
DEFINITIONS SOURCE_DIR="${CMAKE_CURRENT_LIST_DIR}/images" DEBUG_TIMEZONES=1
|
|
|
|
LIBRARIES Qt5::Gui
|
2020-02-17 14:36:52 +01:00
|
|
|
)
|