nixpkgs/pkgs/development/libraries/pipewire/0070-installed-tests-path.patch

30 lines
1.3 KiB
Diff
Raw Normal View History

diff --git a/meson.build b/meson.build
2021-04-27 08:46:08 +01:00
index d4a4cda7..a27569bd 100644
--- a/meson.build
+++ b/meson.build
2021-03-14 23:38:20 +00:00
@@ -353,8 +353,8 @@ libinotify_dep = (build_machine.system() == 'freebsd'
2021-04-27 08:46:08 +01:00
2021-03-14 23:38:20 +00:00
alsa_dep = dependency('alsa', version : '>=1.1.7', required: get_option('pipewire-alsa'))
2021-04-27 08:46:08 +01:00
-installed_tests_metadir = pipewire_datadir / 'installed-tests' / pipewire_name
-installed_tests_execdir = pipewire_libexecdir / 'installed-tests' / pipewire_name
+installed_tests_metadir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / pipewire_name
+installed_tests_execdir = get_option('installed_test_prefix') / 'libexec' / 'installed-tests' / pipewire_name
2021-03-14 23:38:20 +00:00
installed_tests_enabled = not get_option('installed_tests').disabled()
installed_tests_template = files('template.test.in')
2021-04-27 08:46:08 +01:00
diff --git a/meson_options.txt b/meson_options.txt
2021-04-27 08:46:08 +01:00
index 1b915ac3..85beb86a 100644
--- a/meson_options.txt
+++ b/meson_options.txt
2021-04-27 08:46:08 +01:00
@@ -29,6 +29,9 @@ option('installed_tests',
description: 'Install manual and automated test executables',
2021-03-14 23:38:20 +00:00
type: 'feature',
value: 'disabled')
+option('installed_test_prefix',
+ description: 'Prefix for installed tests',
+ type: 'string')
option('gstreamer',
description: 'Build GStreamer plugins',
2021-03-14 23:38:20 +00:00
type: 'feature',