You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
713 B

  1. @echo off
  2. set Libraries=glfw3.lib raylib.lib user32.lib gdi32.lib shell32.lib
  3. set CompilerFlags= /MD /Z7 /FC /nologo
  4. set LinkerFlags=-subsystem:Console
  5. set bits=x86
  6. set LibraryLocation=..\deps\lib\%bits%\
  7. for %%* in (.) do set CurrDirName=%%~nx*
  8. mkdir build > NUL 2> NUL
  9. pushd build
  10. IF NOT DEFINED vcvars_called (
  11. call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %bits%
  12. set vcvars_called=1
  13. )
  14. REM xcopy %LibraryLocation%glfw3.dll > NUL 2> NUL
  15. ctime -begin %CurrDirName%.ctm
  16. cl %CompilerFlags% ..\code\main.cpp /I..\deps\include /link -incremental:no /LIBPATH:%LibraryLocation% %Libraries% %LinkerFlags% -out:main.exe
  17. set LastError=%ERRORLEVEL%
  18. ctime -end %CurrDirName%.ctm
  19. popd