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,12 @@
if [ "$1" = "debug" ]; then
BUILD_TYPE=debug
else
BUILD_TYPE=release
fi
conan install . --output-folder=build --build=missing
cd build
meson setup --native-file conan_meson_native.ini .. meson-src
meson setup --native-file conan_meson_native.ini .. meson-src -Dbuildtype=$BUILD_TYPE
meson compile -C meson-src
./meson-src/main
./meson-src/main
read -p "Press enter to continue..."