diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-05 18:26:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 18:26:13 -0400 |
commit | d6d1d57c69daf301bbefe76b81d8fb12f54a2812 (patch) | |
tree | 6980684640b9089bed5324388386427fbca63fdf /examples | |
parent | ce886c03539319f7b3327a4adde3c912e349e0f4 (diff) | |
parent | fdab81e1c95f872e61ab6ff4be65f09fe552f6f2 (diff) |
Merge pull request #31 from nyorain/merged
Use meson as build system
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 81 | ||||
-rw-r--r-- | examples/meson.build | 17 |
2 files changed, 17 insertions, 81 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt deleted file mode 100644 index f3f555c3..00000000 --- a/examples/CMakeLists.txt +++ /dev/null @@ -1,81 +0,0 @@ -include_directories( - ${DRM_INCLUDE_DIRS} - ${CMAKE_CURRENT_SOURCE_DIR} - ${XKBCOMMON_INCLUDE_DIRS} -) - -add_executable(simple - simple.c - shared.c -) - -target_link_libraries(simple - wlr-backend - wlr-session - ${XKBCOMMON_LIBRARIES} -) - -add_executable(rotation - rotation.c - shared.c - cat.c -) - -target_link_libraries(rotation - wlr-backend - wlr-session - wlr-render - ${XKBCOMMON_LIBRARIES} -) - -add_executable(pointer - pointer.c - shared.c - cat.c -) - -target_link_libraries(pointer - wlr-backend - wlr-session - wlr-render - ${XKBCOMMON_LIBRARIES} -) - -add_executable(touch - touch.c - shared.c - cat.c -) - -target_link_libraries(touch - wlr-backend - wlr-session - wlr-render - ${XKBCOMMON_LIBRARIES} -) - -add_executable(tablet - tablet.c - shared.c -) - -target_link_libraries(tablet - wlr-backend - wlr-session - wlr-render - ${XKBCOMMON_LIBRARIES} -) - -add_executable(compositor - compositor/main.c - compositor/wl_compositor.c - compositor/wl_shell.c - shared.c -) - -target_link_libraries(compositor - wlr-backend - wlr-session - wlr-render - ${XKBCOMMON_LIBRARIES} -) diff --git a/examples/meson.build b/examples/meson.build new file mode 100644 index 00000000..ed49444f --- /dev/null +++ b/examples/meson.build @@ -0,0 +1,17 @@ +lib_shared = static_library('shared', + ['shared.c', 'cat.c'], + dependencies: dep_wlr) + +executable('simple', 'simple.c', dependencies: dep_wlr, link_with: lib_shared) +executable('rotation', 'rotation.c', dependencies: dep_wlr, link_with: lib_shared) +executable('pointer', 'pointer.c', dependencies: dep_wlr, link_with: lib_shared) +executable('touch', 'touch.c', dependencies: dep_wlr, link_with: lib_shared) +executable('tablet', 'tablet.c', dependencies: dep_wlr, link_with: lib_shared) + +compositor_src = [ + 'compositor/main.c', + 'compositor/wl_compositor.c', + 'compositor/wl_shell.c', +] + +executable('compositor', compositor_src, dependencies: dep_wlr, link_with: lib_shared) |