vn/code/build.bat

13 lines
491 B
Batchfile
Raw Normal View History

2023-06-17 17:00:55 +00:00
@echo off
2023-06-21 16:59:36 +00:00
set CommonCompilerOptions=/Zi /FC /nologo /DVN_INTERNAL=1 /DVN_SLOW=1 /Oi /W4 /WX /wd4996 /wd4201 /wd4305 /wd4244 /wd4100 /wd4505 /std:c++17
2023-06-17 17:15:56 +00:00
if not exist "../build" mkdir "../build"
2023-06-17 17:00:55 +00:00
pushd "../build/"
2023-07-19 15:09:41 +00:00
rem cl /Zi /nologo /FC ../code/third_party/codegen/codegen.c
codegen ../code/
2023-06-17 17:00:55 +00:00
cl %CommonCompilerOptions% ../code/vn.cpp /LD /link /export:VN_UpdateAndRender /incremental:no
cl %CommonCompilerOptions% ../code/win32_main.cpp /link user32.lib gdi32.lib winmm.lib opengl32.lib
popd