meson: fix compilation when spa-plugins is disabled

Fixes #3811
This commit is contained in:
Wim Taymans 2024-01-26 15:11:54 +01:00
parent b4c7973d49
commit 1b6370ace1
6 changed files with 23 additions and 5 deletions

View file

@ -83,6 +83,7 @@ test('test-loop',
link_with: pwtest_lib)
)
if get_option('spa-plugins').allowed()
test('test-context',
executable('test-context',
'test-context.c',
@ -106,6 +107,7 @@ test('test-support',
dependencies: [spa_dep, systemd_dep, spa_support_dep, spa_journal_dep],
link_with: [pwtest_lib])
)
endif
test('test-spa',
executable('test-spa',
'test-spa-buffer.c',