diff options
-rw-r--r-- | data/meson.build | 2 | ||||
-rw-r--r-- | docs/meson.build | 4 | ||||
-rw-r--r-- | meson_options.txt | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/data/meson.build b/data/meson.build index 5107f8e..81efa94 100644 --- a/data/meson.build +++ b/data/meson.build @@ -12,7 +12,7 @@ install_data('appdata.its', install_dir : 'share/gettext/its') install_data('appdata.loc', install_dir : 'share/gettext/its') xsltproc = find_program('xsltproc', required : false) -if xsltproc.found() +if get_option('enable-man') and xsltproc.found() custom_target('appstream-util-man', input: 'appstream-util.xml', output: 'appstream-util.1', diff --git a/docs/meson.build b/docs/meson.build index dc2bb41..7827d92 100644 --- a/docs/meson.build +++ b/docs/meson.build @@ -1 +1,3 @@ -subdir('api') +if get_option('enable-gtk-doc') + subdir('api') +endif diff --git a/meson_options.txt b/meson_options.txt index 5289be5..e8c7f55 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -4,3 +4,5 @@ option('enable-rpm', type : 'boolean', value : true, description : 'enable RPM s option('enable-alpm', type : 'boolean', value : false, description : 'enable ALPM support') option('enable-fonts', type : 'boolean', value : true, description : 'enable font support') option('enable-stemmer', type : 'boolean', value : true, description : 'enable stemmer support') +option('enable-man', type : 'boolean', value : true, description : 'generate man pages') +option('enable-gtk-doc', type : 'boolean', value : false, description : 'generate API reference') |