diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-04-29 11:24:24 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-04-29 11:24:24 +0200 |
commit | 293386c21af58f676d6bf53036703fd929f9b60a (patch) | |
tree | f94eb02c0948cbafb2fc6bfc54f96fee87a3762e /pipewire-jack | |
parent | 83b30dcd3d8ab4177eccc60ab6445fbc08f456ef (diff) |
install replacement libraries in modules directory
Don't use a special name for the replacement libraries but install
them into the modules directory by default. Add an option to install
them into another location.
This way, we don't need to set up symlinks in development, distros can
choose to install them where they want and/or we can use symlinks or
LD_LIBRARY path to select the replacement versions.
Diffstat (limited to 'pipewire-jack')
-rw-r--r-- | pipewire-jack/src/meson.build | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pipewire-jack/src/meson.build b/pipewire-jack/src/meson.build index 68821a1b..a8c62c27 100644 --- a/pipewire-jack/src/meson.build +++ b/pipewire-jack/src/meson.build @@ -13,13 +13,20 @@ pipewire_jack_c_args = [ #optional dependencies jack_dep = dependency('jack', version : '>= 1.9.10', required : false) -pipewire_jack = shared_library('jack-pw', +libjack_path = get_option('libjack-path') +if libjack_path == '' + libjack_path = join_paths(modules_install_dir, 'jack') +endif + +pipewire_jack = shared_library('jack', pipewire_jack_sources, - soversion : pipewire_version, + soversion : soversion, + version : libversion, c_args : pipewire_jack_c_args, include_directories : [configinc], dependencies : [pipewire_dep, jack_dep, mathlib], install : true, + install_dir : libjack_path, ) if sdl_dep.found() |