Polished Windows build system

This commit is contained in:
mathusummut
2018-06-23 01:16:30 +02:00
parent 0e225b0009
commit 7bbfa3843a
4 changed files with 58 additions and 108 deletions

View File

@@ -5,10 +5,10 @@ SET /P AREYOUSURE=Are you sure you want to do this? (y/[n])
IF /I "%AREYOUSURE%" NEQ "y" GOTO END
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
IF EXIST .\dependencies\src (
cd .\dependencies\src
CALL :DELETE
cd ..\..\
IF EXIST .\dependencies (
cd .\dependencies
CALL .\clean-deps.bat
cd ..\
)
IF EXIST .\vs2015-32 (
@@ -70,6 +70,8 @@ del /S *.lastbuildstate
del /S *.exp
del /S *.ipch
del /S *.pch
del /S *.res
del /S *.user
EXIT /B
:END

View File

@@ -64,6 +64,8 @@ del /S *.lastbuildstate
del /S *.exp
del /S *.ipch
del /S *.pch
del /S *.res
del /S *.user
EXIT /B
:END

View File

@@ -0,0 +1,47 @@
@echo off
setlocal EnableDelayedExpansion
echo Deleting build files...
echo.
cd .\src
SET "MYPATH=."
for /d %%a in ("%mypath%\*") do (
echo.
set branch=master
cd %%~nxa
CALL :DELETE
if "%%~nxa" NEQ "jpeg" (del /S *.obj)
cd ..
)
ROBOCOPY . . /S /MOVE
ROBOCOPY . . /S /MOVE
ROBOCOPY . . /S /MOVE
GOTO END
:DELETE
del /S *.lib
del /S *.exe
del /S *.dll
del /S *.db
del /S *.iobj
del /S *.opendb
del /S *.pdb
del /S *.ipdb
del /S *.map
del /S *.ncb
del /S *.bsc
del /S *.log
del /S *.tlog
del /S *.cache
del /S *.lastbuildstate
del /S *.exp
del /S *.ipch
del /S *.pch
del /S *.res
del /S *.user
EXIT /B
:END
endlocal

View File

@@ -5,112 +5,11 @@ SET /P AREYOUSURE=Are you sure you want to do this? ([y]/n)
IF /I "%AREYOUSURE%"=="n" GOTO END
IF /I "%AREYOUSURE%"=="N" GOTO END
cd dependencies\src
echo Updating curl...
cd curl
git pull
cd ..
Echo.
echo Updating freetype...
cd freetype
git pull
cd ..
Echo.
echo Updating fribidi...
cd fribidi
git pull
cd ..
Echo.
echo Updating ftgl...
cd ftgl
git pull
cd ..
Echo.
echo Updating glew...
cd glew
git pull
cd ..
Echo.
echo Updating glut...
cd glut
git pull
cd ..
Echo.
echo Updating irc...
cd irc
git pull
cd ..
Echo.
echo Updating jpeg...
cd jpeg
git pull
cd ..
Echo.
echo Updating lua...
cd lua
git pull
cd ..
Echo.
echo Updating ogg...
cd ogg
git pull
cd ..
Echo.
echo Updating openal...
cd openal
git pull
cd ..
Echo.
echo Updating png...
cd png
git pull
cd ..
Echo.
echo Updating sdl2...
cd sdl2
git pull
cd ..
Echo.
echo Updating vorbis...
cd vorbis
git pull
cd ..
Echo.
echo Updating wxwidgets...
cd wxwidgets
git pull
cd ..
Echo.
echo Updating xerces...
cd xerces
git pull
cd ..
Echo.
echo Updating zlib...
cd zlib
git pull
cd ..
Echo.
cd dependencies
call .\update-all.bat
echo Updating zetaglest-code...
cd ..\..
cd ..
cd ..\..
git pull
Echo.