build-sys: meson: Allow building the daemon only

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
This commit is contained in:
Mart Raudsepp 2021-09-24 15:19:05 +03:00 committed by PulseAudio Marge Bot
parent a67f894775
commit 4cf4a1fd5b
10 changed files with 54 additions and 16 deletions

View file

@ -20,8 +20,6 @@ default_tests += [
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
[ 'json-test', 'json-test.c',
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
[ 'mainloop-test', 'mainloop-test.c',
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
[ 'proplist-test', 'proplist-test.c',
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
[ 'thread-mainloop-test', 'thread-mainloop-test.c',
@ -32,6 +30,13 @@ default_tests += [
[ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
]
if not get_option('daemon-only')
default_tests += [
[ 'mainloop-test', 'mainloop-test.c',
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
]
endif
if get_option('daemon')
default_tests += [
[ 'asyncmsgq-test', 'asyncmsgq-test.c',