blob: 1c0df8e46dadd00308d90c05dd1a7799e425e1eb (
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
|
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.canonical.indicators
${CMAKE_CURRENT_SOURCE_DIR}/com.canonical.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)
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})
|