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 "%SHOW_HELP%" == "1" (
20 call "%BLENDER_DIR%\build_files\windows\show_help.cmd"
24 if "%BUILD_UPDATE%" == "1" (
25 call "%BLENDER_DIR%\build_files\windows\update_sources.cmd"
29 call "%BLENDER_DIR%\build_files\windows\detect_architecture.cmd"
31 if "%BUILD_VS_YEAR%" == "" (
32 call "%BLENDER_DIR%\build_files\windows\autodetect_msvc.cmd"
34 echo Visual Studio not found ^(try with the 'verbose' switch for more information^)
38 call "%BLENDER_DIR%\build_files\windows\detect_msvc%BUILD_VS_YEAR%.cmd"
40 echo Visual Studio %BUILD_VS_YEAR% not found ^(try with the 'verbose' switch for more information^)
45 call "%BLENDER_DIR%\build_files\windows\set_build_dir.cmd"
47 echo Building blender with VS%BUILD_VS_YEAR% for %BUILD_ARCH% in %BUILD_DIR%
49 call "%BLENDER_DIR%\build_files\windows\check_libraries.cmd"
50 if errorlevel 1 goto EOF
52 call "%BLENDER_DIR%\build_files\windows\check_submodules.cmd"
53 if errorlevel 1 goto EOF
55 if "%BUILD_WITH_NINJA%" == "" (
56 call "%BLENDER_DIR%\build_files\windows\configure_msbuild.cmd"
57 if errorlevel 1 goto EOF
59 call "%BLENDER_DIR%\build_files\windows\build_msbuild.cmd"
60 if errorlevel 1 goto EOF
62 call "%BLENDER_DIR%\build_files\windows\configure_ninja.cmd"
63 if errorlevel 1 goto EOF
65 call "%BLENDER_DIR%\build_files\windows\build_ninja.cmd"
66 if errorlevel 1 goto EOF