cdata.set('VERSION', meson.project_version())
cdata.set('API_EXAMPLES', join_paths(meson.build_root(), 'doc', 'api', 'examples.dox'))
cdata.set('OUTPUT', join_paths(meson.build_root(), 'doc', 'api'))
-cdata.set('HTML_OUTPUT', 'api')
+cdata.set('HTML_OUTPUT', 'html')
cdata.set('TOPDIR', meson.source_root())
cdata.set('STRIP_FROM_PATH', meson.source_root())
+cdata.set('WARN_AS_ERROR', 'NO')
+if get_option('werror')
+ cdata.set('WARN_AS_ERROR', 'YES')
+endif
doxy_conf = configure_file(input: 'doxy-api.conf.in',
output: 'doxy-api.conf',
doxy_build = custom_target('doxygen',
depends: example,
+ depend_files: 'doxy-api-index.md',
input: doxy_conf,
- output: 'api',
- depfile: 'api.d',
+ output: 'html',
+ depfile: 'html.d',
command: [generate_doxygen, '@INPUT@', '@OUTPUT@', generate_css],
install: get_option('enable_docs'),
install_dir: htmldir,