mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
meson: Replace meson.build_root() with meson.project_build_root()
The build_root() method is deprecated in 0.56.0 and we're recommended to use project_build_root() instead. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
190486519a
commit
5ecdcf8541
@ -30,7 +30,7 @@ awk_prog = find_program('awk')
|
||||
|
||||
syntax_check_conf = configuration_data({
|
||||
'top_srcdir': meson.source_root(),
|
||||
'top_builddir': meson.build_root(),
|
||||
'top_builddir': meson.project_build_root(),
|
||||
'flake8_path': flake8_path,
|
||||
'runutf8': ' '.join(runutf8),
|
||||
'PYTHON3': python3_prog.path(),
|
||||
|
@ -31,7 +31,7 @@ foreach data : html_xslt_gen
|
||||
command: [
|
||||
xsltproc_prog,
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.build_root(),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
|
@ -39,7 +39,7 @@ index_api_gen = custom_target(
|
||||
],
|
||||
command: [
|
||||
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
||||
'--stringparam', 'builddir', meson.build_root(),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'@INPUT@',
|
||||
],
|
||||
@ -66,7 +66,7 @@ foreach name : [ 'admin', 'lxc', 'qemu' ]
|
||||
],
|
||||
command: [
|
||||
xsltproc_prog, '--nonet', '-o', docs_builddir,
|
||||
'--stringparam', 'builddir', meson.build_root(),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'indexfile', 'index-@0@.html'.format(name),
|
||||
'@INPUT@',
|
||||
|
@ -40,7 +40,7 @@ foreach data : html_xslt_gen
|
||||
command: [
|
||||
xsltproc_prog,
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.build_root(),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
|
@ -50,7 +50,7 @@ foreach data : html_xslt_gen
|
||||
command: [
|
||||
xsltproc_prog,
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.build_root(),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
|
@ -148,7 +148,7 @@ foreach data : html_xslt_gen
|
||||
command: [
|
||||
xsltproc_prog,
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.build_root(),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
|
@ -264,7 +264,7 @@ hvsupport_html_in = custom_target(
|
||||
python3_prog,
|
||||
hvsupport_prog,
|
||||
meson.source_root(),
|
||||
meson.build_root(),
|
||||
meson.project_build_root(),
|
||||
],
|
||||
capture: true,
|
||||
depend_files: [
|
||||
@ -305,7 +305,7 @@ foreach data : html_xslt_gen
|
||||
command: [
|
||||
xsltproc_prog,
|
||||
'--stringparam', 'pagesrc', data.get('source', ''),
|
||||
'--stringparam', 'builddir', meson.build_root(),
|
||||
'--stringparam', 'builddir', meson.project_build_root(),
|
||||
'--stringparam', 'timestamp', docs_timestamp,
|
||||
'--stringparam', 'href_base', data.get('href_base', ''),
|
||||
'--nonet',
|
||||
@ -360,7 +360,7 @@ test(
|
||||
args: [
|
||||
check_html_references_prog.path(),
|
||||
'--prefix',
|
||||
meson.build_root() / 'docs'
|
||||
meson.project_build_root() / 'docs'
|
||||
],
|
||||
env: runutf8,
|
||||
)
|
||||
|
@ -26,7 +26,7 @@ endif
|
||||
conf = configuration_data()
|
||||
|
||||
conf.set('_GNU_SOURCE', 1)
|
||||
conf.set_quoted('abs_top_builddir', meson.build_root())
|
||||
conf.set_quoted('abs_top_builddir', meson.project_build_root())
|
||||
conf.set_quoted('abs_top_srcdir', meson.source_root())
|
||||
conf.set_quoted('PACKAGE', meson.project_name())
|
||||
conf.set_quoted('PACKAGE_NAME', meson.project_name())
|
||||
@ -2171,7 +2171,7 @@ if git
|
||||
foreach file : dist_files
|
||||
meson.add_dist_script(
|
||||
meson_python_prog.path(), python3_prog.path(), meson_dist_prog.path(),
|
||||
meson.build_root(), file
|
||||
meson.project_build_root(), file
|
||||
)
|
||||
endforeach
|
||||
endif
|
||||
@ -2183,8 +2183,8 @@ configure_file(output: 'meson-config.h', configuration: conf)
|
||||
|
||||
# generate run helper
|
||||
run_conf = configuration_data({
|
||||
'abs_builddir': meson.build_root(),
|
||||
'abs_top_builddir': meson.build_root(),
|
||||
'abs_builddir': meson.project_build_root(),
|
||||
'abs_top_builddir': meson.project_build_root(),
|
||||
})
|
||||
|
||||
configure_file(
|
||||
|
@ -8,7 +8,7 @@ i18n.gettext(
|
||||
'--keyword=N_',
|
||||
'--add-comments=TRANSLATORS:',
|
||||
'--directory=@0@'.format(meson.source_root()),
|
||||
'--directory=@0@'.format(meson.build_root()),
|
||||
'--directory=@0@'.format(meson.project_build_root()),
|
||||
'--files-from=@0@'.format(meson.current_source_dir() / 'POTFILES'),
|
||||
'--msgid-bugs-address=https://libvirt.org/bugs.html',
|
||||
'--package-version=@0@'.format(meson.project_version()),
|
||||
|
@ -27,7 +27,7 @@ esx_gen_headers = custom_target(
|
||||
command: [
|
||||
meson_python_prog, python3_prog, esx_vi_generator_prog,
|
||||
meson.source_root() / 'src',
|
||||
meson.build_root() / 'src',
|
||||
meson.project_build_root() / 'src',
|
||||
'header',
|
||||
],
|
||||
)
|
||||
@ -48,7 +48,7 @@ esx_gen_sources = custom_target(
|
||||
command: [
|
||||
meson_python_prog, python3_prog, esx_vi_generator_prog,
|
||||
meson.source_root() / 'src',
|
||||
meson.build_root() / 'src',
|
||||
meson.project_build_root() / 'src',
|
||||
'source',
|
||||
],
|
||||
)
|
||||
|
@ -19,7 +19,7 @@ hyperv_gen_sources = custom_target(
|
||||
command: [
|
||||
meson_python_prog, python3_prog, hyperv_wmi_generator_prog,
|
||||
meson.source_root() / 'src',
|
||||
meson.build_root() / 'src',
|
||||
meson.project_build_root() / 'src',
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -3,7 +3,7 @@ src_inc_dir = include_directories('.')
|
||||
src_dep = declare_dependency(
|
||||
compile_args: [
|
||||
'-DIN_LIBVIRT',
|
||||
'-Dabs_top_builddir="@0@"'.format(meson.build_root()),
|
||||
'-Dabs_top_builddir="@0@"'.format(meson.project_build_root()),
|
||||
'-Dabs_top_srcdir="@0@"'.format(meson.source_root()),
|
||||
] + coverage_flags + win32_flags,
|
||||
dependencies: [
|
||||
@ -1032,7 +1032,7 @@ run_pkg_config_files = [
|
||||
|
||||
run_pkg_config_conf = configuration_data({
|
||||
'VERSION': meson.project_version(),
|
||||
'abs_top_builddir': meson.build_root(),
|
||||
'abs_top_builddir': meson.project_build_root(),
|
||||
'abs_top_srcdir': meson.source_root(),
|
||||
})
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
tests_dep = declare_dependency(
|
||||
compile_args: [
|
||||
'-Dabs_builddir="@0@"'.format(meson.current_build_dir()),
|
||||
'-Dabs_top_builddir="@0@"'.format(meson.build_root()),
|
||||
'-Dabs_top_builddir="@0@"'.format(meson.project_build_root()),
|
||||
'-Dabs_srcdir="@0@"'.format(meson.current_source_dir()),
|
||||
'-Dabs_top_srcdir="@0@"'.format(meson.source_root()),
|
||||
] + coverage_flags + cc_flags_relaxed_frame_limit,
|
||||
@ -36,7 +36,7 @@ tests_dep = declare_dependency(
|
||||
tests_env = [
|
||||
'abs_builddir=@0@'.format(meson.current_build_dir()),
|
||||
'abs_srcdir=@0@'.format(meson.current_source_dir()),
|
||||
'abs_top_builddir=@0@'.format(meson.build_root()),
|
||||
'abs_top_builddir=@0@'.format(meson.project_build_root()),
|
||||
'abs_top_srcdir=@0@'.format(meson.source_root()),
|
||||
'LC_ALL=C',
|
||||
'LIBVIRT_AUTOSTART=0',
|
||||
|
Loading…
Reference in New Issue
Block a user