diff options
author | Wim Taymans <wtaymans@redhat.com> | 2018-10-19 13:21:52 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2018-10-19 13:21:52 +0200 |
commit | 693fd3a366ff85fa7928e4ed3813dff1c4f6ce49 (patch) | |
tree | 26d37dd18f070b810d3298f82583f51be4a035f8 /meson.build | |
parent | e59a7c084802942ed2fa02b91358fb243297ac53 (diff) |
meson: only add dependencies when requested
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 00900794..45c50bd3 100644 --- a/meson.build +++ b/meson.build @@ -161,13 +161,9 @@ dl_lib = cc.find_library('dl', required : false) pthread_lib = dependency('threads') dbus_dep = dependency('dbus-1') -#optional dependencies -jack_dep = dependency('jack', version : '>= 1.9.10', required : false) - -pulseaudio_dep = dependency('libpulse', version : '>= 11.1', required : false) +glib_dep = dependency('glib-2.0', version : '>=2.32.0', required : false) if get_option('gstreamer') - glib_dep = dependency('glib-2.0', version : '>=2.32.0') gobject_dep = dependency('gobject-2.0') gmodule_dep = dependency('gmodule-2.0') gio_dep = [dependency('gio-2.0'), dependency('gio-unix-2.0')] @@ -185,11 +181,15 @@ endif subdir('src') if get_option('pipewire-jack') + jack_dep = dependency('jack', version : '>= 1.9.10') subdir('pipewire-jack/src') endif + if get_option('pipewire-pulseaudio') + pulseaudio_dep = dependency('libpulse', version : '>= 11.1') subdir('pipewire-pulseaudio/src') endif + if get_option('pipewire-alsa') subdir('pipewire-alsa/alsa-plugins') endif |