Files
jami-daemon/contrib/src/x264/fetch_and_patch.bat
Andreas Traczyk b106642f5d build: alterations for win32/uwp msc compliance
Change-Id: I02061e1319499e694817000e6184d1735c67261f
2018-07-30 18:15:14 -04:00

24 lines
596 B
Batchfile

set BUILD=%SRC%..\build
set X264_VERSION=5fee86cae91cd7b726db7408a3ed1c4da71fb78c
set X264_URL=https://github.com/ShiftMediaProject/x264/archive/%X264_VERSION%.tar.gz
mkdir %BUILD%
if %USE_CACHE%==1 (
copy %CACHE_DIR%\%X264_VERSION%.tar.gz %cd%
) else (
%WGET_CMD% %X264_URL%
)
7z -y x %X264_VERSION%.tar.gz && 7z -y x %X264_VERSION%.tar -o%BUILD%
del %X264_VERSION%.tar && del %X264_VERSION%.tar.gz && del %BUILD%\pax_global_header
rename %BUILD%\x264-%X264_VERSION% x264
cd %BUILD%\x264
if "%1"=="uwp" (
%APPLY_CMD% %SRC%\x264\x264-uwp.patch
)
cd %SRC%