diff options
| author | Ray <raysan5@gmail.com> | 2019-01-21 23:59:35 +0100 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2019-01-21 23:59:35 +0100 |
| commit | df407350671c787ec1906ee06467adc6becc0750 (patch) | |
| tree | f1b00cf05db04947a9d72bc311c5ed9347302850 /examples/raylib_makefile_example.bat | |
| parent | 4467292a2d5a5e0fbe2c3a28f8ffb1480c7b66ed (diff) | |
| download | raylib-df407350671c787ec1906ee06467adc6becc0750.tar.gz raylib-df407350671c787ec1906ee06467adc6becc0750.zip | |
Added CMD compilation scripts for examples
They could be useful for some people...
Diffstat (limited to 'examples/raylib_makefile_example.bat')
| -rw-r--r-- | examples/raylib_makefile_example.bat | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/examples/raylib_makefile_example.bat b/examples/raylib_makefile_example.bat new file mode 100644 index 00000000..f5b77d6c --- /dev/null +++ b/examples/raylib_makefile_example.bat @@ -0,0 +1,27 @@ +::@echo off +:: . +:: Compile your examples using: raylib_makefile_example.bat core/core_basic_window +:: . +:: > Setup required Environment +:: ------------------------------------- +set RAYLIB_INCLUDE_DIR=C:\GitHub\raylib\src +set RAYLIB_LIB_DIR=C:\GitHub\raylib\src +set RAYLIB_RES_FILE=C:\GitHub\raylib\raylib.rc.data +set COMPILER_DIR=C:\raylib\mingw\bin +set PATH=%PATH%;%COMPILER_DIR% +set FILENAME=%1 +set FILENAME_FULL_PATH=%~f1 +cd %~dp0 +:: . +:: > Cleaning latest build +:: --------------------------- +cmd /c if exist %FILENAME_FULL_PATH%.exe del /F %FILENAME_FULL_PATH%.exe +:: . +:: > Compiling program +:: -------------------------- +:: -B : Force make recompilation despite file not changed +mingw32-make %FILENAME% -B PLATFORM=PLATFORM_DESKTOP +:: . +:: > Executing program +:: ------------------------- +cmd /c if exist %FILENAME_FULL_PATH%.exe %FILENAME_FULL_PATH%.exe
\ No newline at end of file |
