2019-07-22 06:30:53 +00:00
|
|
|
@echo off
|
|
|
|
|
2020-01-21 07:32:50 +00:00
|
|
|
set ProjectDevFolder=%~dp0
|
|
|
|
set ProjectDevPath=%ProjectDevFolder:~0,-1%
|
2019-07-22 06:30:53 +00:00
|
|
|
|
|
|
|
pushd %ProjectDevPath%
|
|
|
|
|
|
|
|
IF NOT EXIST .\build\ mkdir .\build
|
|
|
|
|
|
|
|
C:\programs\ctime\ctime.exe -begin %ProjectDevPath%\build\win32_foldhaus_build_time.ctm
|
|
|
|
|
2020-02-05 07:16:41 +00:00
|
|
|
set CommonCompilerFlags=-nologo -DDEBUG=1 -DPLATFORM_WINDOWS -FC -WX -W4 -Z7 -Oi -GR- -EHsc -EHa- -MTd -fp:fast -fp:except-
|
2019-07-22 06:30:53 +00:00
|
|
|
set CommonCompilerFlags=-wd4127 -wd4702 -wd4101 -wd4505 -wd4100 -wd4189 -wd4244 -wd4201 -wd4996 -I%CommonLibs% -O2 %CommonCompilerFlags%
|
|
|
|
set CommonLinkerFlags= -opt:ref
|
|
|
|
|
|
|
|
pushd build
|
|
|
|
|
|
|
|
del *.pdb > NUL 2> NUL
|
|
|
|
|
2019-08-18 12:56:18 +00:00
|
|
|
REM Run the Preprocessor
|
2020-01-21 07:18:00 +00:00
|
|
|
foldhaus_meta.exe ..\src\foldhaus_app.cpp
|
2019-07-22 06:30:53 +00:00
|
|
|
|
|
|
|
echo WAITING FOR PDB TO WRITE > lock.tmp
|
2020-01-21 07:02:40 +00:00
|
|
|
|
2019-07-22 06:30:53 +00:00
|
|
|
cl %CommonCompilerFlags% ..\src\foldhaus_app.cpp /Fefoldhaus.dll /LD /link %CommonLinkerFlags% /EXPORT:InitializeApplication /EXPORT:UpdateAndRender /EXPORT:CleanupApplication /EXPORT:ReloadStaticData
|
|
|
|
set LastError=%ERRORLEVEL%
|
2020-01-21 07:02:40 +00:00
|
|
|
|
2019-07-22 06:30:53 +00:00
|
|
|
del lock.tmp
|
|
|
|
|
|
|
|
cl %CommonCompilerFlags% ..\src\win32_foldhaus.cpp /link %CommonLinkerFlags% user32.lib winmm.lib gdi32.lib opengl32.lib dsound.lib Ws2_32.lib Comdlg32.lib -incremental:no
|
|
|
|
|
2020-01-21 07:18:00 +00:00
|
|
|
C:\programs\ctime\ctime.exe -end %ProjectDevPath%\build\win32_foldhaus_build_time.ctm %LastError%
|
|
|
|
REM C:\programs\ctime\ctime.exe -stats %ProjectDevPath%\build\win32_foldhaus_build_time.ctm
|
2019-07-22 06:30:53 +00:00
|
|
|
popd
|