1macro(make_dbus_class NAME INTERFACE)
2 if(${CMAKE_CURRENT_SOURCE_DIR}/interfaces.xml IS_NEWER_THAN ${CMAKE_CURRENT_BINARY_DIR}/${NAME}Adaptor.h)
3 execute_process(COMMAND ${QDBUSXML2CPP_EXECUTABLE} -c ${NAME}Adaptor -a ${CMAKE_CURRENT_BINARY_DIR}/${NAME}Adaptor ${CMAKE_CURRENT_SOURCE_DIR}/interfaces.xml ${INTERFACE})
5endmacro(make_dbus_class)
7make_dbus_class(LightDMSession org.freedesktop.DisplayManager.Session)
8make_dbus_class(LogindManager org.freedesktop.login1.Manager)
9make_dbus_class(LogindSession org.freedesktop.login1.Session)
12 ${CMAKE_CURRENT_BINARY_DIR}
13 ${CMAKE_SOURCE_DIR}/plugins/Unity/Session
14 ${libunity8-private_SOURCE_DIR}
18add_definitions(-DSM_BUSNAME=sessionBus)
19add_definitions(-DSRCDIR="${CMAKE_CURRENT_SOURCE_DIR}")
20add_definitions(-DSESSION_TESTING)
23add_executable(LightDMServer
24 ${CMAKE_CURRENT_BINARY_DIR}/LightDMSessionAdaptor.cpp
25 ${CMAKE_CURRENT_BINARY_DIR}/LogindManagerAdaptor.cpp
26 ${CMAKE_CURRENT_BINARY_DIR}/LogindSessionAdaptor.cpp
31qt5_use_modules(LightDMServer Core DBus)
34add_executable(sessionbackendtestExec
35 sessionbackendtest.cpp
36 ${CMAKE_SOURCE_DIR}/plugins/Unity/Session/dbusunitysessionservice.cpp
38target_link_libraries(sessionbackendtestExec
42qt5_use_modules(sessionbackendtestExec Test Core Qml DBus)
44add_unity8_unittest(SessionBackend dbus-test-runner
45 ENVIRONMENT XDG_SESSION_PATH=/session
46 ARG_PREFIX "--parameter"
48 --task $<TARGET_FILE:LightDMServer>
51 --task $<TARGET_FILE:sessionbackendtestExec>
53 --wait-for org.freedesktop.DisplayManager
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list