-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfigure.bat
More file actions
54 lines (43 loc) · 1.14 KB
/
configure.bat
File metadata and controls
54 lines (43 loc) · 1.14 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
@echo off
REM ========================================
REM Bit HCI - 统一配置脚本
REM 使用顶层 CMakeLists.txt 配置整个项目
REM ========================================
setlocal enabledelayedexpansion
echo.
echo ========================================
echo Configuring Bit HCI Project
echo ========================================
echo.
REM 切换到项目根目录
cd /d "%~dp0.."
REM 创建统一的 build 目录
if not exist "build" mkdir "build"
echo Configuring with CMake...
echo Build directory: %CD%\build
echo.
pushd "build"
REM 运行 CMake 配置
cmake .. -G "Visual Studio 17 2022" -A x64
if errorlevel 1 (
echo.
echo ========================================
echo ERROR: Configuration failed!
echo ========================================
popd
exit /b 1
)
popd
echo.
echo ========================================
echo Configuration Complete!
echo ========================================
echo.
echo Build directory: build\
echo.
echo Next steps:
echo 1. Build all: scripts\build.bat
echo 2. Build specific: cmake --build build --target [component_name]
echo 3. Clean: scripts\clean.bat
echo.
exit /b 0