Skip to content

Commit

Permalink
update build-Plugins.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
hzqst committed Feb 22, 2024
1 parent aa72731 commit a186ab1
Showing 1 changed file with 49 additions and 19 deletions.
68 changes: 49 additions & 19 deletions scripts/build-Plugins.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,58 @@ if exist "%InstallDir%\Common7\Tools\vsdevcmd.bat" (

"%InstallDir%\Common7\Tools\vsdevcmd.bat"

MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release_AVX2" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release_AVX2" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\VGUI2Extension" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\CaptionMod" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\CommunicationDemo" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\DontFlushSoundCache" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\PrecacheManager" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\SCModelDownloader" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\SteamScreenshots" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\StudioEvents" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\ThreadGuard" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\ResourceReplacer" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
MSBuild.exe MetaHook.sln "/target:Plugins\SCCameraFix" /p:Configuration="Release" /p:Platform="Win32" || goto builderror
goto endbuild
MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

:builderror
echo Build failed
exit /b -1
MSBuild.exe MetaHook.sln "/target:Plugins\Renderer" /p:Configuration="Release_AVX2" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\BulletPhysics" /p:Configuration="Release_AVX2" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\VGUI2Extension" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\CaptionMod" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\CommunicationDemo" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\DontFlushSoundCache" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\PrecacheManager" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\SCModelDownloader" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\SteamScreenshots" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\StudioEvents" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\ThreadGuard" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\ResourceReplacer" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

MSBuild.exe MetaHook.sln "/target:Plugins\SCCameraFix" /p:Configuration="Release" /p:Platform="Win32"
IF %ERRORLEVEL% NEQ 0 GOTO builderror

goto endbuild

)

:builderror
echo Build failed
exit /b -1

:endbuild
echo Build OK

0 comments on commit a186ab1

Please sign in to comment.