mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
diff --git a/meson.build b/meson.build
|
|
index d4a4cda7..a27569bd 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -353,8 +353,8 @@ libinotify_dep = (build_machine.system() == 'freebsd'
|
|
|
|
alsa_dep = dependency('alsa', version : '>=1.1.7', required: get_option('pipewire-alsa'))
|
|
|
|
-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
|
|
installed_tests_enabled = not get_option('installed_tests').disabled()
|
|
installed_tests_template = files('template.test.in')
|
|
|
|
diff --git a/meson_options.txt b/meson_options.txt
|
|
index 1b915ac3..85beb86a 100644
|
|
--- a/meson_options.txt
|
|
+++ b/meson_options.txt
|
|
@@ -29,6 +29,9 @@ option('installed_tests',
|
|
description: 'Install manual and automated test executables',
|
|
type: 'feature',
|
|
value: 'disabled')
|
|
+option('installed_test_prefix',
|
|
+ description: 'Prefix for installed tests',
|
|
+ type: 'string')
|
|
option('gstreamer',
|
|
description: 'Build GStreamer plugins',
|
|
type: 'feature',
|