代码拉取完成,页面将自动刷新
echo off
:: Check that cmake is configured
where cmake.exe > nul 2>&1
if not %errorlevel% equ 0 (
echo ERROR: CMake was not found. Please install CMake or put cmake.exe in your PATH.
exit /b 1
)
where msbuild.exe > nul 2>&1
if not %errorlevel% equ 0 (
echo ERROR: MSBuild was not found. Please use a visual studio developer console, or put MSBuild.exe in your PATH.
exit /b 1
)
:: Get the version of msbuild
set cmd="msbuild /version | findstr /rxc:"[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*""
for /f "tokens=1* delims=." %%i in ('%cmd%') do set msbuild_version=%%i
if %msbuild_version% lss 12 (
echo ERROR: MSBuild must be at least version 12 ^(Visual Studio 2013^). Found version %msbuild_version%.
exit /b 1
)
set version_string=Visual Studio %msbuild_version% Win64
set START_DIR=%CD%
cd %VULKAN_SDK%
:: Build glslang
cd glslang
md build
cd build
cmake -G "%version_string%" ..
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /verbosity:quiet
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release /verbosity:quiet
cd ..\..
:: Build spirv-tools
cd spirv-tools
md build
cd build
cmake -G "%version_string%" ..
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /verbosity:quiet
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release /verbosity:quiet
cd ..\..
:: Build samples
cd samples
md build
cd build
cmake -G "%version_string%" ..
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Debug /verbosity:quiet
msbuild ALL_BUILD.vcxproj /p:Platform=x64 /p:Configuration=Release /verbosity:quiet
cd %START_DIR%
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。