Commit a909708f authored by Zeeshan Ali's avatar Zeeshan Ali

docs: Only build service docs if service build is enabled

Otherwise, `install` target fails when service build is disabled.
parent 245b73b5
Pipeline #23600 passed with stage
in 10 minutes and 49 seconds
......@@ -2,25 +2,27 @@ if get_option('libgeoclue')
subdir('lib')
endif
conf = configuration_data()
conf.set_quoted('VERSION', gclue_version)
version_file = configure_file(output: 'version.xml',
input: 'version.xml.in',
configuration: conf)
if get_option('enable-backend')
conf = configuration_data()
conf.set_quoted('VERSION', gclue_version)
version_file = configure_file(output: 'version.xml',
input: 'version.xml.in',
configuration: conf)
content_files = [ '../COPYING',
geoclue_iface_sources ]
scan_options = [ '--ignore-headers=config.h',
'--rebuild-sections',
'--rebuild-types' ]
# Extra options to supply to gtkdoc-mkdb
mkdb_options = [ '--output-format=xml' ]
content_files = [ '../COPYING',
geoclue_iface_sources ]
scan_options = [ '--ignore-headers=config.h',
'--rebuild-sections',
'--rebuild-types' ]
# Extra options to supply to gtkdoc-mkdb
mkdb_options = [ '--output-format=xml' ]
gnome.gtkdoc('geoclue',
main_xml: 'geoclue-docs.xml',
content_files: content_files,
scan_args: scan_options,
src_dir: libgeoclue_public_api_inc,
mkdb_args: mkdb_options,
dependencies: libgeoclue_dep,
install: true)
gnome.gtkdoc('geoclue',
main_xml: 'geoclue-docs.xml',
content_files: content_files,
scan_args: scan_options,
src_dir: libgeoclue_public_api_inc,
mkdb_args: mkdb_options,
dependencies: libgeoclue_dep,
install: true)
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment