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.

20 line
676 B

  1. ::@echo off
  2. :: > Setup required Environment
  3. :: -------------------------------------
  4. set RAYLIB_DIR=C:\raylib
  5. set COMPILER_DIR=C:\raylib\mingw\bin
  6. set PATH=%PATH%;%COMPILER_DIR%
  7. set FILE_NAME=%1
  8. set NAME_PART=%FILE_NAME:~0,-2%
  9. cd %~dp0
  10. :: .
  11. :: > Cleaning latest build
  12. :: ---------------------------
  13. cmd /c if exist %NAME_PART%.exe del /F %NAME_PART%.exe
  14. :: .
  15. :: > Compiling program
  16. :: --------------------------
  17. gcc -o %NAME_PART%.exe %FILE_NAME% %RAYLIB_DIR%\src\raylib.rc.data -s -O2 -I../../src -Iexternal -lraylib -lopengl32 -lgdi32 -lwinmm -std=c99 -Wall -mwindows
  18. :: .
  19. :: . > Executing program
  20. :: -------------------------
  21. cmd /c if exist %NAME_PART%.exe %NAME_PART%.exe