mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Revert "Merge pull request #27 from ascent12/meson"
This reverts commit85805da021, reversing changes made to8189c64d7f.
This commit is contained in:
parent
7b9c330bc5
commit
b08aa9fd35
34 changed files with 996 additions and 152 deletions
35
session/CMakeLists.txt
Normal file
35
session/CMakeLists.txt
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
include_directories(
|
||||
${WAYLAND_INCLUDE_DIR}
|
||||
${DRM_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
set(sources
|
||||
session.c
|
||||
direct.c
|
||||
direct-ipc.c
|
||||
)
|
||||
|
||||
set(libs
|
||||
wlr-util
|
||||
${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 ()
|
||||
|
||||
if (Libcap_FOUND)
|
||||
add_definitions(${Libcap_DEFINITIONS})
|
||||
include_directories(${Libcap_INCLUDE_DIRS})
|
||||
|
||||
add_definitions(-DHAS_LIBCAP)
|
||||
list(APPEND libs ${Libcap_LIBRARIES})
|
||||
endif ()
|
||||
|
||||
add_library(wlr-session ${sources})
|
||||
target_link_libraries(wlr-session ${libs})
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
wlr_files += files(
|
||||
'direct-ipc.c',
|
||||
'direct.c',
|
||||
'session.c',
|
||||
)
|
||||
|
||||
if dep_systemd.found()
|
||||
wlr_files += files('logind.c')
|
||||
endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue