From 57ad866d81daff62c1035cfe7e1ae6257b0a91d5 Mon Sep 17 00:00:00 2001 From: Ray Molenkamp Date: Mon, 10 Jul 2023 18:44:19 +0200 Subject: [PATCH] Cleanup: CMake: Modernize bf_guardedalloc dependencies Pretty straightforward - Removes any guardedalloc paths from INC - Adds a dependency though LIB Pull Request: https://projects.blender.org/blender/blender/pulls/109925 --- intern/clog/CMakeLists.txt | 2 +- intern/cycles/blender/CMakeLists.txt | 2 +- intern/guardedalloc/CMakeLists.txt | 4 ++-- intern/mantaflow/CMakeLists.txt | 2 +- intern/opencolorio/CMakeLists.txt | 2 +- intern/opensubdiv/CMakeLists.txt | 2 +- intern/openvdb/CMakeLists.txt | 2 +- intern/quadriflow/CMakeLists.txt | 2 +- source/blender/asset_system/CMakeLists.txt | 2 +- source/blender/blenfont/CMakeLists.txt | 3 +-- source/blender/blenkernel/CMakeLists.txt | 3 +-- source/blender/blenlib/CMakeLists.txt | 3 +-- source/blender/blenlib/tests/performance/CMakeLists.txt | 3 +-- source/blender/blenloader/CMakeLists.txt | 2 +- source/blender/blentranslation/CMakeLists.txt | 2 +- source/blender/blentranslation/msgfmt/CMakeLists.txt | 5 ++--- source/blender/bmesh/CMakeLists.txt | 2 +- source/blender/compositor/CMakeLists.txt | 2 +- .../blender/compositor/realtime_compositor/CMakeLists.txt | 2 +- source/blender/depsgraph/CMakeLists.txt | 2 +- source/blender/draw/CMakeLists.txt | 2 +- source/blender/editors/animation/CMakeLists.txt | 2 +- source/blender/editors/armature/CMakeLists.txt | 2 +- source/blender/editors/asset/CMakeLists.txt | 2 +- source/blender/editors/curve/CMakeLists.txt | 2 +- source/blender/editors/curves/CMakeLists.txt | 2 +- source/blender/editors/geometry/CMakeLists.txt | 2 +- source/blender/editors/gizmo_library/CMakeLists.txt | 2 +- source/blender/editors/gpencil_legacy/CMakeLists.txt | 2 +- source/blender/editors/grease_pencil/CMakeLists.txt | 2 +- source/blender/editors/interface/CMakeLists.txt | 2 +- source/blender/editors/io/CMakeLists.txt | 2 +- source/blender/editors/lattice/CMakeLists.txt | 2 +- source/blender/editors/mask/CMakeLists.txt | 2 +- source/blender/editors/mesh/CMakeLists.txt | 2 +- source/blender/editors/metaball/CMakeLists.txt | 2 +- source/blender/editors/object/CMakeLists.txt | 2 +- source/blender/editors/physics/CMakeLists.txt | 2 +- source/blender/editors/render/CMakeLists.txt | 2 +- source/blender/editors/scene/CMakeLists.txt | 2 +- source/blender/editors/screen/CMakeLists.txt | 2 +- source/blender/editors/sculpt_paint/CMakeLists.txt | 2 +- source/blender/editors/sound/CMakeLists.txt | 2 +- source/blender/editors/space_action/CMakeLists.txt | 2 +- source/blender/editors/space_api/CMakeLists.txt | 2 +- source/blender/editors/space_buttons/CMakeLists.txt | 2 +- source/blender/editors/space_clip/CMakeLists.txt | 2 +- source/blender/editors/space_console/CMakeLists.txt | 2 +- source/blender/editors/space_file/CMakeLists.txt | 2 +- source/blender/editors/space_graph/CMakeLists.txt | 2 +- source/blender/editors/space_image/CMakeLists.txt | 2 +- source/blender/editors/space_info/CMakeLists.txt | 2 +- source/blender/editors/space_nla/CMakeLists.txt | 2 +- source/blender/editors/space_node/CMakeLists.txt | 2 +- source/blender/editors/space_outliner/CMakeLists.txt | 2 +- source/blender/editors/space_script/CMakeLists.txt | 2 +- source/blender/editors/space_sequencer/CMakeLists.txt | 2 +- source/blender/editors/space_spreadsheet/CMakeLists.txt | 2 +- source/blender/editors/space_statusbar/CMakeLists.txt | 2 +- source/blender/editors/space_text/CMakeLists.txt | 2 +- source/blender/editors/space_topbar/CMakeLists.txt | 2 +- source/blender/editors/space_userpref/CMakeLists.txt | 2 +- source/blender/editors/space_view3d/CMakeLists.txt | 2 +- source/blender/editors/transform/CMakeLists.txt | 2 +- source/blender/editors/undo/CMakeLists.txt | 2 +- source/blender/editors/util/CMakeLists.txt | 2 +- source/blender/editors/uvedit/CMakeLists.txt | 2 +- source/blender/freestyle/CMakeLists.txt | 2 +- source/blender/functions/CMakeLists.txt | 2 +- source/blender/geometry/CMakeLists.txt | 2 +- source/blender/gpencil_modifiers_legacy/CMakeLists.txt | 2 +- source/blender/gpu/CMakeLists.txt | 2 +- source/blender/ikplugin/CMakeLists.txt | 2 +- source/blender/imbuf/CMakeLists.txt | 3 +-- source/blender/imbuf/intern/cineon/CMakeLists.txt | 2 +- source/blender/imbuf/intern/oiio/CMakeLists.txt | 2 +- source/blender/imbuf/intern/openexr/CMakeLists.txt | 2 +- source/blender/io/alembic/CMakeLists.txt | 2 +- source/blender/io/avi/CMakeLists.txt | 2 +- source/blender/io/collada/CMakeLists.txt | 2 +- source/blender/io/common/CMakeLists.txt | 2 +- source/blender/io/gpencil/CMakeLists.txt | 2 +- source/blender/io/ply/CMakeLists.txt | 2 +- source/blender/io/stl/CMakeLists.txt | 2 +- source/blender/io/usd/CMakeLists.txt | 2 +- source/blender/io/wavefront_obj/CMakeLists.txt | 2 +- source/blender/makesdna/intern/CMakeLists.txt | 7 ++++--- source/blender/makesrna/intern/CMakeLists.txt | 3 ++- source/blender/modifiers/CMakeLists.txt | 2 +- source/blender/nodes/CMakeLists.txt | 2 +- source/blender/nodes/composite/CMakeLists.txt | 2 +- source/blender/nodes/function/CMakeLists.txt | 2 +- source/blender/nodes/geometry/CMakeLists.txt | 2 +- source/blender/nodes/shader/CMakeLists.txt | 2 +- source/blender/nodes/texture/CMakeLists.txt | 2 +- source/blender/python/bmesh/CMakeLists.txt | 2 +- source/blender/python/generic/CMakeLists.txt | 2 +- source/blender/python/gpu/CMakeLists.txt | 2 +- source/blender/python/intern/CMakeLists.txt | 2 +- source/blender/python/mathutils/CMakeLists.txt | 2 +- source/blender/render/CMakeLists.txt | 2 +- source/blender/sequencer/CMakeLists.txt | 2 +- source/blender/shader_fx/CMakeLists.txt | 2 +- source/blender/simulation/CMakeLists.txt | 2 +- source/blender/windowmanager/CMakeLists.txt | 2 +- source/creator/CMakeLists.txt | 2 +- tests/gtests/testing/CMakeLists.txt | 3 +-- 107 files changed, 113 insertions(+), 118 deletions(-) diff --git a/intern/clog/CMakeLists.txt b/intern/clog/CMakeLists.txt index 51d4093b200..c379f122938 100644 --- a/intern/clog/CMakeLists.txt +++ b/intern/clog/CMakeLists.txt @@ -5,7 +5,6 @@ set(INC . ../atomic - ../guardedalloc ) set(INC_SYS @@ -19,6 +18,7 @@ set(SRC ) set(LIB + PRIVATE bf::intern::guardedalloc ) # Disabled for makesdna/makesrna. diff --git a/intern/cycles/blender/CMakeLists.txt b/intern/cycles/blender/CMakeLists.txt index 68fc84e6bf9..a4dabb02c6b 100644 --- a/intern/cycles/blender/CMakeLists.txt +++ b/intern/cycles/blender/CMakeLists.txt @@ -4,7 +4,6 @@ set(INC .. - ../../guardedalloc ../../mikktspace ../../../source/blender/makesrna ../../../source/blender/blenkernel @@ -60,6 +59,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc cycles_bvh cycles_device cycles_graph diff --git a/intern/guardedalloc/CMakeLists.txt b/intern/guardedalloc/CMakeLists.txt index f96156e3171..3c394176afe 100644 --- a/intern/guardedalloc/CMakeLists.txt +++ b/intern/guardedalloc/CMakeLists.txt @@ -7,8 +7,7 @@ if(HAVE_MALLOC_STATS_H) endif() set(INC - . - .. + PUBLIC . ) set(INC_SYS @@ -55,6 +54,7 @@ if(WITH_MEM_JEMALLOC AND NOT ("${JEMALLOC_VERSION}" VERSION_LESS "5.0.0")) endif() blender_add_lib(bf_intern_guardedalloc "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") +add_library(bf::intern::guardedalloc ALIAS bf_intern_guardedalloc) # Override C++ alloc, optional. if(WITH_CXX_GUARDEDALLOC) diff --git a/intern/mantaflow/CMakeLists.txt b/intern/mantaflow/CMakeLists.txt index e43c91f7739..7804a3ea51c 100644 --- a/intern/mantaflow/CMakeLists.txt +++ b/intern/mantaflow/CMakeLists.txt @@ -35,7 +35,6 @@ set(INC_SYS ../../extern/mantaflow/helper/util ../../extern/mantaflow/helper/pwrapper ../../extern/mantaflow/preprocessed - ../guardedalloc ${PYTHON_INCLUDE_DIRS} ${ZLIB_INCLUDE_DIRS} ) @@ -74,6 +73,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc extern_mantaflow ${PYTHON_LINKFLAGS} diff --git a/intern/opencolorio/CMakeLists.txt b/intern/opencolorio/CMakeLists.txt index 9376b7fe2e6..2baaca429f5 100644 --- a/intern/opencolorio/CMakeLists.txt +++ b/intern/opencolorio/CMakeLists.txt @@ -4,7 +4,6 @@ set(INC . - ../guardedalloc ../../source/blender/blenlib ../../source/blender/gpu ../../source/blender/gpu/intern @@ -25,6 +24,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_OPENCOLORIO) diff --git a/intern/opensubdiv/CMakeLists.txt b/intern/opensubdiv/CMakeLists.txt index 2dd9b256b9f..53b89e47c5c 100644 --- a/intern/opensubdiv/CMakeLists.txt +++ b/intern/opensubdiv/CMakeLists.txt @@ -4,7 +4,6 @@ set(INC . - ../guardedalloc ) set(INC_SYS @@ -19,6 +18,7 @@ set(SRC ) set(LIB + PRIVATE bf::intern::guardedalloc ) if(WITH_OPENSUBDIV) diff --git a/intern/openvdb/CMakeLists.txt b/intern/openvdb/CMakeLists.txt index 25cd1497f73..2e6af1fedd3 100644 --- a/intern/openvdb/CMakeLists.txt +++ b/intern/openvdb/CMakeLists.txt @@ -4,7 +4,6 @@ set(INC . - ../guardedalloc ) set(INC_SYS @@ -15,6 +14,7 @@ set(SRC ) set(LIB + PRIVATE bf::intern::guardedalloc ) if(WITH_OPENVDB) diff --git a/intern/quadriflow/CMakeLists.txt b/intern/quadriflow/CMakeLists.txt index 363272df833..6aa52ddc349 100644 --- a/intern/quadriflow/CMakeLists.txt +++ b/intern/quadriflow/CMakeLists.txt @@ -4,7 +4,6 @@ set(INC . - ../guardedalloc ) set(INC_SYS @@ -19,6 +18,7 @@ set(SRC ) set(LIB + PRIVATE bf::intern::guardedalloc extern_quadriflow ${BOOST_LIBRARIES} ) diff --git a/source/blender/asset_system/CMakeLists.txt b/source/blender/asset_system/CMakeLists.txt index 24ec2314817..ffd4b362ebb 100644 --- a/source/blender/asset_system/CMakeLists.txt +++ b/source/blender/asset_system/CMakeLists.txt @@ -8,7 +8,6 @@ set(INC ../blenkernel ../blenlib ../../../intern/clog - ../../../intern/guardedalloc ) set(INC_SYS @@ -43,6 +42,7 @@ set(SRC set(LIB bf_blenkernel PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/blenfont/CMakeLists.txt b/source/blender/blenfont/CMakeLists.txt index 9a5b664128e..62a89f62000 100644 --- a/source/blender/blenfont/CMakeLists.txt +++ b/source/blender/blenfont/CMakeLists.txt @@ -10,7 +10,6 @@ set(INC ../gpu ../imbuf ../makesrna - ../../../intern/guardedalloc ) set(INC_SYS @@ -35,7 +34,7 @@ set(SRC set(LIB PRIVATE bf::dna bf_gpu - bf_intern_guardedalloc + PRIVATE bf::intern::guardedalloc ${FREETYPE_LIBRARIES} ${BROTLI_LIBRARIES} ) diff --git a/source/blender/blenkernel/CMakeLists.txt b/source/blender/blenkernel/CMakeLists.txt index 967c31d53d1..e4ab816656a 100644 --- a/source/blender/blenkernel/CMakeLists.txt +++ b/source/blender/blenkernel/CMakeLists.txt @@ -26,7 +26,6 @@ set(INC ../simulation ../../../intern/eigen ../../../intern/ghost - ../../../intern/guardedalloc ../../../intern/iksolver/extern ../../../intern/clog ../../../intern/libmv @@ -545,7 +544,7 @@ set(LIB bf_imbuf bf_intern_clog bf_intern_ghost - bf_intern_guardedalloc + PRIVATE bf::intern::guardedalloc bf_intern_libmv # Uses stub when disabled. bf_intern_mikktspace bf_intern_opensubdiv # Uses stub when disabled. diff --git a/source/blender/blenlib/CMakeLists.txt b/source/blender/blenlib/CMakeLists.txt index 4c6c79d86f1..1bc23361a30 100644 --- a/source/blender/blenlib/CMakeLists.txt +++ b/source/blender/blenlib/CMakeLists.txt @@ -10,7 +10,6 @@ set(INC . .. ../../../intern/eigen - ../../../intern/guardedalloc ) set(INC_SYS @@ -390,7 +389,7 @@ set(SRC set(LIB PUBLIC bf::dna bf_intern_eigen - bf_intern_guardedalloc + PRIVATE bf::intern::guardedalloc extern_wcwidth PRIVATE bf::intern::atomic ${ZLIB_LIBRARIES} diff --git a/source/blender/blenlib/tests/performance/CMakeLists.txt b/source/blender/blenlib/tests/performance/CMakeLists.txt index 9d184047e94..51d5fd46b02 100644 --- a/source/blender/blenlib/tests/performance/CMakeLists.txt +++ b/source/blender/blenlib/tests/performance/CMakeLists.txt @@ -6,7 +6,6 @@ set(INC . .. ../.. - ../../../../../intern/guardedalloc ) set(INC_SYS @@ -15,7 +14,7 @@ set(INC_SYS set(LIB PRIVATE bf_blenlib PRIVATE bf::dna - PRIVATE bf_intern_guardedalloc + PRIVATE PRIVATE bf::intern::guardedalloc PRIVATE bf::intern::atomic ) diff --git a/source/blender/blenloader/CMakeLists.txt b/source/blender/blenloader/CMakeLists.txt index e0242a7e737..1ba4ecf5820 100644 --- a/source/blender/blenloader/CMakeLists.txt +++ b/source/blender/blenloader/CMakeLists.txt @@ -19,7 +19,6 @@ set(INC ../sequencer ../windowmanager ../../../intern/clog - ../../../intern/guardedalloc ../bmesh # RNA_prototypes.h @@ -65,6 +64,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_BUILDINFO) diff --git a/source/blender/blentranslation/CMakeLists.txt b/source/blender/blentranslation/CMakeLists.txt index 5303aa03e3b..e04fb5a7091 100644 --- a/source/blender/blentranslation/CMakeLists.txt +++ b/source/blender/blentranslation/CMakeLists.txt @@ -8,7 +8,6 @@ set(INC ../blenlib ../imbuf ../makesrna - ../../../intern/guardedalloc ../../../intern/locale ) @@ -27,6 +26,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_INTERNATIONAL) diff --git a/source/blender/blentranslation/msgfmt/CMakeLists.txt b/source/blender/blentranslation/msgfmt/CMakeLists.txt index c937af47e87..67bf0436f22 100644 --- a/source/blender/blentranslation/msgfmt/CMakeLists.txt +++ b/source/blender/blentranslation/msgfmt/CMakeLists.txt @@ -6,7 +6,6 @@ # Build msgfmt executable set(INC - ../../../../intern/guardedalloc ../../blenlib ) @@ -15,8 +14,8 @@ set(SRC ) set(LIB - bf_blenlib - bf_intern_guardedalloc + PRIVATE bf_blenlib + PRIVATE bf::intern::guardedalloc ${ZLIB_LIBRARIES} ${PLATFORM_LINKLIBS}) diff --git a/source/blender/bmesh/CMakeLists.txt b/source/blender/bmesh/CMakeLists.txt index ee27f3378ea..162ce1b69f9 100644 --- a/source/blender/bmesh/CMakeLists.txt +++ b/source/blender/bmesh/CMakeLists.txt @@ -10,7 +10,6 @@ set(INC ../depsgraph ../../../intern/clog ../../../intern/eigen - ../../../intern/guardedalloc ../../../extern/rangetree ) @@ -171,6 +170,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc extern_rangetree PRIVATE bf::intern::atomic ) diff --git a/source/blender/compositor/CMakeLists.txt b/source/blender/compositor/CMakeLists.txt index 6f556a0ba94..09ab6c1b8aa 100644 --- a/source/blender/compositor/CMakeLists.txt +++ b/source/blender/compositor/CMakeLists.txt @@ -24,7 +24,6 @@ if(WITH_COMPOSITOR_CPU) ../render/intern ../../../extern/clew/include ../../../intern/clog - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -599,6 +598,7 @@ if(WITH_COMPOSITOR_CPU) bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc extern_clew PRIVATE bf::intern::atomic ) diff --git a/source/blender/compositor/realtime_compositor/CMakeLists.txt b/source/blender/compositor/realtime_compositor/CMakeLists.txt index 7b780ecfa47..3340bef5609 100644 --- a/source/blender/compositor/realtime_compositor/CMakeLists.txt +++ b/source/blender/compositor/realtime_compositor/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../nodes ../../render ../../gpu/intern - ../../../../intern/guardedalloc ) @@ -100,6 +99,7 @@ set(SRC set(LIB PRIVATE bf::dna bf_gpu + PRIVATE bf::intern::guardedalloc bf_nodes bf_imbuf bf_render diff --git a/source/blender/depsgraph/CMakeLists.txt b/source/blender/depsgraph/CMakeLists.txt index 8fcfd8a4877..a90e04c1f74 100644 --- a/source/blender/depsgraph/CMakeLists.txt +++ b/source/blender/depsgraph/CMakeLists.txt @@ -13,7 +13,6 @@ set(INC ../modifiers ../sequencer ../windowmanager - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -156,6 +155,7 @@ set(LIB bf_blenkernel PRIVATE bf::dna PRIVATE bf::intern::atomic + PRIVATE bf::intern::guardedalloc ) if(WITH_PYTHON) diff --git a/source/blender/draw/CMakeLists.txt b/source/blender/draw/CMakeLists.txt index 0b6615a0ab4..cc7b63fc600 100644 --- a/source/blender/draw/CMakeLists.txt +++ b/source/blender/draw/CMakeLists.txt @@ -29,7 +29,6 @@ set(INC ../windowmanager ../../../intern/clog - ../../../intern/guardedalloc ../../../intern/opensubdiv ) @@ -357,6 +356,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_realtime_compositor bf_windowmanager PRIVATE bf::intern::atomic diff --git a/source/blender/editors/animation/CMakeLists.txt b/source/blender/editors/animation/CMakeLists.txt index 232d2a95cff..f9379972896 100644 --- a/source/blender/editors/animation/CMakeLists.txt +++ b/source/blender/editors/animation/CMakeLists.txt @@ -13,7 +13,6 @@ set(INC ../../sequencer ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -48,6 +47,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_PYTHON) diff --git a/source/blender/editors/armature/CMakeLists.txt b/source/blender/editors/armature/CMakeLists.txt index 11222730a43..c61edb26e6e 100644 --- a/source/blender/editors/armature/CMakeLists.txt +++ b/source/blender/editors/armature/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../windowmanager ../../../../intern/clog ../../../../intern/eigen - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -51,6 +50,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/asset/CMakeLists.txt b/source/blender/editors/asset/CMakeLists.txt index 324818f35d6..f2866b5747d 100644 --- a/source/blender/editors/asset/CMakeLists.txt +++ b/source/blender/editors/asset/CMakeLists.txt @@ -13,7 +13,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -54,6 +53,7 @@ set(LIB bf_blenkernel bf_blenloader PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_editor_asset "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/editors/curve/CMakeLists.txt b/source/blender/editors/curve/CMakeLists.txt index 99ccdfa662d..03429d8a910 100644 --- a/source/blender/editors/curve/CMakeLists.txt +++ b/source/blender/editors/curve/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ../../../../extern/curve_fit_nd # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -40,6 +39,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc extern_curve_fit_nd ) diff --git a/source/blender/editors/curves/CMakeLists.txt b/source/blender/editors/curves/CMakeLists.txt index fb6147794cf..6f8924d1410 100644 --- a/source/blender/editors/curves/CMakeLists.txt +++ b/source/blender/editors/curves/CMakeLists.txt @@ -14,7 +14,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ../../bmesh # RNA_prototypes.h @@ -35,6 +34,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_TBB) diff --git a/source/blender/editors/geometry/CMakeLists.txt b/source/blender/editors/geometry/CMakeLists.txt index 7468ca62a73..fb6d70d2711 100644 --- a/source/blender/editors/geometry/CMakeLists.txt +++ b/source/blender/editors/geometry/CMakeLists.txt @@ -13,7 +13,6 @@ set(INC ../../makesrna ../../nodes ../../windowmanager - ../../../../intern/guardedalloc ../../bmesh # RNA_prototypes.h @@ -36,6 +35,7 @@ set(LIB bf_depsgraph PRIVATE bf::dna bf_editor_object + PRIVATE bf::intern::guardedalloc bf_windowmanager ) diff --git a/source/blender/editors/gizmo_library/CMakeLists.txt b/source/blender/editors/gizmo_library/CMakeLists.txt index 659057dd8a7..71e5971861d 100644 --- a/source/blender/editors/gizmo_library/CMakeLists.txt +++ b/source/blender/editors/gizmo_library/CMakeLists.txt @@ -14,7 +14,6 @@ set(INC ../../windowmanager ../../../../intern/clog ../../../../intern/eigen - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -44,6 +43,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/gpencil_legacy/CMakeLists.txt b/source/blender/editors/gpencil_legacy/CMakeLists.txt index 3ace2b5aaa8..7c932f57a98 100644 --- a/source/blender/editors/gpencil_legacy/CMakeLists.txt +++ b/source/blender/editors/gpencil_legacy/CMakeLists.txt @@ -13,7 +13,6 @@ set(INC ../../imbuf ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ../../bmesh # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -62,6 +61,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_POTRACE) diff --git a/source/blender/editors/grease_pencil/CMakeLists.txt b/source/blender/editors/grease_pencil/CMakeLists.txt index caac2312729..07987fd6139 100644 --- a/source/blender/editors/grease_pencil/CMakeLists.txt +++ b/source/blender/editors/grease_pencil/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../imbuf ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -33,6 +32,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_editor_grease_pencil "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/editors/interface/CMakeLists.txt b/source/blender/editors/interface/CMakeLists.txt index 081394a2826..0e1eee1c046 100644 --- a/source/blender/editors/interface/CMakeLists.txt +++ b/source/blender/editors/interface/CMakeLists.txt @@ -22,7 +22,6 @@ set(INC ../../render ../../windowmanager ../../../../intern/ghost - ../../../../intern/guardedalloc ../../bmesh # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -100,6 +99,7 @@ set(LIB bf_blenlib PRIVATE bf::dna bf_editor_datafiles + PRIVATE bf::intern::guardedalloc ) if(WITH_INTERNATIONAL) diff --git a/source/blender/editors/io/CMakeLists.txt b/source/blender/editors/io/CMakeLists.txt index d91be1e45b3..790ea2fe85a 100644 --- a/source/blender/editors/io/CMakeLists.txt +++ b/source/blender/editors/io/CMakeLists.txt @@ -19,7 +19,6 @@ set(INC ../../io/wavefront_obj ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -54,6 +53,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_OPENCOLLADA) diff --git a/source/blender/editors/lattice/CMakeLists.txt b/source/blender/editors/lattice/CMakeLists.txt index dec7351562e..badfa3ca632 100644 --- a/source/blender/editors/lattice/CMakeLists.txt +++ b/source/blender/editors/lattice/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../render ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ) set(INC_SYS @@ -29,6 +28,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_editor_lattice "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/editors/mask/CMakeLists.txt b/source/blender/editors/mask/CMakeLists.txt index 486b20f90b7..2484da50d13 100644 --- a/source/blender/editors/mask/CMakeLists.txt +++ b/source/blender/editors/mask/CMakeLists.txt @@ -10,7 +10,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -32,6 +31,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/mesh/CMakeLists.txt b/source/blender/editors/mesh/CMakeLists.txt index 26f1cca7fd3..329dd69da1f 100644 --- a/source/blender/editors/mesh/CMakeLists.txt +++ b/source/blender/editors/mesh/CMakeLists.txt @@ -20,7 +20,6 @@ set(INC ../../render ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -66,6 +65,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_windowmanager ) diff --git a/source/blender/editors/metaball/CMakeLists.txt b/source/blender/editors/metaball/CMakeLists.txt index 4e284149d51..37da863be8f 100644 --- a/source/blender/editors/metaball/CMakeLists.txt +++ b/source/blender/editors/metaball/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../render ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ) set(INC_SYS @@ -29,6 +28,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_editor_metaball "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/editors/object/CMakeLists.txt b/source/blender/editors/object/CMakeLists.txt index 1f2bb9a9d30..3b1148c3496 100644 --- a/source/blender/editors/object/CMakeLists.txt +++ b/source/blender/editors/object/CMakeLists.txt @@ -22,7 +22,6 @@ set(INC ../../shader_fx ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -68,6 +67,7 @@ set(LIB PRIVATE bf::dna bf_editor_mesh bf_editor_grease_pencil + PRIVATE bf::intern::guardedalloc bf_render bf_windowmanager ) diff --git a/source/blender/editors/physics/CMakeLists.txt b/source/blender/editors/physics/CMakeLists.txt index 915bd11dfed..1134cc3933d 100644 --- a/source/blender/editors/physics/CMakeLists.txt +++ b/source/blender/editors/physics/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ../../../../intern/mantaflow/extern # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -42,6 +41,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_MOD_FLUID) diff --git a/source/blender/editors/render/CMakeLists.txt b/source/blender/editors/render/CMakeLists.txt index db37f17a95e..16f9af624cc 100644 --- a/source/blender/editors/render/CMakeLists.txt +++ b/source/blender/editors/render/CMakeLists.txt @@ -18,7 +18,6 @@ set(INC ../../render ../../sequencer ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -38,6 +37,7 @@ set(SRC set(LIB PRIVATE bf::dna bf_draw + PRIVATE bf::intern::guardedalloc ) if(WITH_HEADLESS) diff --git a/source/blender/editors/scene/CMakeLists.txt b/source/blender/editors/scene/CMakeLists.txt index 99a1f0fb0f8..d103706f60b 100644 --- a/source/blender/editors/scene/CMakeLists.txt +++ b/source/blender/editors/scene/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../makesrna ../../sequencer ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -26,6 +25,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/screen/CMakeLists.txt b/source/blender/editors/screen/CMakeLists.txt index 05a11e7d191..563eac27342 100644 --- a/source/blender/editors/screen/CMakeLists.txt +++ b/source/blender/editors/screen/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../makesrna ../../sequencer ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -47,6 +46,7 @@ set(LIB PRIVATE bf::dna bf_editor_datafiles bf_editor_space_sequencer + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/sculpt_paint/CMakeLists.txt b/source/blender/editors/sculpt_paint/CMakeLists.txt index b695459c838..6748c1c76a7 100644 --- a/source/blender/editors/sculpt_paint/CMakeLists.txt +++ b/source/blender/editors/sculpt_paint/CMakeLists.txt @@ -21,7 +21,6 @@ set(INC ../../windowmanager ../../../../intern/clog ../../../../intern/eigen - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -98,6 +97,7 @@ set(LIB bf_blenlib PRIVATE bf::dna PRIVATE bf::intern::atomic + PRIVATE bf::intern::guardedalloc ) if(WITH_TBB) diff --git a/source/blender/editors/sound/CMakeLists.txt b/source/blender/editors/sound/CMakeLists.txt index 20858484ac8..38728965d9f 100644 --- a/source/blender/editors/sound/CMakeLists.txt +++ b/source/blender/editors/sound/CMakeLists.txt @@ -10,7 +10,6 @@ set(INC ../../makesrna ../../sequencer ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -29,6 +28,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_AUDASPACE) diff --git a/source/blender/editors/space_action/CMakeLists.txt b/source/blender/editors/space_action/CMakeLists.txt index 9732c865c7c..f2e0af7b6ef 100644 --- a/source/blender/editors/space_action/CMakeLists.txt +++ b/source/blender/editors/space_action/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -37,6 +36,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_api/CMakeLists.txt b/source/blender/editors/space_api/CMakeLists.txt index 5959e378420..c6f83416165 100644 --- a/source/blender/editors/space_api/CMakeLists.txt +++ b/source/blender/editors/space_api/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -44,6 +43,7 @@ set(LIB bf_editor_space_topbar bf_editor_space_userpref bf_editor_space_view3d + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_editor_space_api "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/editors/space_buttons/CMakeLists.txt b/source/blender/editors/space_buttons/CMakeLists.txt index 4dfdef96eb6..efc506b7484 100644 --- a/source/blender/editors/space_buttons/CMakeLists.txt +++ b/source/blender/editors/space_buttons/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ../../bmesh # RNA_prototypes.h @@ -32,6 +31,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_clip/CMakeLists.txt b/source/blender/editors/space_clip/CMakeLists.txt index 70295625ffc..b91686523c7 100644 --- a/source/blender/editors/space_clip/CMakeLists.txt +++ b/source/blender/editors/space_clip/CMakeLists.txt @@ -14,7 +14,6 @@ set(INC ../../imbuf ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -52,6 +51,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_console/CMakeLists.txt b/source/blender/editors/space_console/CMakeLists.txt index 72392118335..8ba77d0fdc0 100644 --- a/source/blender/editors/space_console/CMakeLists.txt +++ b/source/blender/editors/space_console/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) @@ -30,6 +29,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_PYTHON) diff --git a/source/blender/editors/space_file/CMakeLists.txt b/source/blender/editors/space_file/CMakeLists.txt index e6f6db5f810..92fc93e4290 100644 --- a/source/blender/editors/space_file/CMakeLists.txt +++ b/source/blender/editors/space_file/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../makesrna ../../render ../../windowmanager - ../../../../intern/guardedalloc ../../../../extern/fmtlib/include # RNA_prototypes.h @@ -48,6 +47,7 @@ set(SRC set(LIB bf_blenkernel PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc extern_fmtlib PRIVATE bf::intern::atomic ) diff --git a/source/blender/editors/space_graph/CMakeLists.txt b/source/blender/editors/space_graph/CMakeLists.txt index 86f6770b3ee..7d01a364ea8 100644 --- a/source/blender/editors/space_graph/CMakeLists.txt +++ b/source/blender/editors/space_graph/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -39,6 +38,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_AUDASPACE) diff --git a/source/blender/editors/space_image/CMakeLists.txt b/source/blender/editors/space_image/CMakeLists.txt index c4993c8e50b..4deb264dfe4 100644 --- a/source/blender/editors/space_image/CMakeLists.txt +++ b/source/blender/editors/space_image/CMakeLists.txt @@ -18,7 +18,6 @@ set(INC ../../render ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -44,6 +43,7 @@ set(LIB bf_blenlib PRIVATE bf::dna bf_editor_uvedit + PRIVATE bf::intern::guardedalloc ) if(WITH_IMAGE_OPENJPEG) diff --git a/source/blender/editors/space_info/CMakeLists.txt b/source/blender/editors/space_info/CMakeLists.txt index 2fe666c93d1..2f1eaabe9fe 100644 --- a/source/blender/editors/space_info/CMakeLists.txt +++ b/source/blender/editors/space_info/CMakeLists.txt @@ -15,7 +15,6 @@ set(INC ../../imbuf ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -38,6 +37,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_nla/CMakeLists.txt b/source/blender/editors/space_nla/CMakeLists.txt index 9ab67b7dc07..d2dee7c3eb4 100644 --- a/source/blender/editors/space_nla/CMakeLists.txt +++ b/source/blender/editors/space_nla/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -37,6 +36,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_node/CMakeLists.txt b/source/blender/editors/space_node/CMakeLists.txt index e0c917c201a..2886e38e641 100644 --- a/source/blender/editors/space_node/CMakeLists.txt +++ b/source/blender/editors/space_node/CMakeLists.txt @@ -21,7 +21,6 @@ set(INC ../../nodes ../../render ../../windowmanager - ../../../../intern/guardedalloc ../../../../extern/fmtlib/include # RNA_prototypes.h @@ -57,6 +56,7 @@ set(LIB bf_blenlib PRIVATE bf::dna bf_editor_screen + PRIVATE bf::intern::guardedalloc extern_fmtlib ) diff --git a/source/blender/editors/space_outliner/CMakeLists.txt b/source/blender/editors/space_outliner/CMakeLists.txt index 0f7552d436c..d2ed327f197 100644 --- a/source/blender/editors/space_outliner/CMakeLists.txt +++ b/source/blender/editors/space_outliner/CMakeLists.txt @@ -15,7 +15,6 @@ set(INC ../../sequencer ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -113,6 +112,7 @@ set(LIB bf_blenlib PRIVATE bf::dna bf_editor_undo + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_script/CMakeLists.txt b/source/blender/editors/space_script/CMakeLists.txt index ffbc91ddc60..a9367822b5c 100644 --- a/source/blender/editors/space_script/CMakeLists.txt +++ b/source/blender/editors/space_script/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) @@ -28,6 +27,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_PYTHON) diff --git a/source/blender/editors/space_sequencer/CMakeLists.txt b/source/blender/editors/space_sequencer/CMakeLists.txt index 48e65789975..ff82febd7d3 100644 --- a/source/blender/editors/space_sequencer/CMakeLists.txt +++ b/source/blender/editors/space_sequencer/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../makesrna ../../sequencer ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -54,6 +53,7 @@ set(LIB bf_editor_interface bf_editor_util PRIVATE bf::intern::atomic + PRIVATE bf::intern::guardedalloc ) if(WITH_AUDASPACE) diff --git a/source/blender/editors/space_spreadsheet/CMakeLists.txt b/source/blender/editors/space_spreadsheet/CMakeLists.txt index d137baa1637..d6af3073236 100644 --- a/source/blender/editors/space_spreadsheet/CMakeLists.txt +++ b/source/blender/editors/space_spreadsheet/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../makesrna ../../nodes ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -54,6 +53,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_OPENVDB) diff --git a/source/blender/editors/space_statusbar/CMakeLists.txt b/source/blender/editors/space_statusbar/CMakeLists.txt index db9a8a62b2d..44be933f593 100644 --- a/source/blender/editors/space_statusbar/CMakeLists.txt +++ b/source/blender/editors/space_statusbar/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -28,6 +27,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_text/CMakeLists.txt b/source/blender/editors/space_text/CMakeLists.txt index 6850dac8715..55cd7907470 100644 --- a/source/blender/editors/space_text/CMakeLists.txt +++ b/source/blender/editors/space_text/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) @@ -40,6 +39,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_topbar/CMakeLists.txt b/source/blender/editors/space_topbar/CMakeLists.txt index 2478df1ccfe..e020ad45f68 100644 --- a/source/blender/editors/space_topbar/CMakeLists.txt +++ b/source/blender/editors/space_topbar/CMakeLists.txt @@ -11,7 +11,6 @@ set(INC ../../gpu ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -26,6 +25,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/space_userpref/CMakeLists.txt b/source/blender/editors/space_userpref/CMakeLists.txt index 47c8fb9af3a..c9a1799596c 100644 --- a/source/blender/editors/space_userpref/CMakeLists.txt +++ b/source/blender/editors/space_userpref/CMakeLists.txt @@ -9,7 +9,6 @@ set(INC ../../blenloader ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) @@ -26,6 +25,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_editor_space_userpref "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/editors/space_view3d/CMakeLists.txt b/source/blender/editors/space_view3d/CMakeLists.txt index 3dfb589f1d6..3393ed50fcf 100644 --- a/source/blender/editors/space_view3d/CMakeLists.txt +++ b/source/blender/editors/space_view3d/CMakeLists.txt @@ -18,7 +18,6 @@ set(INC ../../makesrna ../../render ../../windowmanager - ../../../../intern/guardedalloc ../../../../intern/mantaflow/extern # RNA_prototypes.h @@ -77,6 +76,7 @@ set(LIB bf_editor_curves bf_editor_lattice bf_editor_mesh + PRIVATE bf::intern::guardedalloc ) if(WITH_PYTHON) diff --git a/source/blender/editors/transform/CMakeLists.txt b/source/blender/editors/transform/CMakeLists.txt index 5132d6e345c..dd59bf2f0a9 100644 --- a/source/blender/editors/transform/CMakeLists.txt +++ b/source/blender/editors/transform/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../render ../../sequencer ../../windowmanager - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -124,6 +123,7 @@ set(LIB PRIVATE bf::dna bf_editor_mask bf_gpu + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/undo/CMakeLists.txt b/source/blender/editors/undo/CMakeLists.txt index 0a55e462f2d..fdcf83f2af4 100644 --- a/source/blender/editors/undo/CMakeLists.txt +++ b/source/blender/editors/undo/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ../../bmesh ) @@ -37,6 +36,7 @@ set(LIB bf_editor_mesh bf_editor_metaball bf_editor_physics + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_editor_undo "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/editors/util/CMakeLists.txt b/source/blender/editors/util/CMakeLists.txt index 8ddff989970..a9bfaaa8e24 100644 --- a/source/blender/editors/util/CMakeLists.txt +++ b/source/blender/editors/util/CMakeLists.txt @@ -18,7 +18,6 @@ set(INC ../../sequencer ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -110,6 +109,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/editors/uvedit/CMakeLists.txt b/source/blender/editors/uvedit/CMakeLists.txt index ee93860ec47..ee21fe6e203 100644 --- a/source/blender/editors/uvedit/CMakeLists.txt +++ b/source/blender/editors/uvedit/CMakeLists.txt @@ -14,7 +14,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/eigen - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -42,6 +41,7 @@ set(SRC set(LIB bf_bmesh PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/freestyle/CMakeLists.txt b/source/blender/freestyle/CMakeLists.txt index ff807214baa..c541d12ca25 100644 --- a/source/blender/freestyle/CMakeLists.txt +++ b/source/blender/freestyle/CMakeLists.txt @@ -531,6 +531,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_python_mathutils ${PYTHON_LINKFLAGS} @@ -549,7 +550,6 @@ set(INC ../python/intern ../render ../render/intern - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna diff --git a/source/blender/functions/CMakeLists.txt b/source/blender/functions/CMakeLists.txt index f03cb91a8e6..8c20f6e97db 100644 --- a/source/blender/functions/CMakeLists.txt +++ b/source/blender/functions/CMakeLists.txt @@ -5,7 +5,6 @@ set(INC . ../blenlib - ../../../intern/guardedalloc ) set(INC_SYS @@ -51,6 +50,7 @@ set(SRC set(LIB bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_TBB) diff --git a/source/blender/geometry/CMakeLists.txt b/source/blender/geometry/CMakeLists.txt index df79f57b105..75c65315dab 100644 --- a/source/blender/geometry/CMakeLists.txt +++ b/source/blender/geometry/CMakeLists.txt @@ -10,7 +10,6 @@ set(INC ../functions ../makesrna ../../../intern/eigen - ../../../intern/guardedalloc ) set(SRC @@ -61,6 +60,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_OPENVDB) diff --git a/source/blender/gpencil_modifiers_legacy/CMakeLists.txt b/source/blender/gpencil_modifiers_legacy/CMakeLists.txt index d3a0dd95f36..64bbb42a95d 100644 --- a/source/blender/gpencil_modifiers_legacy/CMakeLists.txt +++ b/source/blender/gpencil_modifiers_legacy/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../render ../windowmanager ../../../intern/eigen - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -91,6 +90,7 @@ endif() set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_gpencil_modifiers_legacy "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/gpu/CMakeLists.txt b/source/blender/gpu/CMakeLists.txt index 221c9070bf1..628120e3c91 100644 --- a/source/blender/gpu/CMakeLists.txt +++ b/source/blender/gpu/CMakeLists.txt @@ -39,7 +39,6 @@ set(INC ../../../intern/clog ../../../intern/ghost - ../../../intern/guardedalloc ../../../intern/mantaflow/extern ) @@ -328,6 +327,7 @@ set(LIB PRIVATE bf::dna PRIVATE bf::intern::atomic ${Epoxy_LIBRARIES} + PRIVATE bf::intern::guardedalloc ) # Select Backend source based on availability diff --git a/source/blender/ikplugin/CMakeLists.txt b/source/blender/ikplugin/CMakeLists.txt index 76d6689b1f1..9a3c1846963 100644 --- a/source/blender/ikplugin/CMakeLists.txt +++ b/source/blender/ikplugin/CMakeLists.txt @@ -8,7 +8,6 @@ set(INC . ../blenkernel ../blenlib - ../../../intern/guardedalloc ) set(INC_SYS @@ -24,6 +23,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_IK_SOLVER) diff --git a/source/blender/imbuf/CMakeLists.txt b/source/blender/imbuf/CMakeLists.txt index de4d130dc6d..3986e225a16 100644 --- a/source/blender/imbuf/CMakeLists.txt +++ b/source/blender/imbuf/CMakeLists.txt @@ -10,7 +10,6 @@ set(INC ../gpu ../makesrna ../sequencer - ../../../intern/guardedalloc ../../../intern/memutil ) @@ -80,7 +79,7 @@ set(LIB bf_blenloader PRIVATE bf::dna bf_imbuf_openimageio - bf_intern_guardedalloc + PRIVATE bf::intern::guardedalloc bf_intern_memutil bf_intern_opencolorio diff --git a/source/blender/imbuf/intern/cineon/CMakeLists.txt b/source/blender/imbuf/intern/cineon/CMakeLists.txt index 7663cdabb45..58832951e23 100644 --- a/source/blender/imbuf/intern/cineon/CMakeLists.txt +++ b/source/blender/imbuf/intern/cineon/CMakeLists.txt @@ -8,7 +8,6 @@ set(INC ../.. ../../../blenkernel ../../../blenlib - ../../../../../intern/guardedalloc ) set(INC_SYS @@ -30,6 +29,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_IMAGE_CINEON) diff --git a/source/blender/imbuf/intern/oiio/CMakeLists.txt b/source/blender/imbuf/intern/oiio/CMakeLists.txt index 6191ca47fe0..0dbfa5da8dc 100644 --- a/source/blender/imbuf/intern/oiio/CMakeLists.txt +++ b/source/blender/imbuf/intern/oiio/CMakeLists.txt @@ -8,7 +8,6 @@ set(INC ../.. ../../../blenkernel ../../../blenlib - ../../../../../intern/guardedalloc ../../../../../intern/utfconv ) @@ -28,6 +27,7 @@ set(LIB ${OPENIMAGEIO_LIBRARIES} ${PUGIXML_LIBRARIES} PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_IMAGE_OPENEXR) diff --git a/source/blender/imbuf/intern/openexr/CMakeLists.txt b/source/blender/imbuf/intern/openexr/CMakeLists.txt index 958c0e61ce0..71a3346bc71 100644 --- a/source/blender/imbuf/intern/openexr/CMakeLists.txt +++ b/source/blender/imbuf/intern/openexr/CMakeLists.txt @@ -8,7 +8,6 @@ set(INC ../.. ../../../blenkernel ../../../blenlib - ../../../../../intern/guardedalloc ../../../../../intern/utfconv ) @@ -23,6 +22,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_IMAGE_OPENEXR) diff --git a/source/blender/io/alembic/CMakeLists.txt b/source/blender/io/alembic/CMakeLists.txt index 636b93fdaf4..b1f9cea3675 100644 --- a/source/blender/io/alembic/CMakeLists.txt +++ b/source/blender/io/alembic/CMakeLists.txt @@ -15,7 +15,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ../../../../intern/utfconv ) @@ -93,6 +92,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_io_common ${ALEMBIC_LIBRARIES} diff --git a/source/blender/io/avi/CMakeLists.txt b/source/blender/io/avi/CMakeLists.txt index b811b9ab1e7..b9f6bae7cec 100644 --- a/source/blender/io/avi/CMakeLists.txt +++ b/source/blender/io/avi/CMakeLists.txt @@ -6,7 +6,6 @@ set(INC . ../../blenlib ../../imbuf - ../../../../intern/guardedalloc ) set(INC_SYS @@ -33,6 +32,7 @@ set(SRC set(LIB ${JPEG_LIBRARIES} PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_avi "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/io/collada/CMakeLists.txt b/source/blender/io/collada/CMakeLists.txt index e2b0ab6db08..745c8c8421e 100644 --- a/source/blender/io/collada/CMakeLists.txt +++ b/source/blender/io/collada/CMakeLists.txt @@ -29,7 +29,6 @@ set(INC ../../imbuf ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ../../ikplugin ../../../../intern/iksolver/extern ../../bmesh @@ -117,6 +116,7 @@ set(LIB ${PCRE_LIBRARIES} ${XML2_LIBRARIES} PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_BUILDINFO) diff --git a/source/blender/io/common/CMakeLists.txt b/source/blender/io/common/CMakeLists.txt index 1726db8d83e..6d3fedaec3f 100644 --- a/source/blender/io/common/CMakeLists.txt +++ b/source/blender/io/common/CMakeLists.txt @@ -7,7 +7,6 @@ set(INC ../../blenkernel ../../blenlib ../../depsgraph - ../../../../intern/guardedalloc ../../makesrna ) @@ -35,6 +34,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_io_common "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/io/gpencil/CMakeLists.txt b/source/blender/io/gpencil/CMakeLists.txt index 3444ab9abea..079e9b93078 100644 --- a/source/blender/io/gpencil/CMakeLists.txt +++ b/source/blender/io/gpencil/CMakeLists.txt @@ -14,7 +14,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ../../../../intern/utfconv ../../../../extern/nanosvg ) @@ -42,6 +41,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_io_common ) diff --git a/source/blender/io/ply/CMakeLists.txt b/source/blender/io/ply/CMakeLists.txt index 8d7692b48bb..b8d88fcb05f 100644 --- a/source/blender/io/ply/CMakeLists.txt +++ b/source/blender/io/ply/CMakeLists.txt @@ -15,7 +15,6 @@ set(INC ../../geometry ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -56,6 +55,7 @@ set(SRC set(LIB bf_blenkernel PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_io_common extern_fmtlib ) diff --git a/source/blender/io/stl/CMakeLists.txt b/source/blender/io/stl/CMakeLists.txt index 4f0cea2da83..3f64ac9f3a8 100644 --- a/source/blender/io/stl/CMakeLists.txt +++ b/source/blender/io/stl/CMakeLists.txt @@ -15,7 +15,6 @@ set(INC ../../makesrna ../../nodes ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -39,6 +38,7 @@ set(SRC set(LIB bf_blenkernel PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_io_common ) diff --git a/source/blender/io/usd/CMakeLists.txt b/source/blender/io/usd/CMakeLists.txt index d966935f683..9e6529f3e47 100644 --- a/source/blender/io/usd/CMakeLists.txt +++ b/source/blender/io/usd/CMakeLists.txt @@ -56,7 +56,6 @@ set(INC ../../imbuf ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ../../../../intern/utfconv ) @@ -131,6 +130,7 @@ set(LIB bf_blenlib PRIVATE bf::dna bf_imbuf + PRIVATE bf::intern::guardedalloc bf_io_common ) diff --git a/source/blender/io/wavefront_obj/CMakeLists.txt b/source/blender/io/wavefront_obj/CMakeLists.txt index 3dd050576e9..d18ebe5be44 100644 --- a/source/blender/io/wavefront_obj/CMakeLists.txt +++ b/source/blender/io/wavefront_obj/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../makesrna ../../nodes ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -59,6 +58,7 @@ set(SRC set(LIB bf_blenkernel PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_io_common extern_fmtlib ) diff --git a/source/blender/makesdna/intern/CMakeLists.txt b/source/blender/makesdna/intern/CMakeLists.txt index 83502647f91..cdb3e511ad1 100644 --- a/source/blender/makesdna/intern/CMakeLists.txt +++ b/source/blender/makesdna/intern/CMakeLists.txt @@ -9,7 +9,6 @@ set(INC PUBLIC ${CMAKE_CURRENT_BINARY_DIR} ../../blenlib ../../imbuf - ../../../../intern/guardedalloc ) set(INC_SYS @@ -17,6 +16,8 @@ set(INC_SYS ) set(LIB + PRIVATE bf::intern::atomic + PRIVATE bf::intern::guardedalloc ) add_definitions(-DWITH_DNA_GHASH) @@ -93,7 +94,7 @@ setup_platform_linker_flags(makesdna) setup_platform_linker_libs(makesdna) blender_target_include_dirs(makesdna ${INC}) blender_target_include_dirs_sys(makesdna ${INC_SYS}) -target_link_libraries(makesdna PRIVATE bf::intern::atomic) +target_link_libraries(makesdna ${LIB}) if(WIN32 AND NOT UNIX) if(DEFINED PTHREADS_LIBRARIES) @@ -149,7 +150,6 @@ add_library(bf::dna ALIAS bf_dna) set(INC .. ../../blenlib - ../../../../intern/guardedalloc ) set(INC_SYS @@ -163,6 +163,7 @@ set(SRC set(LIB PRIVATE bf::intern::atomic + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_dna_blenlib "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/makesrna/intern/CMakeLists.txt b/source/blender/makesrna/intern/CMakeLists.txt index 495f68635c1..eee9f0f0cdf 100644 --- a/source/blender/makesrna/intern/CMakeLists.txt +++ b/source/blender/makesrna/intern/CMakeLists.txt @@ -238,7 +238,6 @@ set(INC ../../render ../../../../intern/clog ../../../../intern/cycles/blender - ../../../../intern/guardedalloc ../../../../intern/memutil ../../../../intern/mantaflow/extern @@ -430,6 +429,7 @@ blender_target_include_dirs_sys(makesrna ${INC_SYS}) target_link_libraries(makesrna PRIVATE bf_dna) target_link_libraries(makesrna PRIVATE bf::intern::atomic) +target_link_libraries(makesrna PRIVATE bf::intern::guardedalloc) target_link_libraries(makesrna PRIVATE bf_dna_blenlib) if(WIN32 AND NOT UNIX) @@ -482,6 +482,7 @@ set(LIB bf_editor_sound bf_editor_transform bf_editor_undo + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_rna "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/modifiers/CMakeLists.txt b/source/blender/modifiers/CMakeLists.txt index 2d546092429..05b0dfa598f 100644 --- a/source/blender/modifiers/CMakeLists.txt +++ b/source/blender/modifiers/CMakeLists.txt @@ -20,7 +20,6 @@ set(INC ../render ../windowmanager ../../../intern/eigen - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -112,6 +111,7 @@ set(LIB bf_blenkernel bf_blenlib PUBLIC bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_ALEMBIC) diff --git a/source/blender/nodes/CMakeLists.txt b/source/blender/nodes/CMakeLists.txt index 79d71e5bf91..0c95b07333c 100644 --- a/source/blender/nodes/CMakeLists.txt +++ b/source/blender/nodes/CMakeLists.txt @@ -30,7 +30,6 @@ set(INC ../render ../windowmanager ../../../extern/fmtlib/include - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -84,6 +83,7 @@ set(LIB bf_bmesh PRIVATE bf::dna bf_functions + PRIVATE bf::intern::guardedalloc bf_nodes_composite bf_nodes_function bf_nodes_geometry diff --git a/source/blender/nodes/composite/CMakeLists.txt b/source/blender/nodes/composite/CMakeLists.txt index a3d8b287950..a5c1da3dc9d 100644 --- a/source/blender/nodes/composite/CMakeLists.txt +++ b/source/blender/nodes/composite/CMakeLists.txt @@ -20,7 +20,6 @@ set(INC ../../compositor/realtime_compositor ../../compositor/realtime_compositor/algorithms ../../compositor/realtime_compositor/cached_resources - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -130,6 +129,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_realtime_compositor ) diff --git a/source/blender/nodes/function/CMakeLists.txt b/source/blender/nodes/function/CMakeLists.txt index 6db290c38c1..df8e2af9bef 100644 --- a/source/blender/nodes/function/CMakeLists.txt +++ b/source/blender/nodes/function/CMakeLists.txt @@ -13,7 +13,6 @@ set(INC ../../functions ../../makesrna ../../windowmanager - ../../../../intern/guardedalloc ) set(INC_SYS @@ -49,6 +48,7 @@ set(SRC set(LIB PRIVATE bf::dna bf_functions + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_nodes_function "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/nodes/geometry/CMakeLists.txt b/source/blender/nodes/geometry/CMakeLists.txt index 65d388ab5cf..5618ead0649 100644 --- a/source/blender/nodes/geometry/CMakeLists.txt +++ b/source/blender/nodes/geometry/CMakeLists.txt @@ -20,7 +20,6 @@ set(INC ../../render ../../windowmanager ../../../../extern/fmtlib/include - ../../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -204,6 +203,7 @@ set(LIB PRIVATE bf::dna bf_functions bf_geometry + PRIVATE bf::intern::guardedalloc bf_nodes extern_fmtlib ) diff --git a/source/blender/nodes/shader/CMakeLists.txt b/source/blender/nodes/shader/CMakeLists.txt index 1f351a1f076..bab1cafdb4a 100644 --- a/source/blender/nodes/shader/CMakeLists.txt +++ b/source/blender/nodes/shader/CMakeLists.txt @@ -17,7 +17,6 @@ set(INC ../../makesrna ../../render ../../windowmanager - ../../../../intern/guardedalloc ../../../../intern/sky/include # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -130,6 +129,7 @@ set(SRC set(LIB PRIVATE bf::dna bf_functions + PRIVATE bf::intern::guardedalloc bf_intern_sky bf_nodes ) diff --git a/source/blender/nodes/texture/CMakeLists.txt b/source/blender/nodes/texture/CMakeLists.txt index 0cac2ce9d43..689bff7069f 100644 --- a/source/blender/nodes/texture/CMakeLists.txt +++ b/source/blender/nodes/texture/CMakeLists.txt @@ -15,7 +15,6 @@ set(INC ../../makesrna ../../render ../../windowmanager - ../../../../intern/guardedalloc ../../bmesh # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -61,6 +60,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_nodes ) diff --git a/source/blender/python/bmesh/CMakeLists.txt b/source/blender/python/bmesh/CMakeLists.txt index 75be92bb899..8c007ce1311 100644 --- a/source/blender/python/bmesh/CMakeLists.txt +++ b/source/blender/python/bmesh/CMakeLists.txt @@ -8,7 +8,6 @@ set(INC ../../blenlib ../../bmesh ../../depsgraph - ../../../../intern/guardedalloc ) set(INC_SYS @@ -41,6 +40,7 @@ set(LIB bf_blenkernel bf_blenlib PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_python_mathutils ${PYTHON_LINKFLAGS} diff --git a/source/blender/python/generic/CMakeLists.txt b/source/blender/python/generic/CMakeLists.txt index bda96cbbf21..16c5b3af878 100644 --- a/source/blender/python/generic/CMakeLists.txt +++ b/source/blender/python/generic/CMakeLists.txt @@ -9,7 +9,6 @@ set(INC ../../gpu ../../makesrna ../../../../intern/clog - ../../../../intern/guardedalloc ) set(INC_SYS @@ -46,6 +45,7 @@ set(LIB ${PYTHON_LINKFLAGS} ${PYTHON_LIBRARIES} PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_PYTHON_MODULE) diff --git a/source/blender/python/gpu/CMakeLists.txt b/source/blender/python/gpu/CMakeLists.txt index 83b87c2b710..539b1708a4b 100644 --- a/source/blender/python/gpu/CMakeLists.txt +++ b/source/blender/python/gpu/CMakeLists.txt @@ -9,7 +9,6 @@ set(INC ../../editors/include ../../gpu ../../imbuf - ../../../../intern/guardedalloc ) set(INC_SYS @@ -63,6 +62,7 @@ set(LIB ${PYTHON_LINKFLAGS} ${PYTHON_LIBRARIES} PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_python_gpu "${SRC}" "${INC}" "${INC_SYS}" "${LIB}") diff --git a/source/blender/python/intern/CMakeLists.txt b/source/blender/python/intern/CMakeLists.txt index 4b88c60c2dc..df016d09cb7 100644 --- a/source/blender/python/intern/CMakeLists.txt +++ b/source/blender/python/intern/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../../makesrna ../../windowmanager ../../../../intern/clog - ../../../../intern/guardedalloc ../../../../intern/mantaflow/extern ../../../../intern/opencolorio # RNA_prototypes.h @@ -126,6 +125,7 @@ set(LIB bf_editor_animation bf_editor_interface bf_editor_space_api + PRIVATE bf::intern::guardedalloc bf_python_gpu ${PYTHON_LINKFLAGS} diff --git a/source/blender/python/mathutils/CMakeLists.txt b/source/blender/python/mathutils/CMakeLists.txt index 16efefbc5e4..8c7c84d1f14 100644 --- a/source/blender/python/mathutils/CMakeLists.txt +++ b/source/blender/python/mathutils/CMakeLists.txt @@ -9,7 +9,6 @@ set(INC ../../bmesh ../../depsgraph ../../imbuf - ../../../../intern/guardedalloc ) set(INC_SYS @@ -46,6 +45,7 @@ set(LIB bf_blenlib PRIVATE bf::dna bf_imbuf + PRIVATE bf::intern::guardedalloc bf_python_ext ${PYTHON_LINKFLAGS} diff --git a/source/blender/render/CMakeLists.txt b/source/blender/render/CMakeLists.txt index 96cc185af63..df23366b0d7 100644 --- a/source/blender/render/CMakeLists.txt +++ b/source/blender/render/CMakeLists.txt @@ -21,7 +21,6 @@ set(INC ../sequencer ../simulation ../windowmanager - ../../../intern/guardedalloc ../../../intern/mikktspace ../../../intern/mantaflow/extern ) @@ -60,6 +59,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_realtime_compositor PRIVATE bf::intern::atomic ) diff --git a/source/blender/sequencer/CMakeLists.txt b/source/blender/sequencer/CMakeLists.txt index f05158c5c0c..d41907bdd34 100644 --- a/source/blender/sequencer/CMakeLists.txt +++ b/source/blender/sequencer/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../render ../windowmanager ../../../intern/clog - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna @@ -89,6 +88,7 @@ set(LIB bf_blenlib PRIVATE bf::dna PRIVATE bf::intern::atomic + PRIVATE bf::intern::guardedalloc ) if(WITH_AUDASPACE) diff --git a/source/blender/shader_fx/CMakeLists.txt b/source/blender/shader_fx/CMakeLists.txt index 4ec15b557c4..20e073451fe 100644 --- a/source/blender/shader_fx/CMakeLists.txt +++ b/source/blender/shader_fx/CMakeLists.txt @@ -16,7 +16,6 @@ set(INC ../render ../windowmanager ../../../intern/eigen - ../../../intern/guardedalloc # RNA_prototypes.h ${CMAKE_BINARY_DIR}/source/blender/makesrna ) @@ -46,6 +45,7 @@ set(SRC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) diff --git a/source/blender/simulation/CMakeLists.txt b/source/blender/simulation/CMakeLists.txt index 0934e2208ab..424c9a0d2c2 100644 --- a/source/blender/simulation/CMakeLists.txt +++ b/source/blender/simulation/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ../imbuf ../makesrna ../nodes - ../../../intern/guardedalloc ) set(INC_SYS @@ -35,6 +34,7 @@ set(SRC set(LIB bf_blenkernel PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc ) if(WITH_OPENMP_STATIC) diff --git a/source/blender/windowmanager/CMakeLists.txt b/source/blender/windowmanager/CMakeLists.txt index 0d5cb02e5bf..ac538290f0e 100644 --- a/source/blender/windowmanager/CMakeLists.txt +++ b/source/blender/windowmanager/CMakeLists.txt @@ -24,7 +24,6 @@ set(INC ../sequencer ../../../intern/clog ../../../intern/ghost - ../../../intern/guardedalloc ../../../intern/memutil ../bmesh @@ -101,6 +100,7 @@ set(SRC set(LIB PRIVATE bf::dna bf_editor_screen + PRIVATE bf::intern::guardedalloc bf_sequencer ) diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt index f1a4298a958..e08a631d40a 100644 --- a/source/creator/CMakeLists.txt +++ b/source/creator/CMakeLists.txt @@ -4,7 +4,6 @@ set(INC ../../intern/clog - ../../intern/guardedalloc ../blender/blenkernel ../blender/blenlib ../blender/depsgraph @@ -20,6 +19,7 @@ set(INC set(LIB PRIVATE bf::dna + PRIVATE bf::intern::guardedalloc bf_windowmanager ) diff --git a/tests/gtests/testing/CMakeLists.txt b/tests/gtests/testing/CMakeLists.txt index e7e5d335bc6..e6d2e242237 100644 --- a/tests/gtests/testing/CMakeLists.txt +++ b/tests/gtests/testing/CMakeLists.txt @@ -12,7 +12,6 @@ set(INC ${GLOG_INCLUDE_DIRS} ${GFLAGS_INCLUDE_DIRS} ../../../extern/gtest/include - ../../../intern/guardedalloc ) set(INC_SYS @@ -25,7 +24,7 @@ set(SRC ) set(LIB - bf_intern_guardedalloc + PRIVATE bf::intern::guardedalloc ) blender_add_lib(bf_testing_main "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")