CICD
This commit is contained in:
SoftFever
2023-01-12 22:55:50 +08:00
committed by GitHub
parent 43f4288fdc
commit 96c861f906
14 changed files with 581 additions and 84 deletions

View File

@@ -3,12 +3,21 @@ cd deps
mkdir build
cd build
set DEPS=%CD%/BambuStudio_dep
@REM cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release
@REM cmake --build . --config Release --target ALL_BUILD -- -m
if "%1"=="studio" (
GOTO :studio
)
echo "building deps.."
cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/BambuStudio_dep" -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --target ALL_BUILD -- -m
if "%1"=="deps" exit /b 0
:studio
echo "building studio..."
cd %WP%
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./BambuStudio-SoftFever" -DCMAKE_BUILD_TYPE=Release -DWIN10SDK_PATH="C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0"
@REM cmake --build . --config Release --target ALL_BUILD -- -m
@REM cmake --build . --target install --config Release
cmake --build . --config Release --target ALL_BUILD -- -m
cmake --build . --target install --config Release