depot/third_party/nixpkgs/pkgs/development/libraries/geocode-glib/installed-tests-path.patch
Default email c594a97518 Project import generated by Copybara.
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
2022-10-21 20:38:19 +02:00

26 lines
1.1 KiB
Diff

diff --git a/geocode-glib/tests/meson.build b/geocode-glib/tests/meson.build
index 5cd1fca..c2f9a9d 100644
--- a/geocode-glib/tests/meson.build
+++ b/geocode-glib/tests/meson.build
@@ -1,5 +1,5 @@
-install_dir = get_option('prefix') / get_option('datadir') / 'installed-tests' / library_name
-install_bindir = get_option('prefix') / get_option('libexecdir') / library_name
+install_dir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / library_name
+install_bindir = get_option('installed_test_prefix') / 'libexec' / library_name
e = executable('geo-uri',
'geo-uri.c',
diff --git a/meson_options.txt b/meson_options.txt
index 62b713d..1454416 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,6 +1,9 @@
option('enable-installed-tests',
type: 'boolean', value: true,
description: 'Build & install test programs')
+option('installed_test_prefix',
+ type: 'string', value: '',
+ description: 'Prefix for installed tests')
option('enable-introspection',
type: 'boolean', value: true,
description: 'Whether to enable the introspection generation')