orcaslicer/build_release.bat

26 lines
761 B
Batchfile
Raw Normal View History

2022-07-17 02:27:18 +00:00
set WP=%CD%
cd deps
mkdir build
cd build
2023-03-10 11:26:01 +00:00
set DEPS=%CD%/OrcaSlicer_dep
if "%1"=="slicer" (
GOTO :slicer
2023-01-12 14:55:50 +00:00
)
echo "building deps.."
2023-03-10 11:26:01 +00:00
cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/OrcaSlicer_dep" -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release --target deps -- -m
2022-07-17 02:27:18 +00:00
2023-01-12 14:55:50 +00:00
if "%1"=="deps" exit /b 0
:slicer
echo "building Orca Slicer..."
2022-07-17 02:27:18 +00:00
cd %WP%
mkdir build
cd build
2023-01-12 14:55:50 +00:00
2023-03-10 10:58:43 +00:00
cmake .. -G "Visual Studio 16 2019" -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./OrcaSlicer" -DCMAKE_BUILD_TYPE=Release -DWIN10SDK_PATH="C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0"
2023-01-12 14:55:50 +00:00
cmake --build . --config Release --target ALL_BUILD -- -m
2023-09-05 14:36:29 +00:00
cd ..
run_gettext.bat
cd build
2023-01-12 14:55:50 +00:00
cmake --build . --target install --config Release