mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +00:00
cc38035841
When the D3D11 backend was first written, SPIRV-Cross only had a C++ API and no guarantee of API or ABI stability, so instead of using SPIRV-Cross directly, mpv used an unofficial C wrapper called crossc. Now that KhronosGroup/SPIRV-Cross#611 is resolved, SPIRV-Cross has an official C API that can be used instead, so remove crossc and use SPIRV-Cross directly.
28 lines
584 B
Bash
Executable File
28 lines
584 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-spirv-cross \
|
|
--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
|