Changeset View
Changeset View
Standalone View
Standalone View
greeter/CMakeLists.txt
1 | remove_definitions(-DTRANSLATION_DOMAIN=\"kscreenlocker\") | 1 | remove_definitions(-DTRANSLATION_DOMAIN=\"kscreenlocker\") | ||
---|---|---|---|---|---|
2 | add_definitions(-DTRANSLATION_DOMAIN=\"kscreenlocker_greet\") | 2 | add_definitions(-DTRANSLATION_DOMAIN=\"kscreenlocker_greet\") | ||
3 | 3 | | |||
4 | set(greeter_dbusXML ../dbus/org.kde.screensaver.Greeter.xml) | ||||
5 | set(fdo_notifications_xml ../dbus/org.freedesktop.Notifications.xml) | ||||
6 | | ||||
4 | include_directories( | 7 | include_directories( | ||
5 | ${CMAKE_CURRENT_BINARY_DIR} | 8 | ${CMAKE_CURRENT_BINARY_DIR} | ||
6 | ../kcheckpass | 9 | ../kcheckpass | ||
7 | ${CMAKE_CURRENT_BINARY_DIR}/../ | 10 | ${CMAKE_CURRENT_BINARY_DIR}/../ | ||
8 | ) | 11 | ) | ||
9 | 12 | | |||
10 | set(kscreenlocker_greet_SRCS | 13 | set(kscreenlocker_greet_SRCS | ||
11 | authenticator.cpp | 14 | authenticator.cpp | ||
12 | greeterapp.cpp | 15 | greeterapp.cpp | ||
13 | main.cpp | 16 | main.cpp | ||
14 | noaccessnetworkaccessmanagerfactory.cpp | 17 | noaccessnetworkaccessmanagerfactory.cpp | ||
15 | lnf_integration.cpp | 18 | lnf_integration.cpp | ||
16 | wallpaper_integration.cpp | 19 | wallpaper_integration.cpp | ||
17 | kwinglplatform.cpp | 20 | kwinglplatform.cpp | ||
21 | notifications.cpp | ||||
18 | ) | 22 | ) | ||
19 | 23 | | |||
24 | qt5_add_dbus_adaptor(kscreenlocker_greet_SRCS ${greeter_dbusXML} greeterapp.h ScreenLocker::UnlockApp greeteradapter GreeterAdapter) | ||||
25 | qt5_add_dbus_interface(kscreenlocker_greet_SRCS ${fdo_notifications_xml} notifications_interface) | ||||
26 | | ||||
20 | if(HAVE_SECCOMP) | 27 | if(HAVE_SECCOMP) | ||
21 | set(kscreenlocker_greet_SRCS ${kscreenlocker_greet_SRCS} seccomp_filter.cpp) | 28 | set(kscreenlocker_greet_SRCS ${kscreenlocker_greet_SRCS} seccomp_filter.cpp) | ||
22 | endif() | 29 | endif() | ||
23 | 30 | | |||
24 | qt5_add_resources(kscreenlocker_greet_SRCS fallbacktheme.qrc) | 31 | qt5_add_resources(kscreenlocker_greet_SRCS fallbacktheme.qrc) | ||
25 | kconfig_add_kcfg_files(kscreenlocker_greet_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../kcfg/kscreensaversettingsbase.kcfgc) | 32 | kconfig_add_kcfg_files(kscreenlocker_greet_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../kcfg/kscreensaversettingsbase.kcfgc) | ||
26 | 33 | | |||
27 | ecm_add_wayland_client_protocol(kscreenlocker_greet_SRCS | 34 | ecm_add_wayland_client_protocol(kscreenlocker_greet_SRCS | ||
Show All 19 Lines | 41 | target_link_libraries(kscreenlocker_greet | |||
47 | Wayland::Client | 54 | Wayland::Client | ||
48 | ) | 55 | ) | ||
49 | if(HAVE_SECCOMP) | 56 | if(HAVE_SECCOMP) | ||
50 | target_link_libraries(kscreenlocker_greet Qt5::DBus Seccomp::Seccomp) | 57 | target_link_libraries(kscreenlocker_greet Qt5::DBus Seccomp::Seccomp) | ||
51 | endif() | 58 | endif() | ||
52 | 59 | | |||
53 | install(TARGETS kscreenlocker_greet DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | 60 | install(TARGETS kscreenlocker_greet DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | ||
54 | 61 | | |||
62 | install(FILES ${greeter_dbusXML} | ||||
63 | DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}) | ||||
64 | | ||||
55 | install(DIRECTORY themes/org.kde.passworddialog DESTINATION ${KDE_INSTALL_DATADIR}/ksmserver/screenlocker) | 65 | install(DIRECTORY themes/org.kde.passworddialog DESTINATION ${KDE_INSTALL_DATADIR}/ksmserver/screenlocker) | ||
56 | 66 | | |||
57 | add_subdirectory(autotests) | 67 | add_subdirectory(autotests) |