becs/examples/example1/build.bat

19 lines
583 B
Batchfile

@echo off
REM Build Script for Example 1
mkdir build
if "%1"=="--setup" (
git submodule update --init
pushd ".\external\raylib\"
cmake -S . -B build -DBUILD_EXAMPLES=Off -DCMAKE_BUILD_TYPE=Debug
cmake --build build
popd
)
pushd ".\build"
cl /Zi raylib.lib user32.lib opengl32.lib gdi32.lib winmm.lib msvcrt.lib shell32.lib "..\example1.c" -Ic:"\external\raylib\build\raylib\include" /link /libpath:c:"..\external\raylib\build\raylib\Debug" /NODEFAULTLIB:libcmt /NODEFAULTLIB:msvcrtd /NODEFAULTLIB:libcmtd
if "%1"=="--run" if %errorlevel%==0 example1.exe
popd