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:
authorBrecht Van Lommel <brecht@blender.org>2021-02-15 19:30:59 +0300
committerBrecht Van Lommel <brecht@blender.org>2021-02-15 22:22:34 +0300
commitae370e292af2f7092db02301e9deb6dd9d7a1441 (patch)
tree272ebe450b2b93c8a01f3fd2e72fd37f224da792 /build_files/build_environment/patches
parent4ce57f6eb82c0c6d3a23201c8df008d29b18b5f7 (diff)
macOS: add Embree, OpenImageDenoise and sse2neon libraries for ARM
This required using a fork of Embree, newer LLVM version, unreleased ISPC version and sse2neon directly from Git. Hopefully over time all the required changes end up in official releases. For now we deviate from other platforms. Based on contributions by Apple and Stefan Werner. Ref D9527, D8237, T78710
Diffstat (limited to 'build_files/build_environment/patches')
-rw-r--r--build_files/build_environment/patches/oidn.diff40
1 files changed, 40 insertions, 0 deletions
diff --git a/build_files/build_environment/patches/oidn.diff b/build_files/build_environment/patches/oidn.diff
new file mode 100644
index 00000000000..10d21d7764b
--- /dev/null
+++ b/build_files/build_environment/patches/oidn.diff
@@ -0,0 +1,40 @@
+diff -Naur oidn-1.3.0/cmake/FindTBB.cmake external_openimagedenoise/cmake/FindTBB.cmake
+--- oidn-1.3.0/cmake/FindTBB.cmake 2021-02-04 16:20:26 -0700
++++ external_openimagedenoise/cmake/FindTBB.cmake 2021-02-12 09:35:53 -0700
+@@ -332,20 +332,22 @@
+ ${TBB_ROOT}/lib/${TBB_ARCH}/${TBB_VCVER}
+ ${TBB_ROOT}/lib
+ )
+-
+ # On Windows, also search the DLL so that the client may install it.
+ file(GLOB DLL_NAMES
+ ${TBB_ROOT}/bin/${TBB_ARCH}/${TBB_VCVER}/${LIB_NAME}.dll
+ ${TBB_ROOT}/bin/${LIB_NAME}.dll
++ ${TBB_ROOT}/lib/${LIB_NAME}.dll
+ ${TBB_ROOT}/redist/${TBB_ARCH}/${TBB_VCVER}/${LIB_NAME}.dll
+ ${TBB_ROOT}/redist/${TBB_ARCH}/${TBB_VCVER}/${LIB_NAME_GLOB1}.dll
+ ${TBB_ROOT}/redist/${TBB_ARCH}/${TBB_VCVER}/${LIB_NAME_GLOB2}.dll
+ ${TBB_ROOT}/../redist/${TBB_ARCH}/tbb/${TBB_VCVER}/${LIB_NAME}.dll
+ ${TBB_ROOT}/../redist/${TBB_ARCH}_win/tbb/${TBB_VCVER}/${LIB_NAME}.dll
+ )
+- list(GET DLL_NAMES 0 DLL_NAME)
+- get_filename_component(${BIN_DIR_VAR} "${DLL_NAME}" DIRECTORY)
+- set(${DLL_VAR} "${DLL_NAME}" CACHE PATH "${COMPONENT_NAME} ${BUILD_CONFIG} dll path")
++ if (DLL_NAMES)
++ list(GET DLL_NAMES 0 DLL_NAME)
++ get_filename_component(${BIN_DIR_VAR} "${DLL_NAME}" DIRECTORY)
++ set(${DLL_VAR} "${DLL_NAME}" CACHE PATH "${COMPONENT_NAME} ${BUILD_CONFIG} dll path")
++ endif()
+ elseif(APPLE)
+ set(LIB_PATHS ${TBB_ROOT}/lib)
+ else()
+--- external_openimagedenoise/cmake/oidn_ispc.cmake 2021-02-15 17:29:34.000000000 +0100
++++ external_openimagedenoise/cmake/oidn_ispc.cmake2 2021-02-15 17:29:28.000000000 +0100
+@@ -98,7 +98,7 @@
+ elseif(OIDN_ARCH STREQUAL "ARM64")
+ set(ISPC_ARCHITECTURE "aarch64")
+ if(APPLE)
+- set(ISPC_TARGET_OS "--target-os=ios")
++ set(ISPC_TARGET_OS "--target-os=macos")
+ endif()
+ endif()