Finalized Windows build system

This commit is contained in:
mathusummut 2018-03-15 00:48:18 +01:00
parent e46706540c
commit ff9d772d04
2 changed files with 66 additions and 0 deletions

2
.gitignore vendored
View File

@ -89,6 +89,8 @@ $RECYCLE.BIN/
*.exe *.exe
*.msi *.msi
*.pdb *.pdb
/mk/windows/dependencies/openssl
/mk/windows/dependencies/src
# #
/mk/linux/zetaglest /mk/linux/zetaglest
/mk/linux/zetaglest_editor /mk/linux/zetaglest_editor

64
mk/windows/clean-zg.bat Normal file
View File

@ -0,0 +1,64 @@
@echo off
setlocal
echo This will recursively delete all .lib, .exe, .dll, .db, .iobj, .opendb, .pdb, .ipdb, .map, .ncb, .bsc, .cache, .lastbuildstate, .log, .tlog, .exp, .pch and .ipch files in the vs2015 and vs2017 directories.
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 .\vs2015-32 (
cd .\vs2015-32
CALL :DELETE
del /S *.obj
cd ..\
)
IF EXIST .\vs2015-64 (
cd .\vs2015-64
CALL :DELETE
del /S *.obj
cd ..\
)
IF EXIST .\vs2017-32 (
cd .\vs2017-32
CALL :DELETE
del /S *.obj
cd ..\
)
IF EXIST .\vs2017-64 (
cd .\vs2017-64
CALL :DELETE
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
EXIT /B
:END
endlocal