linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / glib-networking / installed-tests-path.patch
blob942ca053dd4fd44d2cdf6d82b16313b3088281a7
1 diff --git a/meson.build b/meson.build
2 index 4d91677..aaaeb2b 100644
3 --- a/meson.build
4 +++ b/meson.build
5 @@ -12,8 +12,8 @@
6 libexecdir = join_paths(prefix, get_option('libexecdir'))
7 localedir = join_paths(prefix, get_option('localedir'))
9 -installed_tests_metadir = join_paths(datadir, 'installed-tests', meson.project_name())
10 -installed_tests_execdir = join_paths(libexecdir, 'installed-tests', meson.project_name())
11 +installed_tests_metadir = join_paths(get_option('installed_test_prefix'), 'share', 'installed-tests', meson.project_name())
12 +installed_tests_execdir = join_paths(get_option('installed_test_prefix'), 'libexec', 'installed-tests', meson.project_name())
14 cc = meson.get_compiler('c')
15 host_system = host_machine.system()
16 diff --git a/meson_options.txt b/meson_options.txt
17 index 3a525dd..fc86302 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -3,4 +3,5 @@
21 option('libproxy', type: 'feature', value: 'auto', description: 'support for libproxy proxy configration')
22 option('gnome_proxy', type: 'feature', value: 'auto', description: 'support for GNOME desktop proxy configuration')
23 option('installed_tests', type: 'boolean', value: false, description: 'enable installed tests')
24 +option('installed_test_prefix', type: 'string', value: '', description: 'Prefix for installed tests')
25 option('static_modules', type: 'boolean', value: false, description: 'build static modules')