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
|
|
|
if(NOT WITH_QML)
|
2020-05-14 15:54:19 +02:00
|
|
|
calamares_skip_module( "localeq (QML is not supported in this build)" )
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
2020-03-24 15:47:53 +01: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)
|
2020-03-24 15:47:53 +01:00
|
|
|
|
2023-09-04 23:57:20 +02:00
|
|
|
find_package(${qtname}Location CONFIG)
|
|
|
|
set_package_properties(${qtname}Location PROPERTIES DESCRIPTION "Used for rendering the map" TYPE RUNTIME)
|
|
|
|
find_package(${qtname}Positioning CONFIG)
|
|
|
|
set_package_properties(${qtname}Positioning PROPERTIES DESCRIPTION "Used for GeoLocation and GeoCoding" TYPE RUNTIME)
|
2020-05-09 14:01:21 +02:00
|
|
|
|
2020-03-26 11:39:04 +01:00
|
|
|
# Because we're sharing sources with the regular locale module
|
2022-02-08 16:18:47 +01:00
|
|
|
set(_locale ${CMAKE_CURRENT_SOURCE_DIR}/../locale)
|
2020-03-24 15:47:53 +01:00
|
|
|
|
2022-02-08 16:18:47 +01:00
|
|
|
calamares_add_plugin(localeq
|
2020-03-24 15:47:53 +01:00
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
|
|
|
LocaleQmlViewStep.cpp
|
2020-03-26 11:39:04 +01:00
|
|
|
${_locale}/Config.cpp
|
2022-08-14 17:16:12 +02:00
|
|
|
${_locale}/LocaleConfiguration.cpp
|
|
|
|
${_locale}/LocaleNames.cpp
|
2020-03-24 15:47:53 +01:00
|
|
|
${_locale}/SetTimezoneJob.cpp
|
|
|
|
RESOURCES
|
2023-10-14 19:56:53 +02:00
|
|
|
localeq${QT_VERSION_SUFFIX}.qrc
|
2020-03-24 15:47:53 +01:00
|
|
|
LINK_PRIVATE_LIBRARIES
|
2023-09-04 23:57:20 +02:00
|
|
|
${qtname}::Network
|
2020-03-24 15:47:53 +01:00
|
|
|
SHARED_LIB
|
|
|
|
)
|
2024-02-19 00:13:26 +01:00
|
|
|
target_include_directories(${localeq_TARGET} PRIVATE ${_locale})
|
|
|
|
if(DEBUG_TIMEZONES)
|
|
|
|
target_compile_definitions(${localeq_TARGET} PRIVATE DEBUG_TIMEZONES)
|
|
|
|
endif()
|