aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/scripts/env2mfile.py
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-03-24 15:43:29 -0400
committerXavier Claessens <xclaesse@gmail.com>2023-03-27 17:33:39 -0400
commit03498424d0bacab75f19c335ffdaa4efd8d512ed (patch)
tree5ac35205e4092922d360646df105f29bc5810bb3 /mesonbuild/scripts/env2mfile.py
parent65c22d8c38eba320f34576f917b106cc03e89123 (diff)
downloadmeson-03498424d0bacab75f19c335ffdaa4efd8d512ed.zip
meson-03498424d0bacab75f19c335ffdaa4efd8d512ed.tar.gz
meson-03498424d0bacab75f19c335ffdaa4efd8d512ed.tar.bz2
find dll path on Windows
When running tests on Windows (or for devenv), paths of shared libraries need to be added to the PATH envvar for Windows to be able to find them. Meson is currently using the path of the import lib, which is wrong in many cases. This fix does two things: if there is a variable bindir in the pkg-config file, those variable values are added to the list of path. This is for conan dependencies, if conan decides to export those paths. See https://github.com/conan-io/conan/issues/13532 . The fallback is to replace `lib` by `bin` in the import library path. This heuristic will work most of the time (but the bin directory could have a different name, or the dll itself could have a different name). In all cases, it cannot be worse than current implementation, and it solves many cases.
Diffstat (limited to 'mesonbuild/scripts/env2mfile.py')
0 files changed, 0 insertions, 0 deletions