forked from bartvdbraak/blender
c9db7ceff2
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%)
16 lines
296 B
Batchfile
16 lines
296 B
Batchfile
if "%NOBUILD%"=="1" goto EOF
|
|
set HAS_ERROR=
|
|
cd %BUILD_DIR%
|
|
echo %TIME% > buildtime.txt
|
|
ninja install
|
|
if errorlevel 1 (
|
|
set HAS_ERROR=1
|
|
)
|
|
echo %TIME% >>buildtime.txt
|
|
cd %BLENDER_DIR%
|
|
|
|
if "%HAS_ERROR%" == "1" (
|
|
echo Error during build, see %BUILD_DIR%\Build.log for details
|
|
exit /b 1
|
|
)
|
|
:EOF |