From dcbc28fd499c695c6d29ee7a0df3cd3355462715 Mon Sep 17 00:00:00 2001 From: bubnikv Date: Wed, 30 Aug 2017 14:55:45 +0200 Subject: [PATCH] Fixed ReleaseWithDebugInfo build. --- cmake/modules/FindTBB.cmake | 2 +- slic3r.sublime-project | 34 +++++++++++++++++++++++++++++++--- 2 files changed, 32 insertions(+), 4 deletions(-) diff --git a/cmake/modules/FindTBB.cmake b/cmake/modules/FindTBB.cmake index 3f226c156..8b498d3ab 100644 --- a/cmake/modules/FindTBB.cmake +++ b/cmake/modules/FindTBB.cmake @@ -102,7 +102,7 @@ if(NOT TBB_FOUND) ################################## if(NOT DEFINED TBB_USE_DEBUG_BUILD) - if(CMAKE_BUILD_TYPE MATCHES "(Debug|DEBUG|debug|RelWithDebInfo|RELWITHDEBINFO|relwithdebinfo)") + if(CMAKE_BUILD_TYPE MATCHES "(Debug|DEBUG|debug)") set(TBB_BUILD_TYPE DEBUG) else() set(TBB_BUILD_TYPE RELEASE) diff --git a/slic3r.sublime-project b/slic3r.sublime-project index 64c511d75..096a4859b 100644 --- a/slic3r.sublime-project +++ b/slic3r.sublime-project @@ -11,7 +11,8 @@ "name": "Run", "working_dir": "$project_path", "file_regex": " at (.*?) line ([0-9]*)", - "shell_cmd": "chdir & perl slic3r.pl --DataDir \"C:\\Users\\Public\\Documents\\Prusa3D\\Slic3r settings MK2\" --gui \"..\\Slic3r-tests\\gap fill torture 20 -rt.stl\"" +// "shell_cmd": "chdir & perl slic3r.pl --DataDir \"C:\\Users\\Public\\Documents\\Prusa3D\\Slic3r settings MK2\" --gui \"..\\Slic3r-tests\\gap fill torture 20 -rt.stl\"" + "shell_cmd": "chdir & perl slic3r.pl" }, { "name": "full", @@ -25,7 +26,7 @@ "file_regex": "^(..[^:]*)\\(([0-9]+)\\)(.*)$", // For GCC: // "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", - "shell_cmd": "chdir & ninja", + "shell_cmd": "chdir & ninja -j 6", "env": { // "PATH": "C:\\Program Files (x86)\\MSBuild\\12.0\\bin\\amd64;C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\VC\\BIN\\amd64;C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\IDE;C:\\Program Files (x86)\\Microsoft Visual Studio 12.0\\Common7\\Tools;%PATH%;c:\\wperl64d\\site\\bin;c:\\wperl64d\\bin", // "PERL_CPANM_HOME": "c:\\wperl64d\\cpanm", @@ -40,7 +41,34 @@ "name": "xs & run", "working_dir": "$project_path/build", "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", - "shell_cmd": "chdir & ninja & cd .. & perl slic3r.pl --gui \"..\\Slic3r-tests\\star3-big2.stl\"" + "shell_cmd": "chdir & ninja -j 6 & cd .. & perl slic3r.pl --gui \"..\\Slic3r-tests\\star3-big2.stl\"" + }, + { + "name": "Slic3r - clean", + "working_dir": "$project_path/build", + "file_regex": "^(..[^:]*)(?::|\\()([0-9]+)(?::|\\))(?:([0-9]+):)?\\s*(.*)", + "shell_cmd": ["chdir & ninja clean"] + }, + { + "name": "run tests", + "working_dir": "$project_path/build", + // for Visual Studio: + "file_regex": "^(..[^:]*)\\(([0-9]+)\\)(.*)$", + "shell_cmd": "chdir & ctest --verbose" + }, + { + "name": "Clean & Configure", + "working_dir": "$project_path", + // for Visual Studio: + "file_regex": "^(..[^:]*)(?::|\\()([0-9]+)(?::|\\))(?:([0-9]+):)?\\s*(.*)", + "shell_cmd": "chdir & rmdir /S /Q build & mkdir build & cd build & cmake -G Ninja .. -DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_RULE_PROGRESS=OFF -DCMAKE_RULE_MESSAGES=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo" + }, + { + "name": "Configure", + "working_dir": "$project_path/build", + // for Visual Studio: + "file_regex": "^(..[^:]*)(?::|\\()([0-9]+)(?::|\\))(?:([0-9]+):)?\\s*(.*)", + "shell_cmd": "cmake -G Ninja .. -DCMAKE_COLOR_MAKEFILE=OFF -DCMAKE_RULE_PROGRESS=OFF -DCMAKE_RULE_MESSAGES=OFF -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo" } ], "folders":