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:
authorAaron Carlisle <carlisle.b3d@gmail.com>2021-08-06 20:54:49 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2021-08-06 20:55:14 +0300
commitd245782b80a63f9ff56ea49660cc9c287eb1bbd6 (patch)
tree24edc5ea56d7f4db63305f54104f1e23ba552bd3 /make.bat
parent3fab16fe8eb4a99607e00d5716ba88bf24020354 (diff)
Windows: Add support to compile python api docs from make file
This adds support to compile the html python api docs from the command line by running `make doc_py` matching support between windows and unix. This patch also makes it so the compiler is not needed if you set the `blender_bin` variable, this affects icon generation as well. In the future, I want to move away from generating the build output in the build directory but that can come in a later change. Reviewed By: LazyDodo Differential Revision: https://developer.blender.org/D12144
Diffstat (limited to 'make.bat')
-rw-r--r--make.bat15
1 files changed, 15 insertions, 0 deletions
diff --git a/make.bat b/make.bat
index 75d424202ae..0fda7594e25 100644
--- a/make.bat
+++ b/make.bat
@@ -13,6 +13,14 @@ if errorlevel 1 goto EOF
call "%BLENDER_DIR%\build_files\windows\parse_arguments.cmd" %*
if errorlevel 1 goto EOF
+REM if it is one of the convenience targets and BLENDER_BIN is set
+REM skip compiler detection
+if "%ICONS%%ICONS_GEOM%%DOC_PY%" == "1" (
+ if EXIST "%BLENDER_BIN%" (
+ goto convenience_targets
+ )
+)
+
call "%BLENDER_DIR%\build_files\windows\find_dependencies.cmd"
if errorlevel 1 goto EOF
@@ -58,6 +66,8 @@ if "%BUILD_UPDATE%" == "1" (
call "%BLENDER_DIR%\build_files\windows\set_build_dir.cmd"
+:convenience_targets
+
if "%ICONS%" == "1" (
call "%BLENDER_DIR%\build_files\windows\icons.cmd"
goto EOF
@@ -68,6 +78,11 @@ if "%ICONS_GEOM%" == "1" (
goto EOF
)
+if "%DOC_PY%" == "1" (
+ call "%BLENDER_DIR%\build_files\windows\doc_py.cmd"
+ goto EOF
+)
+
echo Building blender with VS%BUILD_VS_YEAR% for %BUILD_ARCH% in %BUILD_DIR%
call "%BLENDER_DIR%\build_files\windows\check_libraries.cmd"