2022-07-17 02:27:18 +00:00
|
|
|
set WP=%CD%
|
2024-01-24 11:48:14 +00:00
|
|
|
|
|
|
|
set debug=OFF
|
|
|
|
set debuginfo=OFF
|
|
|
|
if "%1"=="debug" set debug=ON
|
|
|
|
if "%2"=="debug" set debug=ON
|
|
|
|
if "%1"=="debuginfo" set debuginfo=ON
|
|
|
|
if "%2"=="debuginfo" set debuginfo=ON
|
|
|
|
if "%debug%"=="ON" (
|
|
|
|
set build_type=Debug
|
|
|
|
set build_dir=build-dbg
|
|
|
|
) else (
|
|
|
|
if "%debuginfo%"=="ON" (
|
|
|
|
set build_type=RelWithDebInfo
|
|
|
|
set build_dir=build-dbginfo
|
|
|
|
) else (
|
|
|
|
set build_type=Release
|
|
|
|
set build_dir=build
|
|
|
|
)
|
|
|
|
)
|
|
|
|
echo build type set to %build_type%
|
|
|
|
|
2022-07-17 02:27:18 +00:00
|
|
|
cd deps
|
2024-01-24 11:48:14 +00:00
|
|
|
mkdir %build_dir%
|
|
|
|
cd %build_dir%
|
2023-03-10 11:26:01 +00:00
|
|
|
set DEPS=%CD%/OrcaSlicer_dep
|
2023-08-10 02:51:44 +00:00
|
|
|
if "%1"=="slicer" (
|
|
|
|
GOTO :slicer
|
2023-01-12 14:55:50 +00:00
|
|
|
)
|
|
|
|
echo "building deps.."
|
2024-01-24 11:48:14 +00:00
|
|
|
|
2024-02-10 02:24:28 +00:00
|
|
|
echo cmake ../ -G "Visual Studio 16 2019" -A x64 -DDESTDIR="%CD%/OrcaSlicer_dep" -DCMAKE_BUILD_TYPE=%build_type% -DDEP_DEBUG=%debug% -DORCA_INCLUDE_DEBUG_INFO=%debuginfo%
|
|
|
|
cmake ../ -G "Visual Studio 16 2019" -A x64 -DDESTDIR="%CD%/OrcaSlicer_dep" -DCMAKE_BUILD_TYPE=%build_type% -DDEP_DEBUG=%debug% -DORCA_INCLUDE_DEBUG_INFO=%debuginfo%
|
2024-01-24 11:48:14 +00:00
|
|
|
cmake --build . --config %build_type% --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
|
|
|
|
|
2023-08-10 02:51:44 +00:00
|
|
|
:slicer
|
|
|
|
echo "building Orca Slicer..."
|
2022-07-17 02:27:18 +00:00
|
|
|
cd %WP%
|
2024-01-24 11:48:14 +00:00
|
|
|
mkdir %build_dir%
|
|
|
|
cd %build_dir%
|
2023-01-12 14:55:50 +00:00
|
|
|
|
2024-02-10 02:24:28 +00:00
|
|
|
echo cmake .. -G "Visual Studio 16 2019" -A x64 -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./OrcaSlicer" -DCMAKE_BUILD_TYPE=%build_type%
|
|
|
|
cmake .. -G "Visual Studio 16 2019" -A x64 -DBBL_RELEASE_TO_PUBLIC=1 -DCMAKE_PREFIX_PATH="%DEPS%/usr/local" -DCMAKE_INSTALL_PREFIX="./OrcaSlicer" -DCMAKE_BUILD_TYPE=%build_type% -DWIN10SDK_PATH="C:/Program Files (x86)/Windows Kits/10/Include/10.0.19041.0"
|
2024-01-24 11:48:14 +00:00
|
|
|
cmake --build . --config %build_type% --target ALL_BUILD -- -m
|
2023-09-05 14:36:29 +00:00
|
|
|
cd ..
|
2023-09-07 15:50:35 +00:00
|
|
|
call run_gettext.bat
|
2024-01-24 11:48:14 +00:00
|
|
|
cd %build_dir%
|
|
|
|
cmake --build . --target install --config %build_type%
|