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.

27 lines
873 B

  1. ::@echo off
  2. :: .
  3. :: Compile your examples using: raylib_makefile_example.bat core/core_basic_window
  4. :: .
  5. :: > Setup required Environment
  6. :: -------------------------------------
  7. set RAYLIB_INCLUDE_DIR=C:\raylib\raylib\src
  8. set RAYLIB_LIB_DIR=C:\raylib\raylib\src
  9. set RAYLIB_RES_FILE=C:\raylib\raylib\src\raylib.rc.data
  10. set COMPILER_DIR=C:\raylib\w64devkit\bin
  11. set PATH=%PATH%;%COMPILER_DIR%
  12. set FILENAME=%1
  13. set FILENAME_FULL_PATH=%~f1
  14. cd %~dp0
  15. :: .
  16. :: > Cleaning latest build
  17. :: ---------------------------
  18. cmd /c if exist %FILENAME_FULL_PATH%.exe del /F %FILENAME_FULL_PATH%.exe
  19. :: .
  20. :: > Compiling program
  21. :: --------------------------
  22. :: -B : Force make recompilation despite file not changed
  23. mingw32-make %FILENAME% -B PLATFORM=PLATFORM_DESKTOP
  24. :: .
  25. :: > Executing program
  26. :: -------------------------
  27. cmd /c if exist %FILENAME_FULL_PATH%.exe %FILENAME_FULL_PATH%.exe