Build the Windows fork in UCRT64, where LuaJIT is still published
This commit is contained in:
1 parent
7d013fef46
commit
95c4626abd
3 files changed
+25
-15
No files matched your search
@@ -2,13 +2,18 @@
|
||||
# Copy the MinGW runtime DLL closure of mpv.exe next to it, so the build runs
|
||||
# without the MSYS2 environment on PATH.
|
||||
#
|
||||
# The MSYS2 environment is taken from MINGW_PREFIX, which the shell sets to
|
||||
# /ucrt64, /mingw64 or /clang64 depending on how it was started, so the script
|
||||
# works whichever of them built mpv.
|
||||
#
|
||||
# Usage: bundle_dlls.sh /path/to/mpv/build
|
||||
set -e
|
||||
export PATH=/mingw64/bin:/usr/bin:$PATH
|
||||
prefix="${MINGW_PREFIX:-/mingw64}"
|
||||
export PATH="$prefix/bin:/usr/bin:$PATH"
|
||||
cd "${1:?usage: bundle_dlls.sh <mpv build dir>}"
|
||||
|
||||
collect() {
|
||||
ldd "$1" 2>/dev/null | awk '{print $3}' | grep '^/mingw64/' || true
|
||||
ldd "$1" 2>/dev/null | awk '{print $3}' | grep "^$prefix/" || true
|
||||
}
|
||||
|
||||
declare -A seen
|
||||
@@ -26,6 +31,6 @@ done
|
||||
|
||||
echo "DLLs to copy: ${#seen[@]}"
|
||||
for name in "${!seen[@]}"; do
|
||||
cp -f "/mingw64/bin/$name" .
|
||||
cp -f "$prefix/bin/$name" .
|
||||
done
|
||||
ls -1 *.dll | wc -l
|
||||
Reference in new issue
Block a user