From 2c8c4d451c93f620561317b9ab6139ac3b59fbbd Mon Sep 17 00:00:00 2001 From: Lycoder Date: Sun, 11 Jun 2023 23:57:43 -0300 Subject: [PATCH] Added auxiliary BAT script --- build-win.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 build-win.bat diff --git a/build-win.bat b/build-win.bat new file mode 100644 index 0000000..72d6aaa --- /dev/null +++ b/build-win.bat @@ -0,0 +1,20 @@ +@echo off + +set PSX_DIR=. +set SDL2_DIR=SDL2-2.26.5\x86_64-w64-mingw32 + +if not exist "bin" ( + mkdir bin +) + +gcc psx/*.c psx/dev/*.c frontend/*.c -o bin/psxe^ + -L"%SDL2_DIR%/lib"^ + -I"%SDL2_DIR%\include"^ + -I"%SDL2_DIR%\include\SDL2"^ + -I"%PSX_DIR%"^ + -I"."^ + -DOS_INFO="%OS_INFO%"^ + -DREP_VERSION="%VERSION_TAG%"^ + -DREP_COMMIT_HASH="%COMMIT_HASH%"^ + -g -DLOG_USE_COLOR -lSDL2 -lSDL2main^ + -Ofast -Wno-overflow -Wall -pedantic \ No newline at end of file