SHADE_Y3/Dependencies.bat

171 lines
6.2 KiB
Batchfile
Raw Permalink Normal View History

2022-09-06 11:37:24 +08:00
rem If there are any issues with this bat file, contact Sham
@echo off
echo.
echo ---------------------------------------------------
echo "SHADE DEPENDENCIES (Default - All in 10 Seconds)"
echo "A - All"
echo "B - VMA"
2022-11-14 18:36:26 +08:00
echo "C - FontCompiler"
echo "D - ModelCompiler"
2022-09-15 09:26:43 +08:00
echo "E - spdlog"
echo "F - reactphysics3d"
echo "G - imgui"
echo "H - imguizmo"
echo "I - imnodes"
echo "J - tracy"
echo "K - RTTR"
echo "L - yamlcpp"
2022-09-15 12:10:45 +08:00
echo "M - SDL"
echo "N - dotnet"
2022-09-19 18:40:27 +08:00
echo "O - tinyddsloader"
2022-09-28 18:40:45 +08:00
echo "P - fmod"
echo "Q - vswhere"
echo "R - ShaderCompiler"
2022-09-06 11:37:24 +08:00
echo ---------------------------------------------------
echo.
choice /C ABCDEFGHIJKLMNOPQR
2022-09-06 11:37:24 +08:00
set _e=%ERRORLEVEL%
if %_e%==1 goto VMA
if %_e%==2 goto VMA
2022-11-14 18:36:26 +08:00
if %_e%==3 goto FontCompiler
if %_e%==4 goto ModelCompiler
2022-09-15 09:26:43 +08:00
if %_e%==5 goto spdlog
if %_e%==6 goto reactphysics3d
if %_e%==7 goto imgui
if %_e%==8 goto imguizmo
if %_e%==9 goto imnodes
if %_e%==10 goto tracy
if %_e%==11 goto RTTR
if %_e%==12 goto yamlcpp
2022-09-15 12:10:45 +08:00
if %_e%==13 goto SDL
if %_e%==14 goto dotnet
2022-09-19 18:40:27 +08:00
if %_e%==15 goto tinyddsloader
2022-09-28 18:40:45 +08:00
if %_e%==16 goto fmod
if %_e%==17 goto vswhere
if %_e%==18 goto ShaderCompiler
2022-09-06 11:37:24 +08:00
:VMA
echo -----------------------VMA----------------------------
2022-09-05 14:40:04 +08:00
rmdir "Dependencies/VMA" /S /Q
git clone https://github.com/SHADE-DP/VulkanMemoryAllocator.git "Dependencies/VMA"
2022-11-14 18:36:26 +08:00
if %_e%==2 (goto :done) else (goto :FontCompiler)
2022-09-05 14:40:04 +08:00
2022-11-14 18:36:26 +08:00
:FontCompiler
echo -----------------------FontCompiler----------------------------
rmdir "Dependencies/FontCompiler" /S /Q
git clone https://github.com/SHADE-DP/FontCompiler.git "Dependencies/FontCompiler"
git clone --recurse-submodules https://github.com/SHADE-DP/msdf-atlas-gen "Dependencies/FontCompiler/Dependencies/msdf"
if %_e%==3 (goto :done) else (goto :ModelCompiler)
2022-09-06 10:39:12 +08:00
:ModelCompiler
echo -----------------------ModelCompiler----------------------------
rmdir "Dependencies/ModelCompiler" /S /Q
git clone https://github.com/SHADE-DP/ModelCompiler.git "Dependencies/ModelCompiler"
if %_e%==4 (goto :done) else (goto :spdlog)
2022-09-06 10:39:12 +08:00
2022-09-15 09:26:43 +08:00
@REM :ktx
@REM rmdir "Dependencies/ktx" /S /Q
@REM echo -----------------------ktx----------------------------
@REM git clone https://github.com/SHADE-DP/ktx.git "Dependencies/ktx"
@REM if %_e%==5 (goto :done) else (goto :spdlog)
2022-09-06 10:39:12 +08:00
2022-09-06 11:37:24 +08:00
:spdlog
echo -----------------------spdlog----------------------------
2022-09-06 10:39:12 +08:00
rmdir "Dependencies/spdlog" /S /Q
git clone https://github.com/SHADE-DP/spdlog.git "Dependencies/spdlog"
2022-09-15 09:26:43 +08:00
if %_e%==5 (goto :done) else (goto :reactphysics3d)
2022-09-06 10:39:12 +08:00
2022-09-06 11:37:24 +08:00
:reactphysics3d
echo -----------------------reactphysics3d----------------------------
2022-09-06 10:39:12 +08:00
rmdir "Dependencies/reactphysics3d" /S /Q
git clone https://github.com/SHADE-DP/reactphysics3d.git "Dependencies/reactphysics3d"
2022-09-15 09:26:43 +08:00
if %_e%==6 (goto :done) else (goto :imgui)
2022-09-06 10:39:12 +08:00
2022-09-06 11:37:24 +08:00
:imgui
echo -----------------------imgui----------------------------
2022-09-05 14:40:04 +08:00
rmdir "Dependencies/imgui" /S /Q
git clone https://github.com/SHADE-DP/imgui.git "Dependencies/imgui"
2022-09-15 09:26:43 +08:00
if %_e%==7 (goto :done) else (goto :imguizmo)
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:imguizmo
echo -----------------------imguizmo----------------------------
2022-09-05 14:40:04 +08:00
rmdir "Dependencies/imguizmo" /S /Q
git clone https://github.com/SHADE-DP/ImGuizmo.git "Dependencies/imguizmo"
2022-09-15 09:26:43 +08:00
if %_e%==8 (goto :done) else (goto :imnodes)
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:imnodes
echo -----------------------imnodes----------------------------
2022-09-05 14:40:04 +08:00
rmdir "Dependencies/imnodes" /S /Q
git clone https://github.com/SHADE-DP/imnodes.git "Dependencies/imnodes"
2022-09-15 09:26:43 +08:00
if %_e%==9 (goto :done) else (goto :tracy)
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:tracy
echo -----------------------tracy----------------------------
2022-09-05 14:40:04 +08:00
rmdir "Dependencies/tracy" /S /Q
git clone https://github.com/SHADE-DP/tracy.git "Dependencies/tracy"
2022-09-15 09:26:43 +08:00
if %_e%==10 (goto :done) else (goto :RTTR)
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:RTTR
echo -----------------------RTTR----------------------------
2022-09-06 10:39:12 +08:00
rmdir "Dependencies/RTTR" /S /Q
git clone https://github.com/SHADE-DP/RTTR.git "Dependencies/RTTR"
2022-09-15 09:26:43 +08:00
if %_e%==11 (goto :done) else (goto :yamlcpp)
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:yamlcpp
echo -----------------------yamlcpp----------------------------
2022-09-05 14:40:04 +08:00
rmdir "Dependencies/yamlcpp" /S /Q
git clone https://github.com/SHADE-DP/yaml-cpp.git "Dependencies/yamlcpp"
2022-09-15 09:26:43 +08:00
if %_e%==12 (goto :done) else (goto :SDL)
2022-09-14 21:47:39 +08:00
:SDL
echo -----------------------SDL----------------------------
rmdir "Dependencies/SDL" /S /Q
mkdir "Dependencies/SDL/include"
mkdir "Dependencies/SDL/lib"
powershell -Command "& {wget https://github.com/libsdl-org/SDL/releases/download/release-2.24.0/SDL2-devel-2.24.0-VC.zip -OutFile "Dependencies/SDL/SDL.zip"}"
powershell -Command "& {Expand-Archive -LiteralPath Dependencies/SDL/SDL.zip -DestinationPath Dependencies/SDL/tmp}"
robocopy "Dependencies/SDL/tmp/SDL2-2.24.0/lib/x64" "Dependencies/SDL/lib/" /ns /nfl /ndl /nc /njh
robocopy "Dependencies/SDL/tmp/SDL2-2.24.0/include/" "Dependencies/SDL/include/" /ns /nfl /ndl /nc /njh
rmdir "Dependencies/SDL/tmp/" /s /q
powershell -Command "& {Remove-Item "Dependencies/SDL/SDL.zip"}"
2022-09-12 13:26:25 +08:00
if %_e%==13 (goto :done) else (goto :dotnet)
:dotnet
echo -----------------------dotnet----------------------------
rmdir "Dependencies/dotnet" /S /Q
mkdir "Dependencies/dotnet/include"
powershell -Command "& {wget https://raw.githubusercontent.com/dotnet/runtime/main/src/coreclr/hosts/inc/coreclrhost.h -OutFile "Dependencies/dotnet/include/coreclrhost.h"}"
2022-09-19 18:40:27 +08:00
if %_e%==14 (goto :done) else (goto :tinyddsloader)
:tinyddsloader
echo --------------------tinyddsloader-------------------------
rmdir "Dependencies/tinyddsloader" /S /Q
git clone https://github.com/SHADE-DP/tinyddsloader.git "Dependencies/tinyddsloader"
2022-09-28 18:40:45 +08:00
if %_e%==15 (goto :done) else (goto :fmod)
:fmod
echo --------------------fmod-------------------------
rmdir "Dependencies/fmod" /S /Q
git clone https://github.com/SHADE-DP/FMOD.git "Dependencies/fmod"
if %_e%==16 (goto :done) else (goto :vswhere)
:vswhere
echo -----------------------vswhere----------------------------
rmdir "Dependencies/vswhere" /S /Q
mkdir "Dependencies/vswhere"
powershell -Command "& {wget https://github.com/microsoft/vswhere/releases/download/3.1.1/vswhere.exe -OutFile "Dependencies/vswhere/vswhere.exe"}"
if %_e%==17 (goto:done) else (goto:ShaderCompiler)
:ShaderCompiler
echo ------------------ShaderCompiler------------------
rmdir "Dependencies/ShaderCompiler" /S /Q
mkdir "Dependencies/ShaderCompiler"
git clone https://github.com/SHADE-DP/ShaderCompiler.git "Dependencies/ShaderCompiler"
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:done
echo DONE!
pause