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 | | ||||
4 | include_directories( | 6 | include_directories( | ||
5 | ${CMAKE_CURRENT_BINARY_DIR} | 7 | ${CMAKE_CURRENT_BINARY_DIR} | ||
6 | ../kcheckpass | 8 | ../kcheckpass | ||
7 | ${CMAKE_CURRENT_BINARY_DIR}/../ | 9 | ${CMAKE_CURRENT_BINARY_DIR}/../ | ||
8 | ) | 10 | ) | ||
9 | 11 | | |||
10 | set(kscreenlocker_greet_SRCS | 12 | set(kscreenlocker_greet_SRCS | ||
11 | authenticator.cpp | 13 | authenticator.cpp | ||
12 | greeterapp.cpp | 14 | greeterapp.cpp | ||
13 | main.cpp | 15 | main.cpp | ||
14 | noaccessnetworkaccessmanagerfactory.cpp | 16 | noaccessnetworkaccessmanagerfactory.cpp | ||
15 | lnf_integration.cpp | 17 | lnf_integration.cpp | ||
16 | wallpaper_integration.cpp | 18 | wallpaper_integration.cpp | ||
17 | kwinglplatform.cpp | 19 | kwinglplatform.cpp | ||
18 | ) | 20 | ) | ||
19 | 21 | | |||
22 | qt5_add_dbus_adaptor(kscreenlocker_greet_SRCS ${greeter_dbusXML} greeterapp.h ScreenLocker::UnlockApp greeteradapter GreeterAdapter) | ||||
23 | | ||||
20 | if(HAVE_SECCOMP) | 24 | if(HAVE_SECCOMP) | ||
21 | set(kscreenlocker_greet_SRCS ${kscreenlocker_greet_SRCS} seccomp_filter.cpp) | 25 | set(kscreenlocker_greet_SRCS ${kscreenlocker_greet_SRCS} seccomp_filter.cpp) | ||
22 | endif() | 26 | endif() | ||
23 | 27 | | |||
24 | qt5_add_resources(kscreenlocker_greet_SRCS fallbacktheme.qrc) | 28 | qt5_add_resources(kscreenlocker_greet_SRCS fallbacktheme.qrc) | ||
25 | kconfig_add_kcfg_files(kscreenlocker_greet_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../kcfg/kscreensaversettingsbase.kcfgc) | 29 | kconfig_add_kcfg_files(kscreenlocker_greet_SRCS ${CMAKE_CURRENT_SOURCE_DIR}/../kcfg/kscreensaversettingsbase.kcfgc) | ||
26 | 30 | | |||
27 | ecm_add_wayland_client_protocol(kscreenlocker_greet_SRCS | 31 | ecm_add_wayland_client_protocol(kscreenlocker_greet_SRCS | ||
Show All 19 Lines | 38 | target_link_libraries(kscreenlocker_greet | |||
47 | Wayland::Client | 51 | Wayland::Client | ||
48 | ) | 52 | ) | ||
49 | if(HAVE_SECCOMP) | 53 | if(HAVE_SECCOMP) | ||
50 | target_link_libraries(kscreenlocker_greet Qt5::DBus Seccomp::Seccomp) | 54 | target_link_libraries(kscreenlocker_greet Qt5::DBus Seccomp::Seccomp) | ||
51 | endif() | 55 | endif() | ||
52 | 56 | | |||
53 | install(TARGETS kscreenlocker_greet DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | 57 | install(TARGETS kscreenlocker_greet DESTINATION ${KDE_INSTALL_LIBEXECDIR}) | ||
54 | 58 | | |||
59 | install(FILES ${greeter_dbusXML} | ||||
60 | DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR}) | ||||
61 | | ||||
55 | install(DIRECTORY themes/org.kde.passworddialog DESTINATION ${KDE_INSTALL_DATADIR}/ksmserver/screenlocker) | 62 | install(DIRECTORY themes/org.kde.passworddialog DESTINATION ${KDE_INSTALL_DATADIR}/ksmserver/screenlocker) | ||
56 | 63 | | |||
57 | add_subdirectory(autotests) | 64 | add_subdirectory(autotests) |