diff --git a/doc/api/meson.build b/doc/api/meson.build index 49d5b9a1..d4264e65 100644 --- a/doc/api/meson.build +++ b/doc/api/meson.build @@ -24,7 +24,7 @@ htmldir = join_paths(get_option('datadir'), 'doc', 'dpdk') # So use a configure option for now. example = custom_target('examples.dox', output: 'examples.dox', - command: [generate_examples, join_paths(meson.source_root(), 'examples'), '@OUTPUT@'], + command: [generate_examples, join_paths(meson.project_source_root(), 'examples'), '@OUTPUT@'], depfile: 'examples.dox.d', install: get_option('enable_docs'), install_dir: htmldir, @@ -32,11 +32,11 @@ example = custom_target('examples.dox', 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('API_EXAMPLES', join_paths(meson.project_build_root(), 'doc', 'api', 'examples.dox')) +cdata.set('OUTPUT', join_paths(meson.project_build_root(), 'doc', 'api')) cdata.set('HTML_OUTPUT', 'api') -cdata.set('TOPDIR', meson.source_root()) -cdata.set('STRIP_FROM_PATH', meson.source_root()) +cdata.set('TOPDIR', meson.project_source_root()) +cdata.set('STRIP_FROM_PATH', meson.project_source_root()) doxy_conf = configure_file(input: 'doxy-api.conf.in', output: 'doxy-api.conf',