summaryrefslogtreecommitdiff
path: root/tests/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'tests/meson.build')
-rw-r--r--tests/meson.build14
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build
index c06fcca..26bb5cb 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -79,7 +79,19 @@ contracts_test = executable(
)
test('contracts', contracts_test)
-keyboard_test = executable('yasl-keyboard-test', 'common/test_keyboard.c',
+# Exercise the SDK-independent mappings even when their backend is disabled.
+# Enabled backends already provide their mapping through yasl_dep.
+keyboard_test_sources = files('common/test_keyboard.c')
+if not has_wayland
+ keyboard_test_sources += files('../src/platform/wayland/keymap.c')
+endif
+if not has_x11
+ keyboard_test_sources += files('../src/platform/x11/keymap.c')
+endif
+if not has_cocoa
+ keyboard_test_sources += files('../src/platform/cocoa/keymap.c')
+endif
+keyboard_test = executable('yasl-keyboard-test', keyboard_test_sources,
include_directories: inc, dependencies: yasl_dep,
)
test('keyboard', keyboard_test)