SHADE_Y3/Dependencies.bat

129 lines
4.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"
2022-09-12 13:26:25 +08:00
echo "N - dotnet"
2022-09-06 11:37:24 +08:00
echo ---------------------------------------------------
echo.
2022-09-12 13:26:25 +08:00
choice /C ABCDEFGHIJKLMN /T 10 /D A
2022-09-06 11:37:24 +08:00
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
2022-09-12 13:26:25 +08:00
if %_e%==14 goto dotnet
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-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-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"
mkdir "Dependencies/dotnet/bin"
powershell -Command "& {wget https://raw.githubusercontent.com/dotnet/runtime/main/src/coreclr/hosts/inc/coreclrhost.h -OutFile "Dependencies/dotnet/include/coreclrhost.h"}"
powershell -Command "& {wget https://download.visualstudio.microsoft.com/download/pr/8686fa48-b378-424e-908b-afbd66d6e120/2d75d5c3574fb5d917c5a3cd3f624287/dotnet-sdk-6.0.400-win-x64.zip -OutFile "Dependencies/dotnet/dotnet.zip"}"
powershell -Command "& {Expand-Archive -LiteralPath Dependencies/dotnet/dotnet.zip -DestinationPath Dependencies/dotnet/tmp}"
robocopy "Dependencies/dotnet/tmp/shared/Microsoft.NETCore.App/6.0.8/" "Dependencies/dotnet/bin/" *.dll /ns /nfl /ndl /nc /njh
rmdir "Dependencies/dotnet/tmp/" /s /q
del "Dependencies/dotnet/dotnet.zip"
powershell -Command "& {Remove-Item "Dependencies/dotnet/dotnet.zip"}"
2022-09-05 14:40:04 +08:00
2022-09-06 11:37:24 +08:00
:done
echo DONE!
pause