blob: 5c99e9fdb7f88fe9228d7d5ade9e0fbb97a84183 (
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
|
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
org.ayatana.indicators
${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.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 (BACKEND_GENERATED_SOURCES desktop-session
org.ayatana
${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.Desktop.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})
|