aboutsummaryrefslogtreecommitdiff
path: root/examples/meson.build
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-07-11 09:56:54 +1200
committerScott Anderson <ascent12@hotmail.com>2017-07-11 09:56:54 +1200
commita2ba226ba3f06236518cd15cab807a42c309b6dd (patch)
tree7fa52e472a3885333ebda68b2d903f429b4a0425 /examples/meson.build
parent924bf0f669cde20b414cd9f12e72750ca5fdbbaf (diff)
Use subdir
Diffstat (limited to 'examples/meson.build')
-rw-r--r--examples/meson.build22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/meson.build b/examples/meson.build
new file mode 100644
index 00000000..4cc05073
--- /dev/null
+++ b/examples/meson.build
@@ -0,0 +1,22 @@
+lib_shared = static_library('shared',
+ ['shared.c', 'cat.c'],
+ dependencies: dep_wlr)
+
+all_libs = [
+ lib_shared,
+ lib_wlr,
+]
+
+executable('simple', 'simple.c', link_with: all_libs)
+executable('rotation', 'rotation.c', link_with: all_libs)
+executable('pointer', 'pointer.c', link_with: all_libs)
+executable('touch', 'touch.c', link_with: all_libs)
+executable('tablet', 'tablet.c', link_with: all_libs)
+
+compositor_src = [
+ 'compositor/main.c',
+ 'compositor/wl_compositor.c',
+ 'compositor/wl_shell.c',
+]
+
+executable('compositor', compositor_src, link_with: all_libs)