diff options
| author | Uneven Prankster <unevenprankster@protonmail.com> | 2023-10-15 21:28:29 -0300 |
|---|---|---|
| committer | Uneven Prankster <unevenprankster@protonmail.com> | 2023-10-15 21:28:29 -0300 |
| commit | 1c0cc775732201f4c4d3ee0d6772be786b3b4aa1 (patch) | |
| tree | f5d692d046868261275c7430a624c3ea9ed75d3d /raylib/projects/Geany/raylib_compile_execute.bat | |
| parent | a89f892640cf12f75c7ce18e6e88c70a8d3965ed (diff) | |
A lot has certainly happened!
Diffstat (limited to 'raylib/projects/Geany/raylib_compile_execute.bat')
| -rw-r--r-- | raylib/projects/Geany/raylib_compile_execute.bat | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/raylib/projects/Geany/raylib_compile_execute.bat b/raylib/projects/Geany/raylib_compile_execute.bat new file mode 100644 index 0000000..b99740c --- /dev/null +++ b/raylib/projects/Geany/raylib_compile_execute.bat @@ -0,0 +1,21 @@ +::@echo off +:: > Setup required Environment +:: ------------------------------------- +set RAYLIB_DIR=C:\raylib +set COMPILER_DIR=C:\raylib\mingw\bin +set PATH=%PATH%;%COMPILER_DIR% +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%\src\raylib.rc.data -s -O2 -I../../src -Iexternal -lraylib -lopengl32 -lgdi32 -lwinmm -std=c99 -Wall -mwindows +:: . +:: . > Executing program +:: ------------------------- +cmd /c if exist %NAME_PART%.exe %NAME_PART%.exe
\ No newline at end of file |
