aboutsummaryrefslogtreecommitdiff
path: root/test cases/wayland/2 server/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/wayland/2 server/meson.build')
-rw-r--r--test cases/wayland/2 server/meson.build16
1 files changed, 16 insertions, 0 deletions
diff --git a/test cases/wayland/2 server/meson.build b/test cases/wayland/2 server/meson.build
new file mode 100644
index 0000000..c93ff11
--- /dev/null
+++ b/test cases/wayland/2 server/meson.build
@@ -0,0 +1,16 @@
+project('wayland-test-server', 'c')
+
+wl_protocols_dep = dependency('wayland-protocols', required : false)
+if not wl_protocols_dep.found()
+ error('MESON_SKIP_TEST: wayland-protocols not installed')
+endif
+
+wl_dep = dependency('wayland-server')
+wl_mod = import('unstable-wayland')
+
+xdg_shell_xml = wl_mod.find_protocol('xdg-shell')
+xdg_shell = wl_mod.scan_xml(xdg_shell_xml, side : 'server')
+
+exe = executable('server', 'main.c', xdg_shell, dependencies : wl_dep)
+
+test('client', exe)