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:
authorYimingWu <xp8110@outlook.com>2022-03-28 08:34:17 +0300
committerYimingWu <xp8110@outlook.com>2022-05-04 17:11:33 +0300
commit03aba8046e07d956e43073502383579b7dfbb284 (patch)
treea87d63d8507530696d8d2d552efef30a30675a37 /source/blender/gpencil_modifiers/CMakeLists.txt
parent8bd0ed6bd2f36f4620f9dc431da55220a7c313fd (diff)
LineArt: Object loading optimization
This patch replaces BMesh conversion into index-based triangle adjacent lookup method, and use multithread in many steps to speed up object loading for line art. Differential Revision: https://developer.blender.org/D14627 Reviewed By: Sebastian Parborg (zeddb)
Diffstat (limited to 'source/blender/gpencil_modifiers/CMakeLists.txt')
-rw-r--r--source/blender/gpencil_modifiers/CMakeLists.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/gpencil_modifiers/CMakeLists.txt b/source/blender/gpencil_modifiers/CMakeLists.txt
index 6108629183c..3b6f00b56d8 100644
--- a/source/blender/gpencil_modifiers/CMakeLists.txt
+++ b/source/blender/gpencil_modifiers/CMakeLists.txt
@@ -68,12 +68,29 @@ set(SRC
intern/lineart/lineart_cpu.c
intern/lineart/lineart_ops.c
intern/lineart/lineart_util.c
+ intern/lineart/lineart_cpp_bridge.cpp
intern/lineart/MOD_lineart.h
intern/lineart/lineart_intern.h
)
+if(WITH_TBB)
+add_definitions(-DWITH_TBB)
+if(WIN32)
+ # TBB includes Windows.h which will define min/max macros
+ # that will collide with the stl versions.
+ add_definitions(-DNOMINMAX)
+endif()
+list(APPEND INC_SYS
+ ${TBB_INCLUDE_DIRS}
+)
+
+list(APPEND LIB
+ ${TBB_LIBRARIES}
+)
+endif()
+
set(LIB
)