build/windows: Fix prefixes priority in libraries bundling

(cherry picked from commit 013f9c7f0c)
This commit is contained in:
Bruno Lopes 2025-09-06 19:46:50 -03:00 committed by Jehan
parent 38eec6a0a6
commit 6f9ad5adef

View file

@ -198,12 +198,12 @@ done_dll.unlink(missing_ok=True)
### Deps (DLLs) of the binaries in 'bin' and 'lib' dirs
for dir in ["bin", "lib"]:
search_dir = GIMP_DISTRIB / dir
print(f"Searching for dependencies of {search_dir} in {MSYSTEM_PREFIX} and {GIMP_PREFIX}")
print(f"Searching for dependencies of {search_dir} in {GIMP_PREFIX} and {MSYSTEM_PREFIX}")
for ext in ("*.dll", "*.exe"):
for dep in search_dir.rglob(ext):
subprocess.run([
sys.executable, f"{GIMP_SOURCE}/build/windows/2_bundle-gimp-uni_dep.py",
str(dep), f"{MSYSTEM_PREFIX}/", f"{GIMP_PREFIX}/",
str(dep), f"{GIMP_PREFIX}/", f"{MSYSTEM_PREFIX}/",
str(GIMP_DISTRIB), "--output-dll-list", done_dll.as_posix()
], check=True)