2 REM This batch file does an out-of-source CMake build in ../build_windows
3 REM This is for users who like to configure & build Blender with a single command.
4 setlocal EnableDelayedExpansion
5 setlocal ENABLEEXTENSIONS
8 call "%BLENDER_DIR%\build_files\windows\reset_variables.cmd"
10 call "%BLENDER_DIR%\build_files\windows\check_spaces_in_path.cmd"
11 if errorlevel 1 goto EOF
13 call "%BLENDER_DIR%\build_files\windows\parse_arguments.cmd" %*
14 if errorlevel 1 goto EOF
16 call "%BLENDER_DIR%\build_files\windows\find_dependencies.cmd"
17 if errorlevel 1 goto EOF
19 if "%BUILD_SHOW_HASHES%" == "1" (
20 call "%BLENDER_DIR%\build_files\windows\show_hashes.cmd"
24 if "%SHOW_HELP%" == "1" (
25 call "%BLENDER_DIR%\build_files\windows\show_help.cmd"
29 if "%BUILD_UPDATE%" == "1" (
30 call "%BLENDER_DIR%\build_files\windows\update_sources.cmd"
34 call "%BLENDER_DIR%\build_files\windows\detect_architecture.cmd"
36 if "%BUILD_VS_YEAR%" == "" (
37 call "%BLENDER_DIR%\build_files\windows\autodetect_msvc.cmd"
39 echo Visual Studio not found ^(try with the 'verbose' switch for more information^)
43 call "%BLENDER_DIR%\build_files\windows\detect_msvc%BUILD_VS_YEAR%.cmd"
45 echo Visual Studio %BUILD_VS_YEAR% not found ^(try with the 'verbose' switch for more information^)
50 call "%BLENDER_DIR%\build_files\windows\set_build_dir.cmd"
52 echo Building blender with VS%BUILD_VS_YEAR% for %BUILD_ARCH% in %BUILD_DIR%
54 call "%BLENDER_DIR%\build_files\windows\check_libraries.cmd"
55 if errorlevel 1 goto EOF
57 call "%BLENDER_DIR%\build_files\windows\check_submodules.cmd"
58 if errorlevel 1 goto EOF
60 if "%BUILD_WITH_NINJA%" == "" (
61 call "%BLENDER_DIR%\build_files\windows\configure_msbuild.cmd"
62 if errorlevel 1 goto EOF
64 call "%BLENDER_DIR%\build_files\windows\build_msbuild.cmd"
65 if errorlevel 1 goto EOF
67 call "%BLENDER_DIR%\build_files\windows\configure_ninja.cmd"
68 if errorlevel 1 goto EOF
70 call "%BLENDER_DIR%\build_files\windows\build_ninja.cmd"
71 if errorlevel 1 goto EOF