Removed shader compiler to external executable #443

Merged
XiaoQiDigipen merged 2 commits from ShaderCompilerMigrate into main 2023-03-25 16:52:02 +08:00
5 changed files with 13 additions and 15 deletions
Showing only changes of commit 47a78de609 - Show all commits

Binary file not shown.

View File

@ -21,10 +21,11 @@ echo "N - dotnet"
echo "O - tinyddsloader"
echo "P - fmod"
echo "Q - vswhere"
echo "R - ShaderCompiler"
echo ---------------------------------------------------
echo.
choice /C ABCDEFGHIJKLMNOPQ
choice /C ABCDEFGHIJKLMNOPQR
set _e=%ERRORLEVEL%
if %_e%==1 goto VMA
@ -44,6 +45,7 @@ if %_e%==14 goto dotnet
if %_e%==15 goto tinyddsloader
if %_e%==16 goto fmod
if %_e%==17 goto vswhere
if %_e%==18 goto ShaderCompiler
:VMA
echo -----------------------VMA----------------------------
@ -163,6 +165,13 @@ 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"
:done
echo DONE!

View File

@ -17,4 +17,5 @@ IncludeDir["VULKAN"] = "$(VULKAN_SDK)"
IncludeDir["dotnet"] = "%{wks.location}\\Dependencies\\dotnet"
IncludeDir["tinyddsloader"] = "%{wks.location}\\Dependencies\\tinyddsloader"
IncludeDir["fmod"] = "%{wks.location}\\Dependencies\\fmod"
IncludeDir["vswhere"] = "%{wks.location}\\Dependencies\\vswhere"
IncludeDir["vswhere"] = "%{wks.location}\\Dependencies\\vswhere"
IncludeDir["ShaderCompiler"] = "%{wks.location}\\Dependencies\\ShaderCompiler"

View File

@ -119,9 +119,6 @@ project "SHADE_Engine"
filter "configurations:Debug"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.ModelCompiler}\\bin\\Debug\\assimp-vc142-mtd.dll\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.ModelCompiler}\\bin\\Debug\\ModelCompiler.exe\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.FontCompiler}\\bin\\Debug\\FontCompiler.exe\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodL.dll\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodstudioL.dll\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.vswhere}\\vswhere.exe\" \"$(OutDir)\""
@ -130,9 +127,6 @@ project "SHADE_Engine"
filter "configurations:Release"
postbuildcommands
{
"xcopy /r /y /q \"%{IncludeDir.ModelCompiler}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.ModelCompiler}\\bin\\Release\\ModelCompiler.exe\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.FontCompiler}\\bin\\Release\\FontCompiler.exe\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmod.dll\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodstudio.dll\" \"$(OutDir)\"",
"xcopy /r /y /q \"%{IncludeDir.vswhere}\\vswhere.exe\" \"$(OutDir)\""
@ -146,12 +140,6 @@ project "SHADE_Engine"
"xcopy /r /y /q \"%{IncludeDir.fmod}\\lib\\fmodstudio.dll\" \"$(OutDir)\""
}
filter "configurations:Publish"
postbuildcommands
{
--"xcopy /r /y /q \"%{IncludeDir.assimp}\\bin\\Release\\assimp-vc142-mt.dll\" \"$(OutDir)\""
}
warnings 'Extra'
filter "configurations:Debug"

View File

@ -27,9 +27,9 @@ workspace "SHADE"
group "Dependencies"
include "Dependencies/FontCompiler/Dependencies/msdf"
include "Dependencies/imgui"
--include "Dependencies/tracy"
include "Dependencies/yamlcpp"
include "Dependencies/reactphysics3d"
include "Dependencies/ModelCompiler"
include "Dependencies/FontCompiler"
include "Dependencies/ShaderCompiler"
group ""