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
|
|
@ -5,7 +5,7 @@ find = find_program('find', required: false)
|
|||
summary({'find (for header testing)': find.found()}, bool_yn: true, section: 'Optional programs')
|
||||
if find.found()
|
||||
spa_headers = run_command(find,
|
||||
meson.source_root() / 'spa' / 'include',
|
||||
meson.project_source_root() / 'spa' / 'include',
|
||||
'-name', '*.h',
|
||||
'-not', '-name', 'type-info.h',
|
||||
'-type', 'f',
|
||||
|
|
@ -40,7 +40,7 @@ foreach a : benchmark_apps
|
|||
install_dir : installed_tests_execdir,
|
||||
),
|
||||
env : [
|
||||
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.build_root()),
|
||||
'SPA_PLUGIN_DIR=@0@/spa/plugins/'.format(meson.project_build_root()),
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue