diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 13:44:13 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 13:44:13 +0300 |
| commit | c059e3aa7f93da470f052a5cd8ee0d8dc969e679 (patch) | |
| tree | 63ffa378287ed2c606eda2e940501b9edc3d2b8b /tests/meson.build | |
| parent | 87d0bc50d53dc216efb2b04495f090616318bc5c (diff) | |
rename and simplification
Diffstat (limited to 'tests/meson.build')
| -rw-r--r-- | tests/meson.build | 14 |
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) |
