From cdda4c4182c9ee068567529715e4a5c68a8efb58 Mon Sep 17 00:00:00 2001 From: bonmas14 Date: Sat, 20 Sep 2025 22:28:15 +0300 Subject: Init commit v1.0 --- deps/raylib/examples/raylib_compile_execute.bat | 32 +++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 deps/raylib/examples/raylib_compile_execute.bat (limited to 'deps/raylib/examples/raylib_compile_execute.bat') diff --git a/deps/raylib/examples/raylib_compile_execute.bat b/deps/raylib/examples/raylib_compile_execute.bat new file mode 100644 index 0000000..0dc43e1 --- /dev/null +++ b/deps/raylib/examples/raylib_compile_execute.bat @@ -0,0 +1,32 @@ +::@echo off +:: . +:: Compile your examples using: raylib_compile_execute.bat core/core_basic_window.c +:: . +:: > Setup required Environment +:: ------------------------------------- +set RAYLIB_INCLUDE_DIR=C:\raylib\raylib\src +set RAYLIB_LIB_DIR=C:\raylib\raylib\src +set RAYLIB_RES_FILE=C:\raylib\raylib\src\raylib.rc.data +set COMPILER_DIR=C:\raylib\w64devkit\bin +set PATH=%PATH%;%COMPILER_DIR% +:: Get full filename path for input file %1 +set FILENAME=%~f1 +set NAMEPART=%FILENAME:~0,-2% +cd %~dp0 +:: . +:: > Cleaning latest build +:: --------------------------- +cmd /c if exist %NAMEPART%.exe del /F %NAMEPART%.exe +:: . +:: > Compiling program +:: -------------------------- +:: -s : Remove all symbol table and relocation information from the executable +:: -O2 : Optimization Level 2, this option increases both compilation time and the performance of the generated code +:: -std=c99 : Use C99 language standard +:: -Wall : Enable all compilation Warnings +:: -mwindows : Compile a Windows executable, no cmd window +gcc -o %NAMEPART%.exe %FILENAME% %RAYLIB_RES_FILE% -s -O2 -I%RAYLIB_INCLUDE_DIR% -L%RAYLIB_LIB_DIR% -lraylib -lopengl32 -lgdi32 -lwinmm -std=c99 -Wall -mwindows +:: . +:: > Executing program +:: ------------------------- +cmd /c if exist %NAMEPART%.exe %NAMEPART%.exe -- cgit v1.2.3-70-g09d2