Patch DXVA AV1 support into mingw headers

This commit is contained in:
BtbN 2021-05-15 15:33:59 +02:00
parent c75fa3b113
commit 0df2644223
2 changed files with 321 additions and 1 deletions

View file

@ -8,6 +8,10 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerstage() {
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=patches/mingw,dst=/patches run_stage /stage.sh"
}
ffbuild_dockerlayer() {
to_df "COPY --from=${SELFLAYER} /opt/mingw/. /"
to_df "COPY --from=${SELFLAYER} /opt/mingw/. /opt/mingw"
@ -19,7 +23,14 @@ ffbuild_dockerfinal() {
ffbuild_dockerbuild() {
git-mini-clone "$MINGW_REPO" "$MINGW_COMMIT" mingw
cd mingw/mingw-w64-headers
cd mingw
for patch in /patches/*.patch; do
echo "Applying $patch"
git am < "$patch"
done
cd mingw-w64-headers
unset CFLAGS
unset CXXFLAGS