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:
authorlazydodo <github@lazydodo.com>2017-04-26 17:46:35 +0300
committerlazydodo <github@lazydodo.com>2017-04-26 17:46:35 +0300
commitc13acebd61393204747ce11fe641b84d90fa2bb0 (patch)
tree165fbc11bb5364cc9c79ed564298e394ef11fa26 /make.bat
parentbe60e9b8c57223d102bb8b34f1dddc8c454b0ded (diff)
[msvc/make.bat] Provide a convenience rebuild.cmd in the build folder for easy rebuilds.
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat19
1 files changed, 18 insertions, 1 deletions
diff --git a/make.bat b/make.bat
index 9bdab5719da..f818df5fcc1 100644
--- a/make.bat
+++ b/make.bat
@@ -250,6 +250,23 @@ if "%MUST_CONFIGURE%"=="1" (
goto EOF
)
)
+if DEFINED MSVC_VC_DIR echo call "%MSVC_VC_DIR%\vcvarsall.bat" > %BUILD_DIR%\rebuild.cmd
+if DEFINED MSVC_VS_DIR echo call "%MSVC_VS_DIR%\Common7\Tools\VsDevCmd.bat" > %BUILD_DIR%\rebuild.cmd
+echo cmake . >> %BUILD_DIR%\rebuild.cmd
+echo msbuild ^
+ %BUILD_DIR%\Blender.sln ^
+ /target:build ^
+ /property:Configuration=%BUILD_TYPE% ^
+ /maxcpucount ^
+ /verbosity:minimal ^
+ /p:platform=%MSBUILD_PLATFORM% ^
+ /flp:Summary;Verbosity=minimal;LogFile=%BUILD_DIR%\Build.log >> %BUILD_DIR%\rebuild.cmd
+echo msbuild ^
+ %BUILD_DIR%\INSTALL.vcxproj ^
+ /property:Configuration=%BUILD_TYPE% ^
+ /verbosity:minimal ^
+ /p:platform=%MSBUILD_PLATFORM% >> %BUILD_DIR%\rebuild.cmd
+
if "%NOBUILD%"=="1" goto EOF
msbuild ^
@@ -274,7 +291,7 @@ msbuild ^
echo.
echo At any point you can optionally modify your build configuration by editing:
-echo "%BUILD_DIR%\CMakeCache.txt", then run "make" again to build with the changes applied.
+echo "%BUILD_DIR%\CMakeCache.txt", then run "rebuild.cmd" in the build folder to build with the changes applied.
echo.
echo Blender successfully built, run from: "%BUILD_DIR%\bin\%BUILD_TYPE%\blender.exe"
echo.