build-sys: add option to disable building utils

This commit is contained in:
BtbN 2021-12-29 18:57:11 +01:00
parent cfd8fb9398
commit 81e5bfcec3
3 changed files with 10 additions and 1 deletions

View file

@ -1021,6 +1021,10 @@ message('\n '.join(summary))
# Sanity checks
if not get_option('daemon') and not get_option('client')
error('You disabled daemon and client. There is nothing to build!')
endif
if get_option('daemon') and not speex_dep.found() and not webrtc_dep.found() and not get_option('adrian-aec')
error('At least one echo canceller implementation must be available!')
endif

View file

@ -4,6 +4,9 @@ option('daemon',
option('client',
type : 'boolean', value : true,
description : 'Build and install pulseaudio client libraries and utilities')
option('utils',
type : 'boolean', value : true,
description : 'Build and install pulseaudio cli utilities')
option('doxygen',
type : 'boolean', value : true,
description : 'Enable building and installation of documentation generated with doxygen')

View file

@ -222,4 +222,6 @@ endif
if get_option('tests')
subdir('tests')
endif
subdir('utils')
if get_option('utils')
subdir('utils')
endif