Fix T74504: Cycles wrong progress bar with CPU adaptive sampling
[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 "%FORMAT%" == "1" (
30         call "%BLENDER_DIR%\build_files\windows\format.cmd"
31         goto EOF
32 )
33
34 call "%BLENDER_DIR%\build_files\windows\detect_architecture.cmd"
35 if errorlevel 1 goto EOF
36
37 if "%BUILD_VS_YEAR%" == "" (
38         call "%BLENDER_DIR%\build_files\windows\autodetect_msvc.cmd"
39         if errorlevel 1 (
40                 echo Visual Studio not found ^(try with the 'verbose' switch for more information^)
41                 goto EOF
42         )
43 ) else (
44         call "%BLENDER_DIR%\build_files\windows\detect_msvc%BUILD_VS_YEAR%.cmd"
45         if errorlevel 1 (
46                 echo Visual Studio %BUILD_VS_YEAR% not found ^(try with the 'verbose' switch for more information^)
47                 goto EOF
48         )
49 )
50
51 if "%BUILD_UPDATE%" == "1" (
52         call "%BLENDER_DIR%\build_files\windows\check_libraries.cmd"
53         if errorlevel 1 goto EOF
54
55         call "%BLENDER_DIR%\build_files\windows\update_sources.cmd"
56         goto EOF
57 )
58
59 call "%BLENDER_DIR%\build_files\windows\set_build_dir.cmd"
60
61 echo Building blender with VS%BUILD_VS_YEAR% for %BUILD_ARCH% in %BUILD_DIR%
62
63 call "%BLENDER_DIR%\build_files\windows\check_libraries.cmd"
64 if errorlevel 1 goto EOF
65
66 if "%TEST%" == "1" (
67         call "%BLENDER_DIR%\build_files\windows\test.cmd"
68         goto EOF
69 )
70
71 call "%BLENDER_DIR%\build_files\windows\check_submodules.cmd"
72 if errorlevel 1 goto EOF
73
74 if "%BUILD_WITH_NINJA%" == "" (
75         call "%BLENDER_DIR%\build_files\windows\configure_msbuild.cmd"
76         if errorlevel 1 goto EOF
77
78         call "%BLENDER_DIR%\build_files\windows\build_msbuild.cmd"
79         if errorlevel 1 goto EOF
80 ) else (
81         call "%BLENDER_DIR%\build_files\windows\configure_ninja.cmd"
82         if errorlevel 1 goto EOF
83
84         call "%BLENDER_DIR%\build_files\windows\build_ninja.cmd"
85         if errorlevel 1 goto EOF
86 )
87
88 :EOF