summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaxice8 <thinkabit.ukim@gmail.com>2018-11-22 18:07:53 -0200
committerWim Taymans <wim.taymans@gmail.com>2018-11-26 12:22:24 +0000
commit5dcaa450fff24c36102ed20b791403da012a25fb (patch)
tree3f2e1199a98d0f55c77240481972c4861f277e09 /src
parent57ba8108f12a1acd894ab5664c7230b85015356b (diff)
meson: don't add systemd_dep to dependencies if systemd option is false.
Diffstat (limited to 'src')
-rw-r--r--src/modules/meson.build8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/modules/meson.build b/src/modules/meson.build
index 4dcb6e59..619ca2ec 100644
--- a/src/modules/meson.build
+++ b/src/modules/meson.build
@@ -71,6 +71,12 @@ pipewire_module_link_factory = shared_library('pipewire-module-link-factory',
# dependencies : [glib_dep, gio_dep, mathlib, dl_lib, pipewire_dep],
#)
+pipewire_module_protocol_native_deps = [mathlib, dl_lib, pipewire_dep]
+
+if get_option('systemd')
+ pipewire_module_protocol_native_deps += systemd_dep
+endif
+
pipewire_module_protocol_native = shared_library('pipewire-module-protocol-native',
[ 'module-protocol-native.c',
'module-protocol-native/local-socket.c',
@@ -81,7 +87,7 @@ pipewire_module_protocol_native = shared_library('pipewire-module-protocol-nativ
include_directories : [configinc, spa_inc],
install : true,
install_dir : modules_install_dir,
- dependencies : [mathlib, dl_lib, pipewire_dep, systemd_dep],
+ dependencies : pipewire_module_protocol_native_deps,
)
pipewire_module_audio_dsp = shared_library('pipewire-module-audio-dsp',