meson.build: remove automagic docs and manpages

This commit is contained in:
Rasmus Thomsen 2017-10-19 00:02:08 +02:00 committed by Wim Taymans
parent fa5c2000f9
commit 6a0ee7a298
2 changed files with 18 additions and 10 deletions

View file

@ -157,16 +157,16 @@ subdir('spa')
subdir('src')
subdir('pkgconfig')
doxygen = find_program('doxygen', required: false)
if doxygen.found()
subdir('doc')
else
message('Documentation disabled without doxygen')
if get_option('enable_docs')
doxygen_dep = find_program('doxygen')
if doxygen_dep.found()
subdir('doc')
endif
endif
xmltoman = find_program('xmltoman', required: false)
if xmltoman.found()
subdir('man')
else
message('Man page disabled without xmltoman')
if get_option('enable_man')
xmltoman_dep = find_program('xmltoman')
if xmltoman_dep.found()
subdir('man')
endif
endif

8
meson_options.txt Normal file
View file

@ -0,0 +1,8 @@
option('enable_docs',
description: 'Build documentation',
type: 'boolean',
value: false)
option('enable_man',
description: 'Build manpages',
type: 'boolean',
value: false)