net/hns3: support PF device with copper PHYs
[dpdk.git] / doc / api / meson.build
index 49d5b9a..dfdefdc 100644 (file)
@@ -34,9 +34,13 @@ cdata = configuration_data()
 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',
@@ -44,9 +48,10 @@ doxy_conf = configure_file(input: 'doxy-api.conf.in',
 
 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,