2020-05-12 01:09:27 +00:00
|
|
|
@echo off
|
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
SET MyPath=%~dp0
|
|
|
|
SET MyPath=%MyPath:~0,-1%
|
|
|
|
call %MyPath%\_prebuild_win32.bat app debug clang
|
2020-05-12 01:09:27 +00:00
|
|
|
|
|
|
|
set CommonCompilerFlags=-std=c++11 -Wno-writable-strings -Wno-unused-value -Wno-varargs -Wno-switch -Wno-microsoft-enum-forward-reference -DDEBUG=1
|
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
pushd %BuildPath%
|
2020-05-12 01:09:27 +00:00
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
del *.pdb > NUL 2> NUL
|
2020-05-12 01:09:27 +00:00
|
|
|
|
|
|
|
echo WAITING FOR PDB TO WRITE > lock.tmp
|
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
clang++ %CommonCompilerFlags% %SourceCodePath%\foldhaus_app.cpp -shared -o
|
2020-05-12 01:09:27 +00:00
|
|
|
|
|
|
|
set LastError=%ERRORLEVEL%
|
|
|
|
|
|
|
|
del lock.tmp
|
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
clang++ -c %CommonCompilerFlags% %SourceCodePath%\platform_win32\win32_foldhaus.cpp
|
|
|
|
link win32_foldhaus.o user32.lib winmm.lib gdi32.lib opengl32.lib dsound.lib Ws2_32.lib Comdlg32.lib
|
2020-05-12 01:09:27 +00:00
|
|
|
|
|
|
|
popd
|
|
|
|
|
2021-01-17 07:01:08 +00:00
|
|
|
call %MyPath%\_postbuild_win32.bat
|