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.

41 rivejä
1.4 KiB

5 vuotta sitten
  1. ::@echo off
  2. :: > Choose compile options
  3. :: -------------------------------
  4. :: Set desired OpenGL API version: 1.1, 2.1, 3.3
  5. set GRAPHICS_API=GRAPHICS_API_OPENGL_33
  6. :: .
  7. :: > Setup required Environment
  8. :: -------------------------------------
  9. set RAYLIB_DIR=C:\raylib
  10. set COMPILER_DIR=C:\raylib\mingw\bin
  11. set PATH=%PATH%;%COMPILER_DIR%
  12. cd %RAYLIB_DIR%\raylib\src
  13. :: .
  14. :: > Cleaning latest build
  15. :: ---------------------------
  16. cmd /c del /F *.o
  17. cmd /c del /F libraylib.a
  18. :: .
  19. :: > Compile raylib modules
  20. :: ------------------------------
  21. gcc -O2 -c rglfw.c -Wall -I. -Iexternal/glfw/include
  22. gcc -O2 -c rcore.c -std=c99 -Wall -Iexternal/glfw/include -DPLATFORM_DESKTOP -D%GRAPHICS_API%
  23. gcc -O2 -c rshapes.c -std=c99 -Wall -DPLATFORM_DESKTOP
  24. gcc -O2 -c rtextures.c -std=c99 -Wall -DPLATFORM_DESKTOP
  25. gcc -O2 -c rtext.c -std=c99 -Wall -DPLATFORM_DESKTOP
  26. gcc -O2 -c rmodels.c -std=c99 -Wall -DPLATFORM_DESKTOP
  27. gcc -O2 -c raudio.c -std=c99 -Wall -DPLATFORM_DESKTOP
  28. gcc -O2 -c utils.c -std=c99 -Wall -DPLATFORM_DESKTOP
  29. :: .
  30. :: . > Generate raylib library
  31. :: ------------------------------
  32. ar rcs libraylib.a rcore.o rglfw.o rshapes.o rtextures.o rtext.o rmodels.o raudio.o utils.o
  33. :: .
  34. :: > Installing raylib library
  35. :: -----------------------------
  36. cmd /c copy raylib.h %RAYLIB_DIR%\mingw\i686-w64-mingw32\include /Y
  37. cmd /c copy libraylib.a %RAYLIB_DIR%\mingw\i686-w64-mingw32\lib /Y
  38. :: .
  39. :: > Restore environment
  40. :: -----------------------------
  41. cd %~dp0