Skip to content

Commit

Permalink
Haiku pkgconfig directory layout support
Browse files Browse the repository at this point in the history
  • Loading branch information
X547 committed Jan 19, 2023
1 parent e03965d commit 2289f23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesonbuild/modules/pkgconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,9 @@ def parse_variable_list(vardict: T.Dict[str, str]) -> T.List[T.Tuple[str, str]]:
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')
if mesonlib.is_haiku():
pkgroot = os.path.join(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')
Expand Down

0 comments on commit 2289f23

Please sign in to comment.