2016-05-12 12:00:30 +00:00
|
|
|
#!/usr/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2019-04-16 10:54:05 +00:00
|
|
|
export PYTHON=/usr/bin/python3
|
|
|
|
|
2016-05-12 12:00:30 +00:00
|
|
|
# Write an empty fonts.conf to speed up fc-cache
|
|
|
|
export FONTCONFIG_FILE=/dummy-fonts.conf
|
|
|
|
cat >"$FONTCONFIG_FILE" <<EOF
|
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
|
|
<fontconfig></fontconfig>
|
|
|
|
EOF
|
|
|
|
|
|
|
|
# Install build dependencies for mpv
|
|
|
|
pacman -S --noconfirm --needed \
|
2017-11-07 11:02:03 +00:00
|
|
|
$MINGW_PACKAGE_PREFIX-toolchain \
|
|
|
|
$MINGW_PACKAGE_PREFIX-cmake \
|
2016-05-12 12:00:30 +00:00
|
|
|
$MINGW_PACKAGE_PREFIX-lcms2 \
|
|
|
|
$MINGW_PACKAGE_PREFIX-libarchive \
|
|
|
|
$MINGW_PACKAGE_PREFIX-libass \
|
|
|
|
$MINGW_PACKAGE_PREFIX-libjpeg-turbo \
|
2019-06-17 10:46:39 +00:00
|
|
|
$MINGW_PACKAGE_PREFIX-libplacebo \
|
2016-05-12 12:00:30 +00:00
|
|
|
$MINGW_PACKAGE_PREFIX-lua51 \
|
2017-11-07 11:02:03 +00:00
|
|
|
$MINGW_PACKAGE_PREFIX-ninja \
|
2016-05-12 12:00:30 +00:00
|
|
|
$MINGW_PACKAGE_PREFIX-rubberband \
|
2017-11-07 11:02:03 +00:00
|
|
|
$MINGW_PACKAGE_PREFIX-uchardet \
|
|
|
|
$MINGW_PACKAGE_PREFIX-vulkan
|
2016-05-12 12:00:30 +00:00
|
|
|
|
|
|
|
# Delete unused packages to reduce space used in the Appveyor cache
|
|
|
|
pacman -Sc --noconfirm
|
2017-11-07 11:02:03 +00:00
|
|
|
|
2017-12-05 08:25:00 +00:00
|
|
|
# Compile ffmpeg
|
2017-11-07 11:02:03 +00:00
|
|
|
(
|
2017-12-09 09:01:54 +00:00
|
|
|
git clone --depth=1 https://github.com/FFmpeg/ffmpeg.git && cd ffmpeg
|
2017-11-07 11:02:03 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
../configure \
|
|
|
|
--prefix=$MINGW_PREFIX \
|
|
|
|
--target-os=mingw32 \
|
|
|
|
--arch=$MSYSTEM_CARCH \
|
|
|
|
--disable-static \
|
|
|
|
--disable-doc \
|
|
|
|
--disable-asm \
|
|
|
|
--enable-gpl \
|
|
|
|
--enable-version3 \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-pic \
|
|
|
|
--enable-d3d11va \
|
|
|
|
--enable-dxva2 \
|
|
|
|
--enable-schannel
|
|
|
|
make -j4 install
|
|
|
|
)
|
|
|
|
|
|
|
|
# Compile shaderc
|
|
|
|
(
|
|
|
|
git clone --depth=1 https://github.com/google/shaderc && cd shaderc
|
2019-04-16 10:54:05 +00:00
|
|
|
"$PYTHON" utils/git-sync-deps
|
2017-11-07 11:02:03 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DSHADERC_SKIP_TESTS=ON \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX ..
|
|
|
|
ninja install
|
|
|
|
)
|
|
|
|
|
2019-04-16 08:18:50 +00:00
|
|
|
# Compile SPIRV-Cross
|
2017-11-07 11:02:03 +00:00
|
|
|
(
|
2019-04-16 08:18:50 +00:00
|
|
|
git clone --depth=1 https://github.com/KhronosGroup/SPIRV-Cross && cd SPIRV-Cross
|
2017-11-07 11:02:03 +00:00
|
|
|
|
2019-04-16 08:18:50 +00:00
|
|
|
mkdir build && cd build
|
|
|
|
cmake -GNinja -DSPIRV_CROSS_SHARED=ON -DCMAKE_INSTALL_PREFIX=$MINGW_PREFIX ..
|
|
|
|
ninja install
|
2017-11-07 11:02:03 +00:00
|
|
|
)
|