docs: Fix configuration with gtk_doc=true and installed_tests=false

Skip the gdbus-object-manager-example which is generated as part of
testing.

Program xsltproc found: YES (/usr/bin/xsltproc)
Run-time dependency gtk-doc found: YES 1.32

docs/reference/gio/gdbus-object-manager-example/meson.build:1:0: ERROR:
Unknown variable "libgdbus_example_objectmanager_dep".
This commit is contained in:
Chris Mayo 2020-03-27 19:33:12 +00:00
parent 2b741aaf36
commit 84ad802c3a

View File

@ -1,5 +1,7 @@
if get_option('gtk_doc')
subdir('gdbus-object-manager-example')
if installed_tests_enabled
subdir('gdbus-object-manager-example')
endif
subdir('xml')
ignore_headers = [
@ -160,6 +162,30 @@ if get_option('gtk_doc')
copy : true,
)
content_files = [
'overview.xml',
'migrating-posix.xml',
'migrating-gnome-vfs.xml',
'migrating-gconf.xml',
'migrating-gdbus.xml',
'gio-querymodules.xml',
'glib-compile-schemas.xml',
'glib-compile-resources.xml',
'gapplication.xml',
'gsettings.xml',
'gresource.xml',
'gdbus.xml',
'gdbus-codegen.xml',
]
if installed_tests_enabled
content_files += [
gdbus_example_objectmanager_xml,
gdbus_example_objectmanager_sources,
gdbus_object_manager_example_doc
]
endif
gnome.gtkdoc('gio',
main_xml : 'gio-docs.xml',
namespace : 'g',
@ -173,24 +199,7 @@ if get_option('gtk_doc')
mkdb_args : [
'--ignore-files=' + ' '.join(ignore_sources),
],
content_files : [
'overview.xml',
'migrating-posix.xml',
'migrating-gnome-vfs.xml',
'migrating-gconf.xml',
'migrating-gdbus.xml',
'gio-querymodules.xml',
'glib-compile-schemas.xml',
'glib-compile-resources.xml',
'gapplication.xml',
'gsettings.xml',
'gresource.xml',
'gdbus.xml',
'gdbus-codegen.xml',
gdbus_example_objectmanager_xml,
gdbus_example_objectmanager_sources,
gdbus_object_manager_example_doc,
],
content_files : content_files,
expand_content_files : [
'overview.xml',
'migrating-posix.xml',