Skip to content

Commit 152d7c4

Browse files
committed
Build: Sync libraries and CMake modules from Blender 4.5
The Windows build is still failing in CI for unknown reasons, but better to have some update.
1 parent 0a12a10 commit 152d7c4

File tree

23 files changed

+1282
-602
lines changed

23 files changed

+1282
-602
lines changed

.clang-format

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ PenaltyBreakString: 1000000
161161
# "^\s+[A-Z][A-Z0-9_]+\s*\([^\n]*\)\n\s*\{"
162162
ForEachMacros:
163163
- BEGIN_ANIMFILTER_SUBCHANNELS
164-
- BKE_pbvh_vertex_iter_begin
165-
- BKE_pbvh_face_iter_begin
166164
- BLI_FOREACH_SPARSE_RANGE
167165
- BLI_SMALLSTACK_ITER_BEGIN
168166
- BMO_ITER
@@ -257,12 +255,9 @@ ForEachMacros:
257255
- RNA_PROP_BEGIN
258256
- RNA_STRUCT_BEGIN
259257
- RNA_STRUCT_BEGIN_SKIP_RNA_TYPE
260-
- SCULPT_VERTEX_DUPLICATES_AND_NEIGHBORS_ITER_BEGIN
261-
- SCULPT_VERTEX_NEIGHBORS_ITER_BEGIN
262258
- SEQ_ALL_BEGIN
263259
- SEQ_ITERATOR_FOREACH
264260
- SURFACE_QUAD_ITER_BEGIN
265-
- foreach
266261
- ED_screen_areas_iter
267262
- SLOT_PROBING_BEGIN
268263
- SET_SLOT_PROBING_BEGIN

lib/linux_x64

Submodule linux_x64 updated from eacf548 to c1b8027

lib/macos_arm64

Submodule macos_arm64 updated from e07a7e9 to 441cb7e

lib/macos_x64

Submodule macos_x64 updated from 20af2f4 to c6731b0

lib/windows_arm64

Submodule windows_arm64 updated from 24213b2 to 0d309c4

lib/windows_x64

Submodule windows_x64 updated from cdef408 to a5426d2

src/cmake/Modules/FindGflags.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ macro(GFLAGS_REPORT_NOT_FOUND REASON_MSG)
111111
else()
112112
# Neither QUIETLY nor REQUIRED, use no priority which emits a message
113113
# but continues configuration and allows generation.
114-
message("-- Failed to find gflags - " ${REASON_MSG} ${ARGN})
114+
message(STATUS "Failed to find gflags - " ${REASON_MSG} ${ARGN})
115115
endif()
116116
return()
117117
endmacro()

src/cmake/Modules/FindGlog.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ macro(GLOG_REPORT_NOT_FOUND REASON_MSG)
8383
else()
8484
# Neither QUIETLY nor REQUIRED, use no priority which emits a message
8585
# but continues configuration and allows generation.
86-
message("-- Failed to find glog - " ${REASON_MSG} ${ARGN})
86+
message(STATUS "Failed to find glog - " ${REASON_MSG} ${ARGN})
8787
endif()
8888
return()
8989
endmacro()

src/cmake/Modules/FindHIP.cmake

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,23 @@ if(HIP_HIPCC_EXECUTABLE)
4646
set(HIP_VERSION_MAJOR 0)
4747
set(HIP_VERSION_MINOR 0)
4848
set(HIP_VERSION_PATCH 0)
49-
set(_hipcc_executable ${HIP_HIPCC_EXECUTABLE})
5049

5150
# Get version from the header.
52-
file(STRINGS "${HIP_ROOT_DIR}/include/hip/hip_version.h" _tmp REGEX "^#define HIP_VERSION_MAJOR.*$")
53-
string(REGEX MATCHALL "[0-9]+" HIP_VERSION_MAJOR ${_tmp})
54-
file(STRINGS "${HIP_ROOT_DIR}/include/hip/hip_version.h" _tmp REGEX "^#define HIP_VERSION_MINOR.*$")
55-
string(REGEX MATCHALL "[0-9]+" HIP_VERSION_MINOR ${_tmp})
56-
file(STRINGS "${HIP_ROOT_DIR}/include/hip/hip_version.h" _tmp REGEX "^#define HIP_VERSION_PATCH.*$")
57-
string(REGEX MATCHALL "[0-9]+" HIP_VERSION_PATCH ${_tmp})
58-
unset(_tmp)
51+
set(_hip_version_file "${HIP_ROOT_DIR}/include/hip/hip_version.h")
52+
if(EXISTS ${_hip_version_file})
53+
file(STRINGS ${_hip_version_file} _tmp REGEX "^#define HIP_VERSION_MAJOR.*$")
54+
string(REGEX MATCHALL "[0-9]+" HIP_VERSION_MAJOR ${_tmp})
55+
file(STRINGS ${_hip_version_file} _tmp REGEX "^#define HIP_VERSION_MINOR.*$")
56+
string(REGEX MATCHALL "[0-9]+" HIP_VERSION_MINOR ${_tmp})
57+
file(STRINGS ${_hip_version_file} _tmp REGEX "^#define HIP_VERSION_PATCH.*$")
58+
string(REGEX MATCHALL "[0-9]+" HIP_VERSION_PATCH ${_tmp})
59+
unset(_tmp)
60+
endif()
61+
unset(_hip_version_file)
5962

6063
# Construct full semantic version.
6164
set(HIP_VERSION "${HIP_VERSION_MAJOR}.${HIP_VERSION_MINOR}.${HIP_VERSION_PATCH}")
6265
set(HIP_VERSION_SHORT "${HIP_VERSION_MAJOR}.${HIP_VERSION_MINOR}")
63-
unset(_hip_version_raw)
64-
unset(_hipcc_executable)
6566
endif()
6667

6768
include(FindPackageHandleStandardArgs)

src/cmake/Modules/FindOSL.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ find_program(OSL_COMPILER oslc
8282
PATH_SUFFIXES bin)
8383

8484
get_filename_component(OSL_SHADER_HINT ${OSL_COMPILER} DIRECTORY)
85-
get_filename_component(OSL_SHADER_HINT ${OSL_SHADER_DIR}/../ ABSOLUTE)
8685

8786
find_path(OSL_SHADER_DIR
8887
NAMES

0 commit comments

Comments
 (0)