mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
meson: declare spa_dep and override_dependency() for spa and pipewire
This allows meson subprojects (or projects using pipewire as a meson
subproject) to be able to use dependency('libpipewire-0.3') and
dependency('libspa-0.2') to find the uninstalled versions of these
libraries directly from the build dir instead of going through pkg-config
This commit is contained in:
parent
19bcdaebe2
commit
7ab5c35cad
3 changed files with 12 additions and 3 deletions
|
|
@ -107,8 +107,8 @@ libpipewire = shared_library(pipewire_name, pipewire_sources,
|
|||
)
|
||||
|
||||
pipewire_dep = declare_dependency(link_with : libpipewire,
|
||||
include_directories : [pipewire_inc, configinc, spa_inc],
|
||||
dependencies : [pthread_lib, atomic_dep, ],
|
||||
include_directories : [pipewire_inc, configinc],
|
||||
dependencies : [pthread_lib, atomic_dep, spa_dep],
|
||||
)
|
||||
|
||||
pkgconfig.generate(libpipewire,
|
||||
|
|
@ -121,4 +121,6 @@ pkgconfig.generate(libpipewire,
|
|||
extra_cflags : '-D_REENTRANT',
|
||||
variables : ['moduledir=${libdir}/@0@'.format(pipewire_name)])
|
||||
|
||||
meson.override_dependency('lib@0@'.format(pipewire_name), pipewire_dep)
|
||||
|
||||
subdir('extensions')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue