mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
meson: doxygen and tests to feature options
Allows build to continue without passing extra options. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
88e850fd4b
commit
a8d7d2f732
5 changed files with 14 additions and 9 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
doxygen = find_program('doxygen', required: get_option('doxygen'))
|
||||||
|
if not doxygen.found()
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
cdata.set('DOXYGEN_OUTPUT_DIRECTORY', meson.current_build_dir())
|
cdata.set('DOXYGEN_OUTPUT_DIRECTORY', meson.current_build_dir())
|
||||||
|
|
||||||
doxygen_conf = configure_file(
|
doxygen_conf = configure_file(
|
||||||
|
|
@ -7,4 +12,4 @@ doxygen_conf = configure_file(
|
||||||
)
|
)
|
||||||
|
|
||||||
run_target('doxygen',
|
run_target('doxygen',
|
||||||
command : ['doxygen', doxygen_conf])
|
command : [doxygen, doxygen_conf])
|
||||||
|
|
|
||||||
|
|
@ -840,9 +840,7 @@ check_dep = dependency('check', version : '>= 0.9.10', required : get_option('te
|
||||||
|
|
||||||
# Subdirs
|
# Subdirs
|
||||||
|
|
||||||
if get_option('doxygen')
|
|
||||||
subdir('doxygen')
|
subdir('doxygen')
|
||||||
endif
|
|
||||||
if get_option('client')
|
if get_option('client')
|
||||||
subdir('po')
|
subdir('po')
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ option('client',
|
||||||
type : 'boolean', value : true,
|
type : 'boolean', value : true,
|
||||||
description : 'Build and install pulseaudio client libraries and utilities')
|
description : 'Build and install pulseaudio client libraries and utilities')
|
||||||
option('doxygen',
|
option('doxygen',
|
||||||
type : 'boolean', value : true,
|
type : 'feature',
|
||||||
description : 'Enable building and installation of documentation generated with doxygen')
|
description : 'Enable building and installation of documentation generated with doxygen')
|
||||||
option('gcov',
|
option('gcov',
|
||||||
type : 'boolean', value : false,
|
type : 'boolean', value : false,
|
||||||
|
|
@ -14,7 +14,7 @@ option('man',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
description : 'Enable building and installation of man pages')
|
description : 'Enable building and installation of man pages')
|
||||||
option('tests',
|
option('tests',
|
||||||
type : 'boolean',
|
type : 'feature',
|
||||||
description : 'Enable unit tests')
|
description : 'Enable unit tests')
|
||||||
|
|
||||||
option('system_user',
|
option('system_user',
|
||||||
|
|
|
||||||
|
|
@ -224,7 +224,5 @@ if get_option('daemon')
|
||||||
subdir('daemon')
|
subdir('daemon')
|
||||||
subdir('modules')
|
subdir('modules')
|
||||||
endif
|
endif
|
||||||
if get_option('tests')
|
|
||||||
subdir('tests')
|
subdir('tests')
|
||||||
endif
|
|
||||||
subdir('utils')
|
subdir('utils')
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
if not check_dep.found()
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
# Note that a few tests have dependencies on src/modules.
|
# Note that a few tests have dependencies on src/modules.
|
||||||
#
|
#
|
||||||
# The syntax for tests declaration is:
|
# The syntax for tests declaration is:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue