代码拉取完成,页面将自动刷新
@setlocal
@echo off
rem Set the code page to reduce the compilation warnings
chcp 65001
rem Export full current PATH from environment into MSYS2
set MSYS2_PATH_TYPE=inherit
rem Set the MSYS2 bash path
set MSYS2_BIN="E:\Tools\msys64\usr\bin\bash.exe"
rem Set the Windows SDK version
set WindowsSDKversion=10.0.17134.0
set VSInstallerFolder="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer"
if %PROCESSOR_ARCHITECTURE%==x86 set VSInstallerFolder="%ProgramFiles%\Microsoft Visual Studio\Installer"
pushd %VSInstallerFolder%
for /f "usebackq tokens=*" %%i in (`vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do (
set VS2017InstallDir=%%i
)
popd
rd /s /q "%~dp0Output/FFmpeg"
rd /s /q "%~dp0Output/FFmpeg_Temp"
rd /s /q "%~dp0FFmpegUniversal/FFmpeg"
rd /s /q "%~dp0FFmpegUniversalSDK/ARM"
rd /s /q "%~dp0FFmpegUniversalSDK/Win32"
rd /s /q "%~dp0FFmpegUniversalSDK/x64"
rd /s /q "%~dp0FFmpegUniversalSDK/libavcodec"
rd /s /q "%~dp0FFmpegUniversalSDK/libavdevice"
rd /s /q "%~dp0FFmpegUniversalSDK/libavfilter"
rd /s /q "%~dp0FFmpegUniversalSDK/libavformat"
rd /s /q "%~dp0FFmpegUniversalSDK/libavutil"
rd /s /q "%~dp0FFmpegUniversalSDK/libswresample"
rd /s /q "%~dp0FFmpegUniversalSDK/libswscale"
echo Building FFmpeg for Windows 10 apps x86...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86 uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static Win32
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared Win32
call "%~dp0FFmpegCopy.bat" Win32
endlocal
echo Building FFmpeg for Windows 10 apps x64...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static x64
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared x64
call "%~dp0FFmpegCopy.bat" x64
endlocal
echo Building FFmpeg for Windows 10 apps ARM...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86_arm uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static ARM
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared ARM
call "%~dp0FFmpegCopy.bat" ARM
endlocal
echo Building FFmpeg for Windows 10 apps ARM64...
echo:
setlocal
call "%VS2017InstallDir%\VC\Auxiliary\Build\vcvarsall.bat" x86_arm64 uwp %WindowsSDKversion%
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Static ARM64
%MSYS2_BIN% --login -x %~dp0FFmpegConfig.sh Shared ARM64
call "%~dp0FFmpegCopy.bat" ARM64
endlocal
:Cleanup
@endlocal
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。