diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2022-08-01 23:51:43 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2022-08-22 14:15:22 -0400 |
commit | 3e73d4d77d1d36b15d06c8b3c4a7ee6ad77847b6 (patch) | |
tree | 1657528ecf739758e226827e9e8f3eae1d3419c5 /unittests/allplatformstests.py | |
parent | e19e9ce6f196f7c127a2668b5df0ada1d50806df (diff) | |
download | meson-3e73d4d77d1d36b15d06c8b3c4a7ee6ad77847b6.zip meson-3e73d4d77d1d36b15d06c8b3c4a7ee6ad77847b6.tar.gz meson-3e73d4d77d1d36b15d06c8b3c4a7ee6ad77847b6.tar.bz2 |
introspection: untangle install_plan implemetation, fix a bunch of wrong ones
Generally plumb through the values of get_option() passed to
install_dir, and use this to establish the install plan name. Fixes
several odd cases, such as:
- {datadir} being prepended to "share" or "include"
- dissociating custom install directories and writing them out as
{prefix}/share/foo or {prefix}/lib/python3.10/site-packages
This is the second half of #9478
Fixes #10601
Diffstat (limited to 'unittests/allplatformstests.py')
-rw-r--r-- | unittests/allplatformstests.py | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/unittests/allplatformstests.py b/unittests/allplatformstests.py index 3238a39..824d97b 100644 --- a/unittests/allplatformstests.py +++ b/unittests/allplatformstests.py @@ -4145,11 +4145,11 @@ class AllPlatformTests(BasePlatformTests): expected = { 'targets': { f'{self.builddir}/out1-notag.txt': { - 'destination': '{prefix}/share/out1-notag.txt', + 'destination': '{datadir}/out1-notag.txt', 'tag': None, }, f'{self.builddir}/out2-notag.txt': { - 'destination': '{prefix}/share/out2-notag.txt', + 'destination': '{datadir}/out2-notag.txt', 'tag': None, }, f'{self.builddir}/libstatic.a': { @@ -4197,67 +4197,67 @@ class AllPlatformTests(BasePlatformTests): 'tag': 'devel', }, f'{self.builddir}/out1-custom.txt': { - 'destination': '{prefix}/share/out1-custom.txt', + 'destination': '{datadir}/out1-custom.txt', 'tag': 'custom', }, f'{self.builddir}/out2-custom.txt': { - 'destination': '{prefix}/share/out2-custom.txt', + 'destination': '{datadir}/out2-custom.txt', 'tag': 'custom', }, f'{self.builddir}/out3-custom.txt': { - 'destination': '{prefix}/share/out3-custom.txt', + 'destination': '{datadir}/out3-custom.txt', 'tag': 'custom', }, f'{self.builddir}/subdir/out1.txt': { - 'destination': '{prefix}/share/out1.txt', + 'destination': '{datadir}/out1.txt', 'tag': None, }, f'{self.builddir}/subdir/out2.txt': { - 'destination': '{prefix}/share/out2.txt', + 'destination': '{datadir}/out2.txt', 'tag': None, }, f'{self.builddir}/out-devel.h': { - 'destination': '{prefix}/include/out-devel.h', + 'destination': '{includedir}/out-devel.h', 'tag': 'devel', }, f'{self.builddir}/out3-notag.txt': { - 'destination': '{prefix}/share/out3-notag.txt', + 'destination': '{datadir}/out3-notag.txt', 'tag': None, }, }, 'configure': { f'{self.builddir}/foo-notag.h': { - 'destination': '{prefix}/share/foo-notag.h', + 'destination': '{datadir}/foo-notag.h', 'tag': None, }, f'{self.builddir}/foo2-devel.h': { - 'destination': '{prefix}/include/foo2-devel.h', + 'destination': '{includedir}/foo2-devel.h', 'tag': 'devel', }, f'{self.builddir}/foo-custom.h': { - 'destination': '{prefix}/share/foo-custom.h', + 'destination': '{datadir}/foo-custom.h', 'tag': 'custom', }, f'{self.builddir}/subdir/foo2.h': { - 'destination': '{prefix}/share/foo2.h', + 'destination': '{datadir}/foo2.h', 'tag': None, }, }, 'data': { f'{testdir}/bar-notag.txt': { - 'destination': '{datadir}/share/bar-notag.txt', + 'destination': '{datadir}/bar-notag.txt', 'tag': None, }, f'{testdir}/bar-devel.h': { - 'destination': '{datadir}/include/bar-devel.h', + 'destination': '{includedir}/bar-devel.h', 'tag': 'devel', }, f'{testdir}/bar-custom.txt': { - 'destination': '{datadir}/share/bar-custom.txt', + 'destination': '{datadir}/bar-custom.txt', 'tag': 'custom', }, f'{testdir}/subdir/bar2-devel.h': { - 'destination': '{datadir}/include/bar2-devel.h', + 'destination': '{includedir}/bar2-devel.h', 'tag': 'devel', }, }, |