X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fapi%2Fmeson.build;h=dfdefdc924636de66ce324c0aa1605c522a616fe;hb=aa8bea0e3455;hp=e9b49f9c2f2de4c1d28c66e2cb935c520ef87843;hpb=b1fa45491fda74c7bc4d3c99e5eaa2994c88a1b3;p=dpdk.git diff --git a/doc/api/meson.build b/doc/api/meson.build index e9b49f9c2f..dfdefdc924 100644 --- a/doc/api/meson.build +++ b/doc/api/meson.build @@ -37,6 +37,10 @@ cdata.set('OUTPUT', join_paths(meson.build_root(), 'doc', '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,6 +48,7 @@ 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: 'html', depfile: 'html.d',