From 4812e33ba917a4c35533eab14b6c0c87209f95c4 Mon Sep 17 00:00:00 2001 From: jaxne Date: Tue, 30 Jun 2020 14:28:02 -0600 Subject: [PATCH] build: Win32 builds work now --- build.bat | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 build.bat diff --git a/build.bat b/build.bat new file mode 100644 index 00000000..a02959d4 --- /dev/null +++ b/build.bat @@ -0,0 +1,32 @@ +@echo off +setlocal + +REM Script assumes tools directory is in your path. +REM For now, this is done by running shell.bat inside of tools directory + +set CommonCompilerFlags=-I../libcommon/src -I../tests/src -DBUILD_WIN32=1 -D_CRT_SECURE_NO_WARNINGS -fp:fast -fp:except- -nologo -Gm- -GR- -EHsc- -EHa- -Od -Oi -WX -W3 -FC -Zi -GS- -Gs9999999 +set CommonLinkerFlags= -nologo -STACK:0x100000,0x100000 -incremental:no -opt:ref -nodefaultlib libcmt.lib libvcruntime.lib libucrt.lib user32.lib gdi32.lib winmm.lib kernel32.lib shlwapi.lib + +set BuildDir=%~dp0build + +REM set CompileCommand=clang-cl +set CompileCommand=cl + +IF NOT EXIST tools\btime.exe ( + pushd tools\build-timer + call build.bat + popd +) + +IF NOT EXIST %BuildDir% mkdir %BuildDir% +pushd %BuildDir% +del *.pdb > NUL 2> NUL +del *.map > NUL 2> NUL + +..\tools\btime.exe --begin ePenguin-Software-Framework.aet + +%CompileCommand% %CommonCompilerFlags% -LD ../libcommon/src/libcommon.cpp -Folibcommon.obj -Fmlibcommon.map /link %CommonLinkerFlags% -noentry +lib -nologo libcommon.obj + +..\tools\btime.exe --end ePenguin-Software-Framework.aet +popd \ No newline at end of file