SHADE_Y3/Dependencies.bat

113 lines
3.6 KiB
Batchfile
Raw 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"
echo "C - msdf"
echo "D - assimp"
echo "E - ktx"
echo "F - spdlog"
echo "G - reactphysics3d"
echo "H - imgui"
echo "I - imguizmo"
echo "J - imnodes"
echo "K - tracy"
echo "L - RTTR"
echo "M - yamlcpp"
echo ---------------------------------------------------
echo.
choice /C ABCDEFGHIJKLM /T 10 /D A
set _e=%ERRORLEVEL%
if %_e%==1 goto VMA
if %_e%==2 goto VMA
if %_e%==3 goto MSDF
if %_e%==4 goto assimp
if %_e%==5 goto ktx
if %_e%==6 goto spdlog
if %_e%==7 goto reactphysics3d
if %_e%==8 goto imgui
if %_e%==9 goto imguizmo
if %_e%==10 goto imnodes
if %_e%==11 goto tracy
if %_e%==12 goto RTTR
if %_e%==13 goto yamlcpp
: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-09-06 11:37:24 +08:00
if %_e%==2 (goto :done) else (goto :MSDF)
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:MSDF
echo -----------------------MSDF----------------------------
2022-09-06 10:39:12 +08:00
rmdir "Dependencies/msdf" /S /Q
git clone --recurse-submodules https://github.com/SHADE-DP/msdf-atlas-gen.git "Dependencies/msdf"
2022-09-06 11:37:24 +08:00
if %_e%==3 (goto :done) else (goto :assimp)
2022-09-06 10:39:12 +08:00
2022-09-06 11:37:24 +08:00
:assimp
echo -----------------------assimp----------------------------
2022-09-06 10:39:12 +08:00
rmdir "Dependencies/assimp" /S /Q
git clone https://github.com/SHADE-DP/assimp.git "Dependencies/assimp"
2022-09-06 11:37:24 +08:00
if %_e%==4 (goto :done) else (goto :ktx)
2022-09-06 10:39:12 +08:00
2022-09-06 11:37:24 +08:00
:ktx
2022-09-06 10:39:12 +08:00
rmdir "Dependencies/ktx" /S /Q
2022-09-06 11:37:24 +08:00
echo -----------------------ktx----------------------------
2022-09-06 10:39:12 +08:00
git clone https://github.com/SHADE-DP/ktx.git "Dependencies/ktx"
2022-09-06 11:37:24 +08:00
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-06 11:37:24 +08:00
if %_e%==6 (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-06 11:37:24 +08:00
if %_e%==7 (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-06 11:37:24 +08:00
if %_e%==8 (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-06 11:37:24 +08:00
if %_e%==9 (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-06 11:37:24 +08:00
if %_e%==10 (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-06 11:37:24 +08:00
if %_e%==11 (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-06 11:37:24 +08:00
if %_e%==12 (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-06 11:37:24 +08:00
:done
echo DONE!
pause