2021-03-04 22:41:02 +00:00
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
2021-03-14 23:38:20 +00:00
|
|
|
index e2a1e028..310029f2 100644
|
2021-03-04 22:41:02 +00:00
|
|
|
--- a/meson_options.txt
|
|
|
|
+++ b/meson_options.txt
|
|
|
|
@@ -10,6 +10,9 @@ option('media-session',
|
|
|
|
description: 'Build and install pipewire-media-session',
|
2021-03-14 23:38:20 +00:00
|
|
|
type: 'feature',
|
|
|
|
value: 'auto')
|
2021-03-04 22:41:02 +00:00
|
|
|
+option('media-session-prefix',
|
|
|
|
+ description: 'Install directory for pipewire-media-session and its support files',
|
|
|
|
+ type: 'string')
|
|
|
|
option('man',
|
|
|
|
description: 'Build manpages',
|
2021-03-14 23:38:20 +00:00
|
|
|
type: 'feature',
|
2021-03-04 22:41:02 +00:00
|
|
|
diff --git a/src/daemon/systemd/user/meson.build b/src/daemon/systemd/user/meson.build
|
2021-03-14 23:38:20 +00:00
|
|
|
index 5c4d1af0..7296220f 100644
|
2021-03-04 22:41:02 +00:00
|
|
|
--- a/src/daemon/systemd/user/meson.build
|
|
|
|
+++ b/src/daemon/systemd/user/meson.build
|
|
|
|
@@ -10,7 +10,7 @@ install_data(
|
|
|
|
systemd_config = configuration_data()
|
|
|
|
systemd_config.set('PW_BINARY', join_paths(pipewire_bindir, 'pipewire'))
|
|
|
|
systemd_config.set('PW_PULSE_BINARY', join_paths(get_option('pipewire_pulse_prefix'), 'bin/pipewire-pulse'))
|
|
|
|
-systemd_config.set('PW_MEDIA_SESSION_BINARY', join_paths(pipewire_bindir, 'pipewire-media-session'))
|
|
|
|
+systemd_config.set('PW_MEDIA_SESSION_BINARY', join_paths(get_option('media-session-prefix'), 'bin/pipewire-media-session'))
|
|
|
|
|
|
|
|
configure_file(input : 'pipewire.service.in',
|
|
|
|
output : 'pipewire.service',
|