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:
authorCampbell Barton <ideasman42@gmail.com>2021-10-20 02:16:36 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-20 02:31:30 +0300
commitef9269bd62f31e39d39cc59cd34354b53eae6661 (patch)
tree5ff2fb2f3b03678b7e58a23397d4d53bb83f35f8 /source/blender/CMakeLists.txt
parentbca2701236ab60dce5e32a8731f3bba43783b5b2 (diff)
Thumbnails: refactor extraction to use one code-path for all platforms
Thumbnail extraction now shares code between Linux/Windows, allowing thumbnails from Zstd compressed blend files to be extracted. The main logic is placed in blendthumb_extract.cc and is built as static library. For windows there is DLL which is registered during blender install and which then reads and generates thumbnails. For other platforms there is blender-thumbnailer executable file which takes blend file as an input and generates PNG file. As a result Python script blender-thumbnailer.py is no longer needed. The thumbnail extractor shares the same code-path as Blenders file reading, so there is no need to duplicate any file reading logic. This means reading compressed blend files is supported (broken since the recent move Zstd compression - D5799). This resolves T63736. Contributors: - @alausic original patch. - @LazyDodo windows fixes/support. - @campbellbarton general fixes/update. - @lukasstockner97 Zstd support. Reviewed By: sybren, mont29, LazyDodo, campbellbarton Ref D6408
Diffstat (limited to 'source/blender/CMakeLists.txt')
-rw-r--r--source/blender/CMakeLists.txt5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/CMakeLists.txt b/source/blender/CMakeLists.txt
index 84d31bccc53..0a494677d96 100644
--- a/source/blender/CMakeLists.txt
+++ b/source/blender/CMakeLists.txt
@@ -131,6 +131,7 @@ add_subdirectory(io)
add_subdirectory(functions)
add_subdirectory(makesdna)
add_subdirectory(makesrna)
+add_subdirectory(blendthumb)
if(WITH_COMPOSITOR)
add_subdirectory(compositor)
@@ -159,7 +160,3 @@ endif()
if(WITH_FREESTYLE)
add_subdirectory(freestyle)
endif()
-
-if(WIN32)
- add_subdirectory(blendthumb)
-endif()