anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / development / libraries / pipewire / 0070-installed-tests-path.patch
blobb2bcb421befb1aba08a3bbcf53e4779c1c147972
1 diff --git a/meson.build b/meson.build
2 index 2107c19ec..20ccdfd9f 100644
3 --- a/meson.build
4 +++ b/meson.build
5 @@ -380,8 +380,8 @@ lilv_lib = dependency('lilv-0', required: get_option('lv2'))
6 summary({'lilv (for lv2 plugins)': lilv_lib.found()}, bool_yn: true)
7 cdata.set('HAVE_LILV', lilv_lib.found())
9 -installed_tests_metadir = pipewire_datadir / 'installed-tests' / pipewire_name
10 -installed_tests_execdir = pipewire_libexecdir / 'installed-tests' / pipewire_name
11 +installed_tests_metadir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / pipewire_name
12 +installed_tests_execdir = get_option('installed_test_prefix') / 'libexec' / 'installed-tests' / pipewire_name
13 installed_tests_enabled = get_option('installed_tests').allowed()
14 installed_tests_template = files('template.test.in')
16 diff --git a/meson_options.txt b/meson_options.txt
17 index 961ae2a76..a36e9e45f 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -22,6 +22,9 @@ option('installed_tests',
21 description: 'Install manual and automated test executables',
22 type: 'feature',
23 value: 'disabled')
24 +option('installed_test_prefix',
25 + description: 'Prefix for installed tests',
26 + type: 'string')
27 option('gstreamer',
28 description: 'Build GStreamer plugins',
29 type: 'feature',