summaryrefslogtreecommitdiffstats
path: root/test cases/wayland/2 core only/meson.build
blob: a35e981986efd6f4c02761f25186ddc79bb8539e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
project('wayland-test-core-only', '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_mod = import('unstable-wayland')
wl_client_dep = dependency('wayland-client')

xdg_shell_xml = wl_mod.find_protocol('xdg-shell')
xdg_shell = wl_mod.scan_xml(xdg_shell_xml, include_core_only : true)
exe = executable('core', 'core.c', xdg_shell, dependencies : wl_client_dep)
test('core', exe)