summaryrefslogtreecommitdiffhomepage
path: root/projects
diff options
context:
space:
mode:
authorRay <[email protected]>2018-11-22 12:29:33 +0100
committerRay <[email protected]>2018-11-22 12:29:33 +0100
commitee20ccc86dc5e645d3ab250dd17f0c467a6ecf01 (patch)
tree46cb52fa2a607bc9accad653dbb80d21ca931342 /projects
parentab4b0508a275e64b0181c155edb015c55461c8a6 (diff)
downloadraylib-ee20ccc86dc5e645d3ab250dd17f0c467a6ecf01.tar.gz
raylib-ee20ccc86dc5e645d3ab250dd17f0c467a6ecf01.zip
Create raylib_compile_sources.bat
Diffstat (limited to 'projects')
-rw-r--r--projects/Geany/raylib_compile_sources.bat42
1 files changed, 42 insertions, 0 deletions
diff --git a/projects/Geany/raylib_compile_sources.bat b/projects/Geany/raylib_compile_sources.bat
new file mode 100644
index 00000000..105857ef
--- /dev/null
+++ b/projects/Geany/raylib_compile_sources.bat
@@ -0,0 +1,42 @@
+::@echo off
+:: > Choose compile options
+:: -------------------------------
+:: Set desired OpenGL API version: 1.1, 2.1, 3.3
+set GRAPHICS_API=GRAPHICS_API_OPENGL_33
+:: .
+:: > Setup required Environment
+:: -------------------------------------
+set RAYLIB_DIR=C:\raylib
+set PATH=%PATH%;%RAYLIB_DIR%\mingw32\bin
+cd %RAYLIB_DIR%\raylib\src
+:: .
+:: > Cleaning latest build
+:: ---------------------------
+cmd /c del /F *.o
+cmd /c del /F libraylib.a
+:: .
+:: > Compile raylib modules
+:: ------------------------------
+gcc -O2 -c rglfw.c -Wall -I. -Iexternal/glfw/include
+gcc -O2 -c core.c -std=c99 -Wall -Iexternal/glfw/include -DPLATFORM_DESKTOP -D%GRAPHICS_API%
+gcc -O2 -c shapes.c -std=c99 -Wall -DPLATFORM_DESKTOP
+gcc -O2 -c textures.c -std=c99 -Wall -DPLATFORM_DESKTOP
+gcc -O2 -c text.c -std=c99 -Wall -DPLATFORM_DESKTOP
+gcc -O2 -c models.c -std=c99 -Wall -DPLATFORM_DESKTOP
+gcc -O2 -c audio.c -std=c99 -Wall -DPLATFORM_DESKTOP
+gcc -O2 -c external/stb_vorbis.c -Wall -I.
+gcc -O2 -c external/mini_al.c -Wall -I.
+gcc -O2 -c utils.c -std=c99 -Wall -DPLATFORM_DESKTOP
+:: .
+:: . > Generate raylib library
+:: ------------------------------
+ar rcs libraylib.a core.o rglfw.o shapes.o textures.o text.o models.o audio.o mini_al.o stb_vorbis.o utils.o
+:: .
+:: > Installing raylib library
+:: -----------------------------
+cmd /c copy raylib.h %RAYLIB_DIR%\mingw32\i686-w64-mingw32\include /Y
+cmd /c copy libraylib.a %RAYLIB_DIR%\mingw32\i686-w64-mingw32\lib /Y
+:: .
+:: > Restore environment
+:: -----------------------------
+cd %~dp0 \ No newline at end of file