Merge branch 'build-nits' of git://github.com/sp1ff/MPD
This commit is contained in:
commit
718ae433b2
|
@ -36,3 +36,22 @@ if get_option('manpages')
|
|||
install_dir: [join_paths(get_option('mandir'), 'man1'), join_paths(get_option('mandir'), 'man5')],
|
||||
)
|
||||
endif
|
||||
|
||||
if get_option('doxygen')
|
||||
|
||||
doxygen = find_program('doxygen', required: true)
|
||||
conf_data = configuration_data()
|
||||
conf_data.set('VERSION', meson.project_version())
|
||||
conf_data.set('abs_top_srcdir', meson.source_root())
|
||||
doxyfile = configure_file(
|
||||
input: 'doxygen.conf.in',
|
||||
output: 'Doxyfile',
|
||||
configuration: conf_data
|
||||
)
|
||||
|
||||
custom_target('Doxygen',
|
||||
command: [doxygen, doxyfile],
|
||||
output: ['api'],
|
||||
build_by_default: true
|
||||
)
|
||||
endif
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
option('documentation', type: 'feature', description: 'Build documentation')
|
||||
option('html_manual', type: 'boolean', value: true, description: 'Build the HTML manual')
|
||||
option('manpages', type: 'boolean', value: true, description: 'Build manual pages')
|
||||
option('doxygen', type: 'boolean', value: false, description: 'Build doxygen source documentation')
|
||||
|
||||
option('syslog', type: 'feature', description: 'syslog support')
|
||||
option('inotify', type: 'boolean', value: true, description: 'inotify support (for automatic database update)')
|
||||
|
|
Loading…
Reference in New Issue