aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorX512 <danger_mail@list.ru>2022-11-05 07:55:32 +0900
committerNirbheek Chauhan <nirbheek@centricular.com>2023-02-19 02:55:57 +0530
commitb83abd1bed6efc76af13612ad14d94b3fce854ef (patch)
tree7a0b12cc84abda6d3d1d174dbe04c5aee3efb066
parente667a4c74fd9cb7c5d8664733d118fbeb4e69bc1 (diff)
downloadmeson-b83abd1bed6efc76af13612ad14d94b3fce854ef.zip
meson-b83abd1bed6efc76af13612ad14d94b3fce854ef.tar.gz
meson-b83abd1bed6efc76af13612ad14d94b3fce854ef.tar.bz2
Haiku pkgconfig directory layout support
-rw-r--r--mesonbuild/modules/pkgconfig.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py
index d475618..af8467c 100644
--- a/mesonbuild/modules/pkgconfig.py
+++ b/mesonbuild/modules/pkgconfig.py
@@ -699,6 +699,9 @@ class PkgConfigModule(NewExtensionModule):
if mesonlib.is_freebsd():
pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('prefix'))), 'libdata', 'pkgconfig')
pkgroot_name = os.path.join('{prefix}', 'libdata', 'pkgconfig')
+ elif mesonlib.is_haiku():
+ pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('prefix'))), 'develop', 'lib', 'pkgconfig')
+ pkgroot_name = os.path.join('{prefix}', 'develop', 'lib', 'pkgconfig')
else:
pkgroot = os.path.join(_as_str(state.environment.coredata.get_option(mesonlib.OptionKey('libdir'))), 'pkgconfig')
pkgroot_name = os.path.join('{libdir}', 'pkgconfig')