meson_options.txt: add option html_manual
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
install_man(['mpd.1', 'mpd.conf.5'])
|
install_man(['mpd.1', 'mpd.conf.5'])
|
||||||
|
|
||||||
|
if not get_option('html_manual')
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
sphinx = find_program('sphinx-build', required: get_option('documentation'))
|
sphinx = find_program('sphinx-build', required: get_option('documentation'))
|
||||||
if not sphinx.found()
|
if not sphinx.found()
|
||||||
subdir_done()
|
subdir_done()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if get_option('html_manual')
|
||||||
sphinx_output = custom_target(
|
sphinx_output = custom_target(
|
||||||
'HTML documentation',
|
'HTML documentation',
|
||||||
output: 'html',
|
output: 'html',
|
||||||
@@ -33,5 +38,4 @@ custom_target(
|
|||||||
'--exclude=*',
|
'--exclude=*',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
option('documentation', type: 'feature', description: 'Build documentation')
|
option('documentation', type: 'feature', description: 'Build documentation')
|
||||||
|
option('html_manual', type: 'boolean', value: true, description: 'Build the HTML manual')
|
||||||
|
|
||||||
option('test', type: 'boolean', value: false, description: 'Build the unit tests and debug programs')
|
option('test', type: 'boolean', value: false, description: 'Build the unit tests and debug programs')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user