| 1 |
project('wayland-test-core-only', 'c') |
| 2 |
|
| 3 |
wl_protocols_dep = dependency('wayland-protocols', required : false) |
| 4 |
if not wl_protocols_dep.found() |
| 5 |
error('MESON_SKIP_TEST: wayland-protocols not installed') |
| 6 |
endif |
| 7 |
|
| 8 |
wl_mod = import('unstable-wayland') |
| 9 |
wl_client_dep = dependency('wayland-client') |
| 10 |
|
| 11 |
xdg_shell_xml = wl_mod.find_protocol('xdg-shell') |
| 12 |
xdg_shell = wl_mod.scan_xml(xdg_shell_xml, include_core_only : true) |
| 13 |
exe = executable('core', 'core.c', xdg_shell, dependencies : wl_client_dep) |
| 14 |
test('core', exe) |