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.
|
|
|
|
option( DEBUG_TIMEZONES "Debug-friendly timezone widget." OFF )
|
|
|
|
if( DEBUG_TIMEZONES )
|
|
|
|
add_definitions( -DDEBUG_TIMEZONES )
|
|
|
|
endif()
|
|
|
|
|
2020-03-26 11:39:04 +01:00
|
|
|
# Because we're sharing sources with the regular locale module
|
2020-03-24 15:47:53 +01:00
|
|
|
set( _locale ${CMAKE_CURRENT_SOURCE_DIR}/../locale )
|
|
|
|
|
2020-03-26 11:39:04 +01:00
|
|
|
include_directories( ${_locale} )
|
2020-03-24 15:47:53 +01:00
|
|
|
|
|
|
|
calamares_add_plugin( localeq
|
|
|
|
TYPE viewmodule
|
|
|
|
EXPORT_MACRO PLUGINDLLEXPORT_PRO
|
|
|
|
SOURCES
|
|
|
|
LocaleQmlViewStep.cpp
|
2020-03-26 11:39:04 +01:00
|
|
|
${_locale}/LocaleConfiguration.cpp
|
|
|
|
${_locale}/Config.cpp
|
2020-03-24 15:47:53 +01:00
|
|
|
${_locale}/SetTimezoneJob.cpp
|
2020-03-26 11:39:04 +01:00
|
|
|
${_locale}/timezonewidget/localeglobal.cpp
|
2020-03-24 15:47:53 +01:00
|
|
|
RESOURCES
|
|
|
|
${_locale}/locale.qrc
|
|
|
|
LINK_PRIVATE_LIBRARIES
|
|
|
|
calamaresui
|
|
|
|
Qt5::Network
|
|
|
|
SHARED_LIB
|
|
|
|
)
|