New session interface.

This commit is contained in:
Scott Anderson 2017-05-03 14:11:22 +12:00
parent e446a5300b
commit 762ac7f4c0
6 changed files with 316 additions and 2 deletions

24
session/CMakeLists.txt Normal file
View file

@ -0,0 +1,24 @@
include_directories(
${WAYLAND_INCLUDE_DIR}
)
set(sources
session.c
)
set(libs
wlr-common
${WAYLAND_LIBRARIES}
)
if (SYSTEMD_FOUND)
add_definitions(${SYSTEMD_DEFINITIONS})
include_directories(${SYSTEMD_INCLUDE_DIRS})
add_definitions(-DHAS_SYSTEMD)
list(APPEND sources logind.c)
list(APPEND libs ${SYSTEMD_LIBRARIES})
endif ()
add_library(wlr-session ${sources})
target_link_libraries(wlr-session ${libs})