-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
61 lines (51 loc) · 1.11 KB
/
build.bat
File metadata and controls
61 lines (51 loc) · 1.11 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
@echo off
echo Building Siroware for Windows...
REM Check if meson is installed
where meson >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo Error: Meson is not installed or not in PATH
echo Please install meson: pip install meson
pause
exit /b 1
)
REM Check if ninja is installed
where ninja >nul 2>nul
if %ERRORLEVEL% NEQ 0 (
echo Error: Ninja is not installed or not in PATH
echo Please install ninja or use another backend
pause
exit /b 1
)
REM Clean previous build if exists
if exist build\ (
echo Cleaning previous build...
rmdir /s /q build
)
REM Create build directory
mkdir build
REM Configure with meson
echo Configuring with Meson...
meson setup build --backend=ninja
if %ERRORLEVEL% NEQ 0 (
echo Error: Meson configuration failed
pause
exit /b 1
)
REM Build the project
echo Building project...
cd build
ninja
if %ERRORLEVEL% NEQ 0 (
echo Error: Build failed
cd ..
pause
exit /b 1
)
cd ..
echo.
echo ========================================
echo Build successful!
echo Executable: build\siroware.exe
echo ========================================
echo.
pause