2020-08-26 00:24:52 +02:00
|
|
|
# === This file is part of Calamares - <https://github.com/calamares> ===
|
|
|
|
#
|
|
|
|
# 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.
|
2019-03-17 14:47:50 +01:00
|
|
|
option( DEBUG_TIMEZONES "Debug-friendly timezone widget." OFF )
|
|
|
|
if( DEBUG_TIMEZONES )
|
|
|
|
add_definitions( -DDEBUG_TIMEZONES )
|
|
|
|
endif()
|
2018-05-29 09:45:14 +02:00
|
|
|
|
2014-07-03 18:00:40 +02:00
|
|
|
include_directories( ${PROJECT_BINARY_DIR}/src/libcalamaresui )
|
|
|
|
|
2014-07-02 17:59:24 +02:00
|
|
|
calamares_add_plugin( locale
|
|
|
|
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
|
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
|
2014-07-03 18:00:40 +02:00
|
|
|
calamaresui
|
2016-12-07 16:37:29 +01:00
|
|
|
Qt5::Network
|
2018-04-12 18:18:43 +02:00
|
|
|
${geoip_libs}
|
2020-02-17 14:55:12 +01:00
|
|
|
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
|
|
|
|
SOURCES
|
|
|
|
Tests.cpp
|
2020-08-06 12:32:48 +02:00
|
|
|
Config.cpp
|
2020-02-17 14:36:52 +01:00
|
|
|
LocaleConfiguration.cpp
|
2020-08-06 12:32:48 +02:00
|
|
|
SetTimezoneJob.cpp
|
2020-04-14 15:10:04 +02:00
|
|
|
timezonewidget/TimeZoneImage.cpp
|
|
|
|
DEFINITIONS
|
|
|
|
SOURCE_DIR="${CMAKE_CURRENT_LIST_DIR}/images"
|
2020-04-15 14:30:10 +02:00
|
|
|
DEBUG_TIMEZONES=1
|
2020-04-14 15:10:04 +02:00
|
|
|
LIBRARIES
|
|
|
|
Qt5::Gui
|
2020-02-17 14:36:52 +01:00
|
|
|
)
|