generated from Riley/Conan-C
20 lines
454 B
Batchfile
20 lines
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
|