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:
authorCampbell Barton <ideasman42@gmail.com>2016-01-01 13:26:27 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-01-01 13:26:27 +0300
commit0d2b2cd37880ab7a23fdb95a7e2f917fabbc859a (patch)
treea93bd150e61e9c3c2bece1ee3ab9d714db48b50f /make.bat
parentb92f997cadb91de9175ea31f9e36336d19d50030 (diff)
make.bat: sanity checks w/ useful error messages
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat25
1 files changed, 24 insertions, 1 deletions
diff --git a/make.bat b/make.bat
index a95e47be2e5..67b210c39df 100644
--- a/make.bat
+++ b/make.bat
@@ -7,6 +7,27 @@ set BUILD_DIR=%BLENDER_DIR%..\build_windows
set BUILD_TYPE=Release
set BUILD_CMAKE_ARGS=
+REM Sanity Checks
+where /Q msbuild
+if %ERRORLEVEL% NEQ 0 (
+ echo Error: "MSBuild" command not in the PATH.
+ echo You must have MSVC installed and run this from the "Developer Command Prompt"
+ echo ^(available from Visual Studio's Start menu entry^), aborting!
+ goto EOF
+)
+where /Q cmake
+if %ERRORLEVEL% NEQ 0 (
+ echo Error: "CMake" command not in the PATH.
+ echo You must have CMake installed and added to your PATH, aborting!
+ goto EOF
+)
+if NOT EXIST %BLENDER_DIR%..\lib\nul (
+ echo Error: Path to libraries not found "%BLENDER_DIR%..\lib\"
+ echo This is needed for building, aborting!
+ goto EOF
+)
+
+
:argv_loop
if NOT "%1" == "" (
@@ -75,7 +96,9 @@ if "%PROCESSOR_ARCHITECTURE%" == "x86" (
)
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -G "Visual Studio 12 2013 %WINDOWS_ARCH%"
-mkdir %BUILD_DIR%
+if NOT EXIST %BUILD_DIR%\nul (
+ mkdir %BUILD_DIR%
+)
cmake ^
%BUILD_CMAKE_ARGS% ^