Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2018-05-26 06:46:42 +0300
committerRay Molenkamp <github@lazydodo.com>2018-05-26 06:46:42 +0300
commitc9db7ceff2546e0fc2967bafa279cf352d30c510 (patch)
tree118b26858acc89960ab3db29747198fffbe5ab30 /make.bat
parentbae880dc9ee5c6333c9baa12a25423e0451abb4e (diff)
make.bat: Add support for building with ninja.
ninja is an alternative to msbuild designed for fast rebuilds. However there is no IDE support, builds only from the command line. Comparison between msbuild and ninja for a full build, build time in seconds. Full Clean Build msbuild 867.5 Ninja 801.2 Difference -66.3 (-7.6%) Minor Change msbuild 43.0 Ninja 14.9 Difference -28.1 (-64.4%) No Changes msbuild 23.0 Ninja 6.1 Difference -16.9 (-73.5%)
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat16
1 files changed, 12 insertions, 4 deletions
diff --git a/make.bat b/make.bat
index ee65f4ad6c1..577f820438b 100644
--- a/make.bat
+++ b/make.bat
@@ -52,10 +52,18 @@ if errorlevel 1 goto EOF
call "%BLENDER_DIR%\build_files\windows\check_submodules.cmd"
if errorlevel 1 goto EOF
-call "%BLENDER_DIR%\build_files\windows\configure_msbuild.cmd"
-if errorlevel 1 goto EOF
+if "%BUILD_WITH_NINJA%" == "" (
+ call "%BLENDER_DIR%\build_files\windows\configure_msbuild.cmd"
+ if errorlevel 1 goto EOF
-call "%BLENDER_DIR%\build_files\windows\build_msbuild.cmd"
-if errorlevel 1 goto EOF
+ call "%BLENDER_DIR%\build_files\windows\build_msbuild.cmd"
+ if errorlevel 1 goto EOF
+) else (
+ call "%BLENDER_DIR%\build_files\windows\configure_ninja.cmd"
+ if errorlevel 1 goto EOF
+
+ call "%BLENDER_DIR%\build_files\windows\build_ninja.cmd"
+ if errorlevel 1 goto EOF
+)
:EOF \ No newline at end of file