Compare commits

...

16 Commits

Author SHA1 Message Date
Jaume Bellet 253e328756 patches.py file 2023-12-04 23:39:38 +01:00
Jaume Bellet 685fd732bb rename file 2023-12-04 23:23:28 +01:00
Jaume Bellet 3ac4ce6476 rename id folder 2023-12-04 23:21:12 +01:00
Jaume Bellet 8e4a46918d Merge branch 'bf-blender' into mb-0004-mblender-make-target-linux 2023-12-04 23:15:53 +01:00
Jaume Bellet 00a0e685a8 added files, changes mblender by tornavis 2023-12-04 23:14:42 +01:00
Jaume Bellet 50718e2403 added MB-0009 and MB-0010 2023-11-03 23:22:18 +01:00
Jaume Bellet c6645b9a8a LF eol 2023-11-03 23:15:58 +01:00
Jaume Bellet cddb5b6dab add new line at end of file 2023-11-03 23:14:34 +01:00
Jaume Bellet 4e1da302c8 Merge branch 'bf-blender' into mb-0004-mblender-make-target-linux 2023-11-03 23:12:57 +01:00
Jaume Bellet 5b44e7ec39 previous commit introduced diferent tab settings 2023-10-29 12:51:14 +01:00
Jaume Bellet 23ea87e46d removes self patch from being applied 2023-10-29 12:33:12 +01:00
Jaume Bellet a958c1b359 removed spaces 2023-10-29 00:44:48 +02:00
Jaume Bellet 77c994c19f add mbleder-lite and change to mblender-apply. Added new patches 2023-10-29 00:16:52 +02:00
Jaume Bellet d39ba32551 Merge branch 'bf-blender' into mb-0004-mblender-make-target-linux 2023-10-28 23:08:42 +02:00
Jaume Bellet 06093383fe added ID file 2023-10-27 06:32:03 +02:00
Jaume Bellet 7fcf035b98 apply patch 2023-10-27 06:30:19 +02:00
4 changed files with 124 additions and 0 deletions

View File

@ -22,6 +22,7 @@ Blender Convenience Targets
* developer: Enable faster builds, error checking and tests, recommended for developers.
* ninja: Use ninja build tool for faster builds.
* ccache: Use ccache for faster rebuilds.
* tornavis-lite: Build lite adding mechanical blender deps.
Note: when passing in multiple targets their order is not important.
So for a fast build you can for e.g. run 'make lite ccache ninja'.
@ -126,6 +127,9 @@ Utilities
* update_code:
Updates git and all submodules but not svn.
* tornavis-apply:
Applies mechanical Blender patches.
* format:
Format source code using clang-format & autopep8 (uses PATHS if passed in). For example::
@ -261,6 +265,11 @@ ifneq "$(findstring lite, $(MAKECMDGOALS))" ""
BUILD_DIR:=$(BUILD_DIR)_lite
CMAKE_CONFIG_ARGS:=-C"$(BLENDER_DIR)/build_files/cmake/config/blender_lite.cmake" $(CMAKE_CONFIG_ARGS)
endif
ifneq "$(findstring mbleder-lite, $(MAKECMDGOALS))" ""
BUILD_DIR:=$(BUILD_DIR)_lite
CMAKE_CONFIG_ARGS:=-C"$(BLENDER_DIR)/build_files/cmake/config/blender_lite.cmake" $(CMAKE_CONFIG_ARGS)
CMAKE_CONFIG_ARGS:=-DWITH_BOOST=YES $(CMAKE_CONFIG_ARGS)
endif
ifneq "$(findstring release, $(MAKECMDGOALS))" ""
BUILD_DIR:=$(BUILD_DIR)_release
CMAKE_CONFIG_ARGS:=-C"$(BLENDER_DIR)/build_files/cmake/config/blender_release.cmake" $(CMAKE_CONFIG_ARGS)
@ -392,6 +401,7 @@ bpy: all
developer: all
ninja: all
ccache: all
tornavis-lite: all
# -----------------------------------------------------------------------------
# Build dependencies
@ -575,6 +585,9 @@ format: .FORCE
@$(PYTHON) tools/utils_maintenance/autopep8_format_paths.py --autopep8-command="$(AUTOPEP8)" $(PATHS)
tornavis-apply: .FORCE
@$(PYTHON) ./build_files/utils/apply_tornavis_patches.py
# -----------------------------------------------------------------------------
# Documentation
#

View File

@ -0,0 +1,108 @@
#!/usr/bin/env python3
#
# Mechanical Blender
"""
"make mblender" for applying mblender patches on current source.
"""
import argparse
import sys
import os
import make_utils
from make_utils import call
MB_0001 = "https://www.tornavis.org/mblender_patches/patches/mb-0001-operator-repeat.patch"
MB_0002 = "https://www.tornavis.org/mblender_patches/patches/mb-0002-readme-file.patch"
MB_0003 = "https://www.tornavis.org/mblender_patches/patches/mb-0003-mblender-make-target-windows.patch"
MB_0004 = "https://www.tornavis.org/mblender_patches/patches/mb-0004-mblender-make-target-linux.patch"
MB_0005 = "https://www.tornavis.org/mblender_patches/patches/mb-0005-splash-changes.patch"
MB_0006 = "https://www.tornavis.org/mblender_patches/patches/mb-0006-allow-no-modal-transform.patch"
MB_0007 = "https://www.tornavis.org/mblender_patches/patches/mb-0007-transform-flags.patch"
MB_0008 = "https://www.tornavis.org/mblender_patches/patches/mb-0008-mblender-core.patch"
MB_0009 = "https://www.tornavis.org/mblender_patches/patches/mb-0009-addon-menu-references.patch"
MB_0010 = "https://www.tornavis.org/mblender_patches/patches/mb-0010-url-presets.patch"
MB_0011 = "https://www.tornavis.org/mblender_patches/patches/mb-0011-operator-handlers.patch"
MB_0012 = "https://www.tornavis.org/mblender_patches/patches/mb-0012-custom-splash.patch"
MB_0013 = "https://www.tornavis.org/mblender_patches/patches/mb-0013-blender-top-bar.patch"
MB_0013_BIN = "https://www.tornavis.org/mblender_patches/patches/mb-0013-blender-top-bar.tar"
MB_0014 = "https://www.tornavis.org/mblender_patches/patches/mb-0014-bpy-images.patch"
MB_0015 = "https://www.tornavis.org/mblender_patches/patches/mb-0015-image-ui.patch"
MB_0016 = "https://www.tornavis.org/mblender_patches/patches/mb-0016-create-object-with-custom-orientation.patch"
def parse_arguments() -> argparse.Namespace:
parser = argparse.ArgumentParser()
parser.add_argument("--git-command", default="git")
parser.add_argument("--wget-command", default="wget")
return parser.parse_args()
args = parse_arguments()
git_command = args.git_command
wget_command = args.wget_command
tmp_file = "/tmp/mblender.patch"
tmp_file2 = "/tmp/mblender.tar"
if make_utils.command_missing(git_command):
sys.stderr.write("git not found, can't checkout test files\n")
sys.exit(1)
if make_utils.command_missing(wget_command):
sys.stderr.write("wget not found, used for downloading patches\n")
sys.exit(1)
if __name__ == "__main__":
call([wget_command, MB_0001, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0002, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0003, "-O", tmp_file])
call([git_command, "apply", tmp_file])
# MB-0004 Already applied
call([wget_command, MB_0005, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0006, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0007, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0008, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0009, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0010, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0011, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0012, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0013, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0013_BIN, "-O", tmp_file2])
call(["cmake","-E","tar", "xf", tmp_file2])
call([wget_command, MB_0014, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0015, "-O", tmp_file])
call([git_command, "apply", tmp_file])
call([wget_command, MB_0016, "-O", tmp_file])
call([git_command, "apply", tmp_file])

View File

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

2
tornavis/patches.py Normal file
View File

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