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 04:10:09 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-10-20 04:15:33 +0300
commitfd7510984a6d472969436721031ae309ec4981a0 (patch)
treef8eebf3651bccfb8ad605c818496056e8ece1bd0 /CMakeLists.txt
parentb280699078eee23bd8eb572668d6f0d8972d879a (diff)
CMake: add WITH_BLENDER_THUMBNAILER option
Make building the thumbnail extraction executable optional, disable on macOS as this was not linking, further, macOS doesn't use this for thumbnail extraction so it could be left disabled.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 16842f3134b..544e22f342b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -156,6 +156,16 @@ get_blender_version()
option(WITH_BLENDER "Build blender (disable to build only the blender player)" ON)
mark_as_advanced(WITH_BLENDER)
+if(APPLE)
+ # Currently this causes a build error linking, disable.
+ set(WITH_BLENDER_THUMBNAILER OFF)
+elseif(WIN32)
+ # Building the thumbnail extraction DLL could be made optional.
+ set(WITH_BLENDER_THUMBNAILER ON)
+else()
+ option(WITH_BLENDER_THUMBNAILER "Build \"blender-thumbnailer\" thumbnail extraction utility" ON)
+endif()
+
option(WITH_INTERNATIONAL "Enable I18N (International fonts and text)" ON)
option(WITH_PYTHON "Enable Embedded Python API (only disable for development)" ON)