mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 15:52:25 +00:00
bd4ec8e4e1
Build ffmpeg-mpv, shaderc and crossc from source, since they are not packaged in MSYS2. Also, add some more explicit --enable flags to the mpv build to make sure things like D3D11, D3D11VA hwaccels and Vulkan are auto-detected.
28 lines
579 B
Bash
Executable File
28 lines
579 B
Bash
Executable File
#!/usr/bin/bash
|
|
set -e
|
|
|
|
export DEST_OS=win32
|
|
export CC=gcc
|
|
export PKG_CONFIG=/usr/bin/pkg-config
|
|
export PERL=/usr/bin/perl
|
|
export PYTHON=/usr/bin/python3
|
|
|
|
"$PYTHON" bootstrap.py
|
|
"$PYTHON" waf configure \
|
|
--check-c-compiler=gcc \
|
|
--disable-egl-angle-lib \
|
|
--enable-crossc \
|
|
--enable-d3d-hwaccel \
|
|
--enable-d3d11 \
|
|
--enable-egl-angle \
|
|
--enable-jpeg \
|
|
--enable-lcms2 \
|
|
--enable-libarchive \
|
|
--enable-libass \
|
|
--enable-lua \
|
|
--enable-rubberband \
|
|
--enable-shaderc \
|
|
--enable-uchardet \
|
|
--enable-vulkan
|
|
"$PYTHON" waf build
|