Commit 6e27db08 authored by Volker Krause's avatar Volker Krause

Move brightness and screen lock code to its own folder

There's still more decoupling from application code to do though.
parent ecf2c9ea
add_definitions(-DTRANSLATION_DOMAIN=\"kde-itinerary\")
add_subdirectory(solidextras)
add_subdirectory(weather)
if (ANDROID)
add_subdirectory(kandroidextras)
......
......@@ -40,6 +40,7 @@ ecm_qt_declare_logging_category(itinerary_srcs
add_library(itinerary STATIC ${itinerary_srcs})
target_link_libraries(itinerary PUBLIC
itinerary-weather
SolidExtras
KPublicTransport
KPim::Itinerary
KPim::PkPass
......@@ -67,22 +68,7 @@ set(itinerary_app_srcs
tickettokenmodel.cpp
weatherforecastmodel.cpp
${qml_srcs}
brightnessmanager.cpp
lockmanager.cpp
)
if (ANDROID)
list(APPEND itinerary_app_srcs
androidbrightnessbackend.cpp
androidlockbackend.cpp
)
else()
list(APPEND itinerary_app_srcs
solidbrightnessbackend.cpp
solidlockbackend.cpp
)
qt5_add_dbus_interface(itinerary_app_srcs org.kde.Solid.PowerManagement.Actions.BrightnessControl.xml brightnesscontroldbusinterface)
qt5_add_dbus_interface(itinerary_app_srcs org.freedesktop.ScreenSaver.xml screensaverdbusinterface)
endif()
add_executable(itinerary-app ${itinerary_app_srcs})
target_include_directories(itinerary-app PRIVATE ${CMAKE_BINARY_DIR})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment