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}
|
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
|
|
|
|
timezonewidget/localeglobal.cpp
|
|
|
|
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}
|
2017-09-13 18:49:43 +02:00
|
|
|
${YAMLCPP_LIBRARY}
|
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
|
|
|
|
LocaleConfiguration.cpp
|
|
|
|
)
|