mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
21 lines
1.4 KiB
Diff
21 lines
1.4 KiB
Diff
--- a/mesonbuild/modules/pkgconfig.py
|
|
+++ b/mesonbuild/modules/pkgconfig.py
|
|
@@ -702,15 +702,8 @@ class PkgConfigModule(ExtensionModule):
|
|
pcfile = filebase + '.pc'
|
|
pkgroot = pkgroot_name = kwargs['install_dir'] or default_install_dir
|
|
if pkgroot is None:
|
|
- 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')
|
|
+ pkgroot = os.path.join(state.environment.coredata.get_option(mesonlib.OptionKey('libdir')), 'pkgconfig')
|
|
+ pkgroot_name = os.path.join('{libdir}', 'pkgconfig')
|
|
relocatable = state.get_option('relocatable', module='pkgconfig')
|
|
self._generate_pkgconfig_file(state, deps, subdirs, name, description, url,
|
|
version, pcfile, conflicts, variables,
|