Skip to content
Snippets Groups Projects
Commit 6f47549f authored by Campbell Barton's avatar Campbell Barton
Browse files

Merge branch 'blender-v2.92-release'

parents c7f63094 d3fe320b
No related branches found
No related tags found
No related merge requests found
...@@ -43,6 +43,12 @@ global_h = set() ...@@ -43,6 +43,12 @@ global_h = set()
global_c = set() global_c = set()
global_refs = {} global_refs = {}
# Flatten `IGNORE_SOURCE_MISSING` to avoid nested looping.
IGNORE_SOURCE_MISSING = [
(k, ig) for k, ig_list in IGNORE_SOURCE_MISSING
for ig in ig_list
]
# Ignore cmake file, path pairs. # Ignore cmake file, path pairs.
global_ignore_source_missing = {} global_ignore_source_missing = {}
for k, v in IGNORE_SOURCE_MISSING: for k, v in IGNORE_SOURCE_MISSING:
...@@ -178,6 +184,8 @@ def cmake_get_src(f): ...@@ -178,6 +184,8 @@ def cmake_get_src(f):
if not l: if not l:
pass pass
elif l in local_ignore_source_missing:
local_ignore_source_missing.remove(l)
elif l.startswith("$"): elif l.startswith("$"):
if context_name == "SRC": if context_name == "SRC":
# assume if it ends with context_name we know about it # assume if it ends with context_name we know about it
...@@ -226,9 +234,6 @@ def cmake_get_src(f): ...@@ -226,9 +234,6 @@ def cmake_get_src(f):
# # Save time. just replace the line # # Save time. just replace the line
# replace_line(f, i - 1, new_path_rel) # replace_line(f, i - 1, new_path_rel)
else:
if l in local_ignore_source_missing:
local_ignore_source_missing.remove(l)
else: else:
raise Exception("non existent include %s:%d -> %s" % (f, i, new_file)) raise Exception("non existent include %s:%d -> %s" % (f, i, new_file))
......
...@@ -34,8 +34,18 @@ IGNORE_SOURCE = ( ...@@ -34,8 +34,18 @@ IGNORE_SOURCE = (
# Ignore cmake file, path pairs. # Ignore cmake file, path pairs.
IGNORE_SOURCE_MISSING = ( IGNORE_SOURCE_MISSING = (
# Use for cycles stand-alone. ( # Use for cycles stand-alone.
("intern/cycles/util/CMakeLists.txt", "../../third_party/numaapi/include"), "intern/cycles/util/CMakeLists.txt", (
"../../third_party/numaapi/include",
)),
( # Use for `WITH_NANOVDB`.
"intern/cycles/kernel/CMakeLists.txt", (
"nanovdb/util/CSampleFromVoxels.h",
"nanovdb/util/SampleFromVoxels.h",
"nanovdb/NanoVDB.h",
"nanovdb/CNanoVDB.h",
),
),
) )
IGNORE_CMAKE = ( IGNORE_CMAKE = (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment