blob: d98a2ae1f5287f2696db98e9c0f59eccd31ca59d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
include (GdbusCodegen)
set(BACKEND_GENERATED_SOURCES
)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-display-manager
org.freedesktop
${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.DisplayManager.Seat.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-webcredentials
com.lomiri.indicators
${CMAKE_CURRENT_SOURCE_DIR}/com.lomiri.indicators.webcredentials.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-accounts
org.freedesktop
${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.Accounts.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-user
org.freedesktop
${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.Accounts.User.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-login1-manager
org.freedesktop
${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.login1.Manager.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-login1-seat
org.freedesktop
${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.login1.Seat.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-login1-user
org.freedesktop
${CMAKE_CURRENT_SOURCE_DIR}/org.freedesktop.login1.User.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES gnome-screen-saver
org
${CMAKE_CURRENT_SOURCE_DIR}/org.gnome.ScreenSaver.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES gnome-session-manager
org
${CMAKE_CURRENT_SOURCE_DIR}/org.gnome.SessionManager.xml)
add_gdbus_codegen (BACKEND_GENERATED_SOURCES dbus-end-session-dialog
org.gnome.SessionManager
${CMAKE_CURRENT_SOURCE_DIR}/org.gnome.SessionManager.EndSessionDialog.xml)
add_gdbus_codegen_with_namespace (BACKEND_GENERATED_SOURCES lomiri-session
com.lomiri
Lomiri
${CMAKE_CURRENT_SOURCE_DIR}/com.lomiri.Shell.Session.xml)
set (SOURCES actions.c guest.c users.c backend-dbus.c utils.c)
# add the bin dir to our include path s.t. our code can find the autogenerated header files
include_directories (${CMAKE_CURRENT_BINARY_DIR} ${SERVICE_INCLUDE_DIRS})
add_library (backenddbus STATIC ${SOURCES} ${BACKEND_GENERATED_SOURCES})
|