meson.build: make spa-json-dump available for subprojects

Add override that provides host binary for subprojects to use.

Also fix cross-compilation to use the host binary.
This commit is contained in:
Pauli Virtanen 2025-07-23 13:59:05 +03:00 committed by Wim Taymans
parent 0b0912cc5b
commit 5fa137cc0d
2 changed files with 15 additions and 2 deletions

View file

@ -18,6 +18,13 @@ spa_dep = declare_dependency(
},
)
spa_inc_dep = declare_dependency(
include_directories : [
include_directories('include'),
include_directories('include-private'),
],
)
meson.override_dependency('lib@0@'.format(spa_name), spa_dep)
pkgconfig.generate(filebase : 'lib@0@'.format(spa_name),