mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
treewide: meson.build: use project_{build,source}_root()
Use `meson.project_{build,source}_root()` instead of
`meson.{build,source}_root()` because those functions
do not work as expected when used inside a subproject,
and they have been deprecated in meson 0.56.0.
This commit is contained in:
parent
b666edde78
commit
8ed46a283f
8 changed files with 36 additions and 36 deletions
|
|
@ -304,9 +304,9 @@ includes_inc = include_directories('include')
|
|||
pipewire_inc = include_directories('src')
|
||||
|
||||
makedata = configuration_data()
|
||||
makedata.set('BUILD_ROOT', meson.build_root())
|
||||
makedata.set('SOURCE_ROOT', meson.source_root())
|
||||
makedata.set('VERSION', pipewire_version)
|
||||
makedata.set('BUILD_ROOT', meson.project_build_root())
|
||||
makedata.set('SOURCE_ROOT', meson.project_source_root())
|
||||
makedata.set('VERSION', pipewire_version)
|
||||
if version_arr.length() == 4
|
||||
makedata.set('TAG', 'HEAD')
|
||||
else
|
||||
|
|
@ -498,7 +498,7 @@ endif
|
|||
setenv = find_program('pw-uninstalled.sh')
|
||||
run_target('pw-uninstalled',
|
||||
command : [setenv,
|
||||
'-b@0@'.format(meson.build_root()),
|
||||
'-b@0@'.format(meson.project_build_root()),
|
||||
'-v@0@'.format(pipewire_version)]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue