From 3c94f4c2b5bd79705e67950cd944d119dac97436 Mon Sep 17 00:00:00 2001 From: Sri Sham Haran Date: Tue, 6 Sep 2022 11:37:24 +0800 Subject: [PATCH] Made Dependencies batch file nice --- Dependencies.bat | 79 ++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/Dependencies.bat b/Dependencies.bat index 7e9446ec..bbce926b 100644 --- a/Dependencies.bat +++ b/Dependencies.bat @@ -1,38 +1,113 @@ +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---------------------------- rmdir "Dependencies/VMA" /S /Q git clone https://github.com/SHADE-DP/VulkanMemoryAllocator.git "Dependencies/VMA" +if %_e%==2 (goto :done) else (goto :MSDF) +:MSDF +echo -----------------------MSDF---------------------------- rmdir "Dependencies/msdf" /S /Q git clone --recurse-submodules https://github.com/SHADE-DP/msdf-atlas-gen.git "Dependencies/msdf" +if %_e%==3 (goto :done) else (goto :assimp) +:assimp +echo -----------------------assimp---------------------------- rmdir "Dependencies/assimp" /S /Q git clone https://github.com/SHADE-DP/assimp.git "Dependencies/assimp" +if %_e%==4 (goto :done) else (goto :ktx) +:ktx rmdir "Dependencies/ktx" /S /Q +echo -----------------------ktx---------------------------- git clone https://github.com/SHADE-DP/ktx.git "Dependencies/ktx" +if %_e%==5 (goto :done) else (goto :spdlog) +:spdlog +echo -----------------------spdlog---------------------------- rmdir "Dependencies/spdlog" /S /Q git clone https://github.com/SHADE-DP/spdlog.git "Dependencies/spdlog" +if %_e%==6 (goto :done) else (goto :reactphysics3d) +:reactphysics3d +echo -----------------------reactphysics3d---------------------------- rmdir "Dependencies/reactphysics3d" /S /Q git clone https://github.com/SHADE-DP/reactphysics3d.git "Dependencies/reactphysics3d" +if %_e%==7 (goto :done) else (goto :imgui) +:imgui +echo -----------------------imgui---------------------------- rmdir "Dependencies/imgui" /S /Q git clone https://github.com/SHADE-DP/imgui.git "Dependencies/imgui" +if %_e%==8 (goto :done) else (goto :imguizmo) +:imguizmo +echo -----------------------imguizmo---------------------------- rmdir "Dependencies/imguizmo" /S /Q git clone https://github.com/SHADE-DP/ImGuizmo.git "Dependencies/imguizmo" +if %_e%==9 (goto :done) else (goto :imnodes) +:imnodes +echo -----------------------imnodes---------------------------- rmdir "Dependencies/imnodes" /S /Q git clone https://github.com/SHADE-DP/imnodes.git "Dependencies/imnodes" +if %_e%==10 (goto :done) else (goto :tracy) +:tracy +echo -----------------------tracy---------------------------- rmdir "Dependencies/tracy" /S /Q git clone https://github.com/SHADE-DP/tracy.git "Dependencies/tracy" +if %_e%==11 (goto :done) else (goto :RTTR) +:RTTR +echo -----------------------RTTR---------------------------- rmdir "Dependencies/RTTR" /S /Q git clone https://github.com/SHADE-DP/RTTR.git "Dependencies/RTTR" +if %_e%==12 (goto :done) else (goto :yamlcpp) +:yamlcpp +echo -----------------------yamlcpp---------------------------- rmdir "Dependencies/yamlcpp" /S /Q git clone https://github.com/SHADE-DP/yaml-cpp.git "Dependencies/yamlcpp" -rmdir "Dependencies/spdlog" /S /Q -git clone https://github.com/SHADE-DP/spdlog.git "Dependencies/spdlog" \ No newline at end of file +:done +echo DONE! +pause \ No newline at end of file