2020-05-12 01:09:27 +00:00
|
|
|
@echo off
|
|
|
|
|
2020-05-12 01:22:02 +00:00
|
|
|
SET MyPath=%~dp0
|
|
|
|
SET MyPath=%MyPath:~0,-1%
|
2021-01-23 20:46:46 +00:00
|
|
|
|
2020-05-12 01:22:02 +00:00
|
|
|
call %MyPath%\_prebuild_win32.bat app debug msvc
|
2021-01-17 07:01:08 +00:00
|
|
|
call %MyPath%\setup_cl.bat
|
2020-05-12 01:09:27 +00:00
|
|
|
|
2021-04-09 02:06:58 +00:00
|
|
|
SET CommonCompilerFlags=-nologo -DDEBUG=1 -DPLATFORM_WINDOWS -FC -WX -W4 -Z7 -Oi -GR- -EHsc -EHa- -MTd -fp:fast -fp:except- -IC:\programs-dev\gs_libs\src
|
2020-05-12 01:09:27 +00:00
|
|
|
|
2021-04-13 02:00:09 +00:00
|
|
|
SET CommonCompilerFlags=-wd4127 -wd4702 -wd4101 -wd4505 -wd4100 -wd4189 -wd4244 -wd4201 -wd4996 -I%CommonLibs% -Od %CommonCompilerFlags%
|
2020-05-12 01:09:27 +00:00
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
SET CommonLinkerFlags= -opt:ref -incremental:no
|
|
|
|
|
|
|
|
SET DLLExports=/EXPORT:InitializeApplication /EXPORT:UpdateAndRender /EXPORT:CleanupApplication /EXPORT:ReloadStaticData
|
2020-05-12 01:09:27 +00:00
|
|
|
|
|
|
|
pushd %BuildPath%
|
|
|
|
|
|
|
|
del *.pdb > NUL 2> NUL
|
|
|
|
|
|
|
|
echo WAITING FOR PDB TO WRITE > lock.tmp
|
|
|
|
|
|
|
|
cl %CommonCompilerFlags% %SourceCodePath%\foldhaus_app.cpp /Fefoldhaus.dll /LD /link %CommonLinkerFlags% %DLLExports%
|
2021-01-17 07:01:08 +00:00
|
|
|
SET LastError=%ERRORLEVEL%
|
2020-05-12 01:09:27 +00:00
|
|
|
|
|
|
|
del lock.tmp
|
|
|
|
|
2021-03-23 03:58:52 +00:00
|
|
|
cl %CommonCompilerFlags% %SourceCodePath%\platform_win32\win32_foldhaus.cpp /link %CommonLinkerFlags% user32.lib winmm.lib gdi32.lib opengl32.lib dsound.lib Ws2_32.lib Comdlg32.lib Winspool.lib
|
2020-05-12 01:09:27 +00:00
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
|
|
|
|
REM COMPILE UTILITY EXES
|
|
|
|
|
2021-03-23 03:58:52 +00:00
|
|
|
cl %CommonCompilerFlags% %ProjectDevPath%\src\serial_monitor\first.cpp /Feserial_monitor.exe /link %CommonLinkerFlags% user32.lib winmm.lib gdi32.lib Winspool.lib
|
2020-10-10 23:52:00 +00:00
|
|
|
|
2021-01-11 00:25:35 +00:00
|
|
|
cl %CommonCompilerFlags% %ProjectDevPath%\src\sculpture_gen\gen_blumen_lumen.cpp /Fegen_blumen_lumen.exe /link %CommonLinkerFlags% user32.lib winmm.lib gdi32.lib
|
|
|
|
|
2021-03-07 02:17:00 +00:00
|
|
|
REM COMPILE AND RUN TESTS
|
|
|
|
cl %CommonCompilerFlags% %ProjectDevPath%\src\tests\sanity_tests.cpp /Fesanity_tests.exe /link %CommonLinkerFlags% user32.lib winmm.lib gdi32.lib
|
|
|
|
|
2021-08-06 19:51:04 +00:00
|
|
|
ECHO SANITY TESTS BEGIN
|
2021-03-07 02:17:00 +00:00
|
|
|
sanity_tests.exe
|
2021-08-06 19:51:04 +00:00
|
|
|
ECHO SANITY TESTS END
|
2021-03-07 02:17:00 +00:00
|
|
|
|
2020-05-12 01:09:27 +00:00
|
|
|
popd
|
|
|
|
|
2020-05-12 01:22:02 +00:00
|
|
|
call %MyPath%\_postbuild_win32.bat
|