blob: d0d3a3514c324597fbfd9b56837d784bd6ddbfff (
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
57
58
59
60
|
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 unity-session
com.canonical
${CMAKE_CURRENT_SOURCE_DIR}/org.ayatana.Desktop.Session.xml)
set (SOURCES actions.c guest.c users.c backend-dbus.c utils.c)
# add warnings/coverage info on handwritten files
# but not the autogenerated ones...
set_source_files_properties (${SOURCES}
PROPERTIES COMPILE_FLAGS " -g ${CC_WARNING_ARGS} ${GCOV_FLAGS}")
# 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})
|