Conan-CPP/build.bat
2025-05-09 21:01:36 -05:00

20 lines
No EOL
454 B
Batchfile

@echo off
setlocal enabledelayedexpansion
set DEBUG=release
if "%1" == "debug" set DEBUG=debug
conan install . --output-folder=build --build=missing
cd build
meson setup -Dbuildtype=%DEBUG% --native-file conan_meson_native.ini .. meson-src --reconfigure
meson compile -C meson-src
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