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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.3 KiB
Diff
Raw Normal View History

diff --git a/meson.build b/meson.build
2022-02-17 15:39:31 +00:00
index 2107c19ec..20ccdfd9f 100644
--- a/meson.build
+++ b/meson.build
2022-02-17 15:39:31 +00:00
@@ -380,8 +380,8 @@ lilv_lib = dependency('lilv-0', required: get_option('lv2'))
summary({'lilv (for lv2 plugins)': lilv_lib.found()}, bool_yn: true)
cdata.set('HAVE_LILV', lilv_lib.found())
2021-04-27 07:46:08 +00: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
2022-02-17 15:39:31 +00:00
installed_tests_enabled = get_option('installed_tests').allowed()
installed_tests_template = files('template.test.in')
2021-04-27 07:46:08 +00:00
diff --git a/meson_options.txt b/meson_options.txt
2022-02-17 15:39:31 +00:00
index 961ae2a76..a36e9e45f 100644
--- a/meson_options.txt
+++ b/meson_options.txt
2022-02-17 15:39:31 +00:00
@@ -22,6 +22,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',