25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
864 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:\GitHub\raylib\src
  8. set RAYLIB_LIB_DIR=C:\GitHub\raylib\src
  9. set RAYLIB_RES_FILE=C:\GitHub\raylib\raylib.rc.data
  10. set COMPILER_DIR=C:\raylib\mingw\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