dotnet: improve language coverage of passthru.tests for dotnet sdks (#370789)
[NixPkgs.git] / pkgs / development / libraries / xdg-desktop-portal / installed-tests-path.patch
blob0a9547ba3628e2d6af4cf4bd5276097defa16773
1 diff --git a/meson.build b/meson.build
2 index b25f9ef..7975f85 100644
3 --- a/meson.build
4 +++ b/meson.build
5 @@ -40,8 +40,8 @@ if dataroot_dir == ''
6 dataroot_dir = datadir
7 endif
9 -installed_tests_dir = prefix / libexecdir / 'installed-tests' / meson.project_name()
10 -installed_tests_data_dir = prefix / datadir / 'installed-tests' / meson.project_name()
11 +installed_tests_dir = get_option('installed_test_prefix') / 'libexec' / 'installed-tests' / meson.project_name()
12 +installed_tests_data_dir = get_option('installed_test_prefix') / 'share' / 'installed-tests' / meson.project_name()
13 docs_dir = datadir / 'doc' / meson.project_name()
15 summary({
16 diff --git a/meson_options.txt b/meson_options.txt
17 index fccada3..ca87600 100644
18 --- a/meson_options.txt
19 +++ b/meson_options.txt
20 @@ -38,6 +38,10 @@ option('installed-tests',
21 type: 'boolean',
22 value: false,
23 description: 'Enable installation of some test cases')
24 +option('installed_test_prefix',
25 + type: 'string',
26 + value: '',
27 + description: 'Prefix for installed tests')
28 option('pytest',
29 type: 'feature',
30 value: 'auto',