add debug mode support

This commit is contained in:
Riley 2025-05-09 21:01:36 -05:00
parent 4a3cc010b0
commit c3cbbda2a0
7 changed files with 92 additions and 6 deletions

View file

@ -1,5 +1,20 @@
@echo off
setlocal enabledelayedexpansion
set DEBUG=release
if "%1" == "debug" set DEBUG=debug
conan install . --output-folder=build --build=missing
cd build
meson setup --native-file conan_meson_native.ini .. meson-src
meson setup -Dbuildtype=%DEBUG% --native-file conan_meson_native.ini .. meson-src --reconfigure
meson compile -C meson-src
meson-src\main.exe
REM Only run the executable if it exists
if exist meson-src\main.exe (
meson-src\main.exe
) else (
echo "Executable not found. Build might have failed."
)
pause