您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

19 行
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