Fix T58221: Spin tool w/ merge first/last crashes
[blender.git] / make.bat
1 @echo off
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
6 set BLENDER_DIR=%~dp0
7
8 call "%BLENDER_DIR%\build_files\windows\reset_variables.cmd"
9
10 call "%BLENDER_DIR%\build_files\windows\check_spaces_in_path.cmd"
11 if errorlevel 1 goto EOF
12
13 call "%BLENDER_DIR%\build_files\windows\parse_arguments.cmd" %*
14 if errorlevel 1 goto EOF
15
16 call "%BLENDER_DIR%\build_files\windows\find_dependencies.cmd"
17 if errorlevel 1 goto EOF
18
19 if "%BUILD_SHOW_HASHES%" == "1" (
20         call "%BLENDER_DIR%\build_files\windows\show_hashes.cmd"
21         goto EOF
22 )
23
24 if "%SHOW_HELP%" == "1" (
25         call "%BLENDER_DIR%\build_files\windows\show_help.cmd"
26         goto EOF
27 )
28
29 if "%BUILD_UPDATE%" == "1" (
30         call "%BLENDER_DIR%\build_files\windows\update_sources.cmd"
31         goto EOF
32 )
33
34 call "%BLENDER_DIR%\build_files\windows\detect_architecture.cmd"
35
36 if "%BUILD_VS_YEAR%" == "" (
37         call "%BLENDER_DIR%\build_files\windows\autodetect_msvc.cmd"
38         if errorlevel 1 (
39                 echo Visual Studio not found ^(try with the 'verbose' switch for more information^)
40                 goto EOF
41         )
42 ) else (
43         call "%BLENDER_DIR%\build_files\windows\detect_msvc%BUILD_VS_YEAR%.cmd"
44         if errorlevel 1 (
45                 echo Visual Studio %BUILD_VS_YEAR% not found ^(try with the 'verbose' switch for more information^)
46                 goto EOF
47         )
48 )
49
50 call "%BLENDER_DIR%\build_files\windows\set_build_dir.cmd"
51
52 echo Building blender with VS%BUILD_VS_YEAR% for %BUILD_ARCH% in %BUILD_DIR%
53
54 call "%BLENDER_DIR%\build_files\windows\check_libraries.cmd"
55 if errorlevel 1 goto EOF
56
57 call "%BLENDER_DIR%\build_files\windows\check_submodules.cmd"
58 if errorlevel 1 goto EOF
59
60 if "%BUILD_WITH_NINJA%" == "" (
61         call "%BLENDER_DIR%\build_files\windows\configure_msbuild.cmd"
62         if errorlevel 1 goto EOF
63
64         call "%BLENDER_DIR%\build_files\windows\build_msbuild.cmd"
65         if errorlevel 1 goto EOF
66 ) else (
67         call "%BLENDER_DIR%\build_files\windows\configure_ninja.cmd"
68         if errorlevel 1 goto EOF
69
70         call "%BLENDER_DIR%\build_files\windows\build_ninja.cmd"
71         if errorlevel 1 goto EOF
72 )
73
74 :EOF