暂存文件
This commit is contained in:
28
scripts/build.bat
Normal file
28
scripts/build.bat
Normal file
@@ -0,0 +1,28 @@
|
||||
@echo off
|
||||
REM 构建脚本(Windows)
|
||||
|
||||
set BUILD_TYPE=%1
|
||||
if "%BUILD_TYPE%"=="" set BUILD_TYPE=Release
|
||||
|
||||
set BUILD_DIR=build-%BUILD_TYPE%
|
||||
|
||||
echo Building DisplayFlow in %BUILD_TYPE% mode...
|
||||
|
||||
REM 创建构建目录
|
||||
if not exist "%BUILD_DIR%" mkdir "%BUILD_DIR%"
|
||||
cd "%BUILD_DIR%"
|
||||
|
||||
REM 配置 CMake
|
||||
cmake .. ^
|
||||
-G "Visual Studio 16 2019" -A x64 ^
|
||||
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
|
||||
-DBUILD_TESTS=ON ^
|
||||
-DENABLE_VP8_CODEC=OFF
|
||||
|
||||
REM 编译
|
||||
cmake --build . --config %BUILD_TYPE% --parallel
|
||||
|
||||
echo Build complete! Output in %BUILD_DIR%\
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user