diff options
| author | Ray <[email protected]> | 2018-11-22 11:55:27 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2018-11-22 11:55:27 +0100 |
| commit | ab4b0508a275e64b0181c155edb015c55461c8a6 (patch) | |
| tree | c4d232f21fdf84fb801ff5f960bdba7f4241886c /projects/Geany/raylib_compile_execute.bat | |
| parent | 98fee844d1794465d5b327e60b85a5030a8bea62 (diff) | |
| download | raylib-ab4b0508a275e64b0181c155edb015c55461c8a6.tar.gz raylib-ab4b0508a275e64b0181c155edb015c55461c8a6.zip | |
Added Geany project template for Windows
Diffstat (limited to 'projects/Geany/raylib_compile_execute.bat')
| -rw-r--r-- | projects/Geany/raylib_compile_execute.bat | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/projects/Geany/raylib_compile_execute.bat b/projects/Geany/raylib_compile_execute.bat new file mode 100644 index 00000000..a62a1aca --- /dev/null +++ b/projects/Geany/raylib_compile_execute.bat @@ -0,0 +1,20 @@ +::@echo off +:: > Setup required Environment +:: ------------------------------------- +set RAYLIB_DIR=C:\raylib +set PATH=%PATH%;%RAYLIB_DIR%\mingw32\bin +set FILE_NAME=%1 +set NAME_PART=%FILE_NAME:~0,-2% +cd %~dp0 +:: . +:: > Cleaning latest build +:: --------------------------- +cmd /c if exist %NAME_PART%.exe del /F %NAME_PART%.exe +:: . +:: > Compiling program +:: -------------------------- +gcc -o %NAME_PART%.exe %FILE_NAME% %RAYLIB_DIR%\raylib.rc.data -s -O2 -I../../src -Iexternal -lraylib -lopengl32 -lgdi32 -std=c99 -Wall -mwindows +:: . +:: . > Executing program +:: ------------------------- +cmd /c if exist %NAME_PART%.exe %NAME_PART%.exe
\ No newline at end of file |
