diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-07-11 20:15:28 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-11 20:15:28 -0400 |
commit | 85805da021006697c85489c3e30717c2b807441c (patch) | |
tree | ae4a0221b8747579314262b59ff01bec2a32d3b8 /session | |
parent | 8189c64d7f07a756abf5a6189719f02b2f1af967 (diff) | |
parent | e54b1eded4fc44e6f3d22af2f16d5e055dfd0045 (diff) |
Merge pull request #27 from ascent12/meson
[Proposal] Use the Meson build system
Diffstat (limited to 'session')
-rw-r--r-- | session/CMakeLists.txt | 35 | ||||
-rw-r--r-- | session/meson.build | 9 |
2 files changed, 9 insertions, 35 deletions
diff --git a/session/CMakeLists.txt b/session/CMakeLists.txt deleted file mode 100644 index bacd412f..00000000 --- a/session/CMakeLists.txt +++ /dev/null @@ -1,35 +0,0 @@ -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}) diff --git a/session/meson.build b/session/meson.build new file mode 100644 index 00000000..4521cff6 --- /dev/null +++ b/session/meson.build @@ -0,0 +1,9 @@ +wlr_files += files( + 'direct-ipc.c', + 'direct.c', + 'session.c', +) + +if dep_systemd.found() + wlr_files += files('logind.c') +endif |