From c059e3aa7f93da470f052a5cd8ee0d8dc969e679 Mon Sep 17 00:00:00 2001 From: Berke Güzel Date: Tue, 13 Oct 2026 13:44:13 +0300 Subject: rename and simplification --- tests/meson.build | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'tests/meson.build') 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) -- cgit v1.2.3