Compare commits

...

27 Commits

Author SHA1 Message Date
Jaume Bellet 136414a5d6 Merge branch 'bf-blender' into mb-0003-mblender-make-target-windows
Conflicts:
	build_files/windows/parse_arguments.cmd
2024-02-23 23:14:25 +01:00
Jaume Bellet 67c94a45c1 added mb-0018 2023-12-09 18:10:37 +01:00
Jaume Bellet 14e3b383d4 changed mb-0017 name 2023-12-07 00:11:12 +01:00
Jaume Bellet 363482588e missing commands 2023-12-06 23:59:39 +01:00
Jaume Bellet b6aa5b1e40 patches.py missing file 2023-12-06 17:02:20 +01:00
Jaume Bellet 7f6438f429 added MB_0017 2023-12-06 17:00:29 +01:00
Jaume Bellet 5288a96368 Merge branch 'bf-blender' into mb-0003-mblender-make-target-windows 2023-12-06 16:57:35 +01:00
Jaume Bellet 43c449fd9f id folder rename 2023-12-03 17:20:04 +01:00
Jaume Bellet 17e442f334 renames from mblender to tornavis 2023-12-03 17:19:25 +01:00
Jaume Bellet df95d9b650 added missing param to curl for mb-0013 2023-11-25 13:40:04 +01:00
Jaume Bellet eaee51ad80 Merge branch 'bf-blender' into mb-0003-mblender-make-target-windows 2023-11-25 13:39:18 +01:00
Jaume Bellet 957a0abd2d added MB-0016 2023-11-22 23:40:58 +01:00
Jaume Bellet d9b84bbd32 added MB-0013 binary 2023-11-22 06:32:23 +01:00
Jaume Bellet 2234921e30 Merge branch 'bf-blender' into mb-0003-mblender-make-target-windows 2023-11-22 06:31:43 +01:00
Jaume Bellet 821e9179aa added MB-0014 and MB-0015 2023-11-19 19:17:37 +01:00
Jaume Bellet 616293a6e5 Merge branch 'bf-blender' into mb-0003-mblender-make-target-windows 2023-11-19 19:11:55 +01:00
Jaume Bellet c302939509 added newline at end of file 2023-11-09 17:54:42 +01:00
Jaume Bellet 846ec66ca7 included up to MB-0013 on mblender-apply 2023-11-09 17:52:57 +01:00
Jaume Bellet cd3c21076d added mb-0009 and mb-0010 2023-11-03 23:29:49 +01:00
Jaume Bellet d5330ee65a Merge branch 'bf-blender' into mb-0003-mblender-make-target-windows 2023-11-03 23:23:44 +01:00
Jaume Bellet d6f25806fa added options on help 2023-10-28 22:58:08 +02:00
Jaume Bellet 73329670d2 removed extra spaces 2023-10-28 17:56:46 +02:00
Jaume Bellet eb845444d3 Merge branch 'bf-blender' into mb-0003-mblender-make-target-windows 2023-10-28 17:03:47 +02:00
Jaume Bellet 49db32c328 adds references to all current patches 2023-10-27 08:33:44 +02:00
Jaume Bellet a28be3f924 added ID file 2023-10-26 23:28:33 +02:00
Jaume Bellet 8fa9c5a485 changed to mblender-apply and added mblender-lite 2023-10-26 23:26:11 +02:00
Jaume Bellet 02ddbdbb85 Apply MB-0003 patch 2023-10-26 23:03:28 +02:00
7 changed files with 135 additions and 0 deletions

View File

@ -0,0 +1,116 @@
if "%GIT%" == "" (
echo Git not found, cannot apply patches.
goto ERR
)
if "%CURL%" == "" (
echo Curl not found, cannot download patches
goto ERR
)
set MB_0001=https://www.tornavis.org/mblender_patches/patches/mb-0001-operator-repeat.patch
set MB_0002=https://www.tornavis.org/mblender_patches/patches/mb-0002-readme-file.patch
set MB_0003=https://www.tornavis.org/mblender_patches/patches/mb-0003-mblender-make-target-windows.patch
set MB_0004=https://www.tornavis.org/mblender_patches/patches/mb-0004-mblender-make-target-linux.patch
set MB_0005=https://www.tornavis.org/mblender_patches/patches/mb-0005-splash-changes.patch
set MB_0006=https://www.tornavis.org/mblender_patches/patches/mb-0006-allow-no-modal-transform.patch
set MB_0007=https://www.tornavis.org/mblender_patches/patches/mb-0007-transform-flags.patch
set MB_0008=https://www.tornavis.org/mblender_patches/patches/mb-0008-mblender-core.patch
set MB_0009=https://www.tornavis.org/mblender_patches/patches/mb-0009-addon-menu-references.patch
set MB_0010=https://www.tornavis.org/mblender_patches/patches/mb-0010-url-presets.patch
set MB_0011=https://www.tornavis.org/mblender_patches/patches/mb-0011-operator-handlers.patch
set MB_0012=https://www.tornavis.org/mblender_patches/patches/mb-0012-custom-splash.patch
set MB_0013=https://www.tornavis.org/mblender_patches/patches/mb-0013-blender-top-bar.patch
set MB_0013_BIN=https://www.tornavis.org/mblender_patches/patches/mb-0013-blender-top-bar.tar
set MB_0014=https://www.tornavis.org/mblender_patches/patches/mb-0014-bpy-images.patch
set MB_0015=https://www.tornavis.org/mblender_patches/patches/mb-0015-image-ui.patch
set MB_0016=https://www.tornavis.org/mblender_patches/patches/mb-0016-create-object-with-custom-orientation.patch
set MB_0017=https://www.tornavis.org/mblender_patches/patches/mb-0017-transform-orientation-origin.patch
set MB_0018=https://www.tornavis.org/mblender_patches/patches/mb-0018-ucs.patch
echo [APPLY] %MB_0001%
"%CURL%" "%MB_0001%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] %MB_0002%
"%CURL%" "%MB_0002%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
REM MB-0003 already applied
echo [APPLY] "%MB_0004%
"%CURL%" "%MB_0004%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY]"%MB_0005%
"%CURL%" "%MB_0005%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0006%
"%CURL%" "%MB_0006%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0007%
"%CURL%" "%MB_0007%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0008%
"%CURL%" "%MB_0008%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0009%
"%CURL%" "%MB_0009%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0010%
"%CURL%" "%MB_0010%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0011%
"%CURL%" "%MB_0011%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0012%
"%CURL%" "%MB_0012%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0013%
"%CURL%" "%MB_0013%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [BINARY] %MB_0013_BIN%
"%CURL%" "%MB_0013_BIN%" --ssl-no-revoke -o data.tar
if errorlevel 1 goto ERR
"%CMAKE%" -E tar xf data.tar
if errorlevel 1 goto ERR
del data.tar
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0014%
"%CURL%" "%MB_0014%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0015%
"%CURL%" "%MB_0015%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0016%
"%CURL%" "%MB_0016%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0017%
"%CURL%" "%MB_0017%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [APPLY] "%MB_0018%
"%CURL%" "%MB_0018%" --ssl-no-revoke | "%GIT%" apply
if errorlevel 1 goto ERR
echo [OK] Now build blender as usually.
:EOF
exit /b 0
:ERR
echo [ERROR] Something went wrong!
exit /b 1

View File

@ -2,6 +2,7 @@ REM find all dependencies and set the corresponding environment variables.
for %%X in (cmake.exe) do (set CMAKE=%%~$PATH:X)
for %%X in (ctest.exe) do (set CTEST=%%~$PATH:X)
for %%X in (git.exe) do (set GIT=%%~$PATH:X)
for %%X in (curl.exe) do (set CURL=%%~$PATH:X)
REM For python, default on 310 but if that does not exist also check
REM the 311, 312 and finally 39 folders to see if those are there, it checks
REM this far ahead to ensure good lib folder compatibility in the future

View File

@ -110,6 +110,13 @@ if NOT "%1" == "" (
) else if "%1" == "doc_py" (
set DOC_PY=1
goto EOF
) else if "%1" == "tornavis-apply" (
set MB_PATCHES=1
goto EOF
) else if "%1" == "tornavis-lite" (
set TARGET=Lite
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -C"%BLENDER_DIR%\build_files\cmake\config\blender_lite.cmake"
set BUILD_CMAKE_ARGS=%BUILD_CMAKE_ARGS% -DWITH_BOOST=On
) else (
echo Command "%1" unknown, aborting!
goto ERR

View File

@ -6,6 +6,7 @@ echo - lite
echo - headless
echo - cycles
echo - bpy
echo - tornavis-lite ^(lite adding tornavis deps^)
echo.
echo Utilities ^(not associated with building^)
echo - clean ^(Target must be set^)
@ -15,6 +16,7 @@ echo - nobuild ^(only generate project files^)
echo - showhash ^(Show git hashes of source tree^)
echo - test ^(Run automated tests with ctest^)
echo - format [path] ^(Format the source using clang-format, path is optional, requires python 3.x to be available^)
echo - tornavis-apply ^(Apply all tornavis' patches^)
echo.
echo Configuration options
echo - verbose ^(enable diagnostic output during configuration^)

View File

@ -16,6 +16,11 @@ if errorlevel 1 goto EOF
call "%BLENDER_DIR%\build_files\windows\find_dependencies.cmd"
if errorlevel 1 goto EOF
if "%MB_PATCHES%" == "1" (
call "%BLENDER_DIR%\build_files\windows\apply_tornavis_patches.cmd"
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" (

View File

@ -0,0 +1 @@
/* Empty File */

3
tornavis/patches.py Normal file
View File

@ -0,0 +1,3 @@
names = []