mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson: add examples option
Add an option to allow the user to disable examples, this will allow to build pipewire without alsa. Without this option, build with -Dpipewire-alsa=false -Dalsa=false fails on: src/examples/meson.build:47:0: ERROR: Unknown variable "alsa_dep". Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
This commit is contained in:
parent
962c3ff1a6
commit
4717690a60
3 changed files with 10 additions and 2 deletions
|
|
@ -2,6 +2,10 @@ option('docs',
|
|||
description: 'Build documentation',
|
||||
type: 'boolean',
|
||||
value: false)
|
||||
option('examples',
|
||||
description: 'Build examples',
|
||||
type: 'boolean',
|
||||
value: true)
|
||||
option('man',
|
||||
description: 'Build manpages',
|
||||
type: 'boolean',
|
||||
|
|
|
|||
|
|
@ -39,7 +39,9 @@ endif
|
|||
|
||||
subdir('tools')
|
||||
subdir('tests')
|
||||
subdir('examples')
|
||||
if get_option('examples')
|
||||
subdir('examples')
|
||||
endif
|
||||
|
||||
pkgconfig.generate(filebase : 'libspa-@0@'.format(spaversion),
|
||||
name : 'libspa',
|
||||
|
|
|
|||
|
|
@ -4,7 +4,9 @@ subdir('extensions')
|
|||
subdir('daemon')
|
||||
subdir('tools')
|
||||
subdir('modules')
|
||||
subdir('examples')
|
||||
if get_option('examples')
|
||||
subdir('examples')
|
||||
endif
|
||||
subdir('tests')
|
||||
|
||||
if get_option('gstreamer')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue