forked from SoftFever/OrcaSlicer
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug Improvments on Windows (SoftFever#3275)
* fix assert statements * Add ORCA_INCLUDE_DEBUG_INFO to deps cmake adds option ORCA_INCLUDE_DEBUG_INFO to deps build script to allow an alternative for RelWithDebInfo that works on windows * add build type option to windows script * update .gitignore to include build*
- Loading branch information
1 parent
73481da
commit c4a66f3
Showing
8 changed files
with
84 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Build | ||
Build.bat | ||
/build*/ | ||
deps/build | ||
deps/build* | ||
MYMETA.json | ||
MYMETA.yml | ||
_build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,50 @@ | ||
set WP=%CD% | ||
|
||
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% | ||
|
||
cd deps | ||
mkdir build | ||
cd build | ||
mkdir %build_dir% | ||
cd %build_dir% | ||
set DEPS=%CD%/OrcaSlicer_dep | ||
if "%1"=="slicer" ( | ||
GOTO :slicer | ||
) | ||
echo "building deps.." | ||
cmake ../ -G "Visual Studio 16 2019" -DDESTDIR="%CD%/OrcaSlicer_dep" -DCMAKE_BUILD_TYPE=Release | ||
cmake --build . --config Release --target deps -- -m | ||
|
||
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% | ||
cmake --build . --config %build_type% --target deps -- -m | ||
|
||
if "%1"=="deps" exit /b 0 | ||
|
||
:slicer | ||
echo "building Orca Slicer..." | ||
cd %WP% | ||
mkdir build | ||
cd build | ||
mkdir %build_dir% | ||
cd %build_dir% | ||
|
||
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" | ||
cmake --build . --config Release --target ALL_BUILD -- -m | ||
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" | ||
cmake --build . --config %build_type% --target ALL_BUILD -- -m | ||
cd .. | ||
call run_gettext.bat | ||
cd build | ||
cmake --build . --target install --config Release | ||
cd %build_dir% | ||
cmake --build . --target install --config %build_type% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters