diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-18 13:41:56 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-18 13:41:56 +0530 |
commit | ade1f695a6105f2e39299e707b5f2e1120e37f0d (patch) | |
tree | fba5a8f27c5838a1d749dc8b85d1381619015159 /mesonbuild/scripts/gtkdochelper.py | |
parent | ef2c2eeed1f30a4eace485a6a5e401bb60d6fcd9 (diff) | |
download | meson-ade1f695a6105f2e39299e707b5f2e1120e37f0d.zip meson-ade1f695a6105f2e39299e707b5f2e1120e37f0d.tar.gz meson-ade1f695a6105f2e39299e707b5f2e1120e37f0d.tar.bz2 |
Fix detection of pkg-config on all platforms
a) Don't search for pkg-config if we're only cross-compiling
b) Don't unconditionally error out while cross-compiling if the
specified pkg-config is not found and the dependency is optional
c) Use the pkg-config binary that was found in check_pkgconfig for the
actual testing
d) Use shutil.which on the found pkg-config only if it finds it.
Sometimes shutil.which fails to find it, for instance on Windows
with absolute paths.
Diffstat (limited to 'mesonbuild/scripts/gtkdochelper.py')
0 files changed, 0 insertions, 0 deletions