-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
28 lines (21 loc) · 715 Bytes
/
Copy pathbuild.bat
File metadata and controls
28 lines (21 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
@echo off
:: Convenience script — configure and build the entire OpenWinBot suite.
:: Requires: CMake 3.21+, Visual Studio 2022 (or any generator you prefer).
setlocal
set BUILD_DIR=build
set CONFIG=Release
if not exist %BUILD_DIR% mkdir %BUILD_DIR%
echo [OpenWinBot] Configuring...
cmake -S . -B %BUILD_DIR% -DCMAKE_BUILD_TYPE=%CONFIG%
if errorlevel 1 goto :error
echo [OpenWinBot] Building...
cmake --build %BUILD_DIR% --config %CONFIG% --parallel
if errorlevel 1 goto :error
echo.
echo [OpenWinBot] Build succeeded.
echo win-observer : %BUILD_DIR%\bin\%CONFIG%\win-observer.exe
echo win-actuator : %BUILD_DIR%\bin\%CONFIG%\win-actuator.exe
goto :eof
:error
echo [OpenWinBot] Build FAILED.
exit /b 1