mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2026-05-22 13:28:12 +02:00
meson: Don't search for gtk-doc if disabled
This commit is contained in:
parent
c889154ec8
commit
1003d5c2a6
1 changed files with 20 additions and 18 deletions
|
|
@ -27,21 +27,23 @@ version_xml = configure_file(
|
|||
input: 'version.xml.in',
|
||||
configuration: cdata)
|
||||
|
||||
gnome.gtkdoc('UPower',
|
||||
main_xml: 'upower-docs.xml',
|
||||
src_dir: meson.source_root() / 'libupower-glib',
|
||||
dependencies: [ libupower_glib_dep ],
|
||||
scan_args: ['--rebuild-types', '--rebuild-sections'],
|
||||
content_files: [
|
||||
version_xml,
|
||||
ifaces_refs,
|
||||
'man/UPower.xml',
|
||||
'man/upowerd.xml',
|
||||
'man/upower.xml',
|
||||
'../COPYING',
|
||||
],
|
||||
ignore_headers: [
|
||||
'config.h',
|
||||
],
|
||||
install: get_option('gtk-doc')
|
||||
)
|
||||
if get_option('gtk-doc')
|
||||
gnome.gtkdoc('UPower',
|
||||
main_xml: 'upower-docs.xml',
|
||||
src_dir: meson.source_root() / 'libupower-glib',
|
||||
dependencies: [ libupower_glib_dep ],
|
||||
scan_args: ['--rebuild-types', '--rebuild-sections'],
|
||||
content_files: [
|
||||
version_xml,
|
||||
ifaces_refs,
|
||||
'man/UPower.xml',
|
||||
'man/upowerd.xml',
|
||||
'man/upower.xml',
|
||||
'../COPYING',
|
||||
],
|
||||
ignore_headers: [
|
||||
'config.h',
|
||||
],
|
||||
install: true
|
||||
)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue