mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-06-13 13:57:39 +02:00
Install full mingw, not just headers
This commit is contained in:
@ -16,7 +16,7 @@ ffbuild_dockerlayer() {
|
|||||||
|
|
||||||
ffbuild_dockerfinal() {
|
ffbuild_dockerfinal() {
|
||||||
[[ $TARGET == winarm* ]] && return 0
|
[[ $TARGET == winarm* ]] && return 0
|
||||||
to_df "COPY --from=${PREVLAYER} /opt/mingw/. /"
|
to_df "COPY --link --from=${PREVLAYER} /opt/mingw/. /"
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_dockerdl() {
|
ffbuild_dockerdl() {
|
||||||
@ -26,42 +26,75 @@ ffbuild_dockerdl() {
|
|||||||
ffbuild_dockerbuild() {
|
ffbuild_dockerbuild() {
|
||||||
[[ $TARGET == winarm* ]] && return 0
|
[[ $TARGET == winarm* ]] && return 0
|
||||||
|
|
||||||
cd mingw-w64-headers
|
|
||||||
|
|
||||||
unset CFLAGS
|
|
||||||
unset CXXFLAGS
|
|
||||||
unset LDFLAGS
|
|
||||||
unset PKG_CONFIG_LIBDIR
|
|
||||||
|
|
||||||
if [[ -z "$COMPILER_SYSROOT" ]]; then
|
if [[ -z "$COMPILER_SYSROOT" ]]; then
|
||||||
COMPILER_SYSROOT="$(${CC} -print-sysroot)/usr/${FFBUILD_TOOLCHAIN}"
|
COMPILER_SYSROOT="$(${CC} -print-sysroot)/usr/${FFBUILD_TOOLCHAIN}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local myconf=(
|
unset CC CXX LD AR CPP LIBS CCAS
|
||||||
--prefix="$COMPILER_SYSROOT"
|
unset CFLAGS CXXFLAGS LDFLAGS CPPFLAGS CCASFLAGS
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
unset PKG_CONFIG_LIBDIR
|
||||||
--with-default-win32-winnt="0x601"
|
|
||||||
--with-default-msvcrt=ucrt
|
###
|
||||||
--enable-idl
|
### mingw-w64-headers
|
||||||
|
###
|
||||||
|
(
|
||||||
|
cd mingw-w64-headers
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$COMPILER_SYSROOT"
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
--with-default-win32-winnt="0x601"
|
||||||
|
--with-default-msvcrt=ucrt
|
||||||
|
--enable-idl
|
||||||
|
--enable-sdk=all
|
||||||
|
--enable-secure-api
|
||||||
|
)
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR="/opt/mingw"
|
||||||
)
|
)
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
cp -a /opt/mingw/. /
|
||||||
make -j$(nproc)
|
|
||||||
make install DESTDIR="/opt/mingw"
|
|
||||||
|
|
||||||
cd ../mingw-w64-libraries/winpthreads
|
###
|
||||||
|
### mingw-w64-crt
|
||||||
|
###
|
||||||
|
(
|
||||||
|
cd mingw-w64-crt
|
||||||
|
|
||||||
local myconf=(
|
local myconf=(
|
||||||
--prefix="$COMPILER_SYSROOT"
|
--prefix="$COMPILER_SYSROOT"
|
||||||
--host="$FFBUILD_TOOLCHAIN"
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
--with-pic
|
--with-default-msvcrt=ucrt
|
||||||
--disable-shared
|
--enable-wildcard
|
||||||
--enable-static
|
)
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR="/opt/mingw"
|
||||||
)
|
)
|
||||||
|
|
||||||
./configure "${myconf[@]}"
|
cp -a /opt/mingw/. /
|
||||||
make -j$(nproc)
|
|
||||||
make install DESTDIR="/opt/mingw"
|
###
|
||||||
|
### mingw-w64-libraries/winpthreads
|
||||||
|
###
|
||||||
|
(
|
||||||
|
cd mingw-w64-libraries/winpthreads
|
||||||
|
|
||||||
|
local myconf=(
|
||||||
|
--prefix="$COMPILER_SYSROOT"
|
||||||
|
--host="$FFBUILD_TOOLCHAIN"
|
||||||
|
--with-pic
|
||||||
|
--disable-shared
|
||||||
|
--enable-static
|
||||||
|
)
|
||||||
|
|
||||||
|
./configure "${myconf[@]}"
|
||||||
|
make -j$(nproc)
|
||||||
|
make install DESTDIR="/opt/mingw"
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
ffbuild_configure() {
|
ffbuild_configure() {
|
||||||
|
Reference in New Issue
Block a user