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:
authorBenjamin Schmithüsen <UX3D-schmithuesen>2019-04-11 12:26:23 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-04-11 13:04:53 +0300
commit4bad4bfc6ae5a81c44038cb1259f44befbb3afe0 (patch)
tree9b196d3ed0466406ba85441ea2314bedaeaea783 /source/creator
parenta9d6356fee28d3567e956415a8eb08ab0bb7a0ab (diff)
glTF: add Draco shared library for mesh compression.
Draco is added as a library under extern/ and builds a shared library that is installed into the Python site-packages. This is then loaded by the glTF add-on to do mesh compression. Differential Revision: https://developer.blender.org/D4501
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 78cdf5c3796..36da605b4ba 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -633,6 +633,13 @@ if(UNIX AND NOT APPLE)
endif()
endif()
+
+ if(WITH_DRACO)
+ install(
+ PROGRAMS ${CMAKE_BINARY_DIR}/lib/lib${DRACO_LIB_NAME}.so
+ DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages
+ )
+ endif()
elseif(WIN32)
set(BLENDER_TEXT_FILES_DESTINATION ".")
@@ -832,6 +839,12 @@ elseif(WIN32)
DESTINATION "."
)
+ if(WITH_DRACO)
+ install(
+ PROGRAMS ${CMAKE_BINARY_DIR}/lib/$<CONFIG>/${DRACO_LIB_NAME}.dll
+ DESTINATION ${TARGETDIR_VER}/python/lib/site-packages
+ )
+ endif()
elseif(APPLE)
# handy install macro to exclude files, we use \$ escape for the "to"
@@ -936,6 +949,12 @@ elseif(APPLE)
unset(_py_inc_suffix)
endif()
+ if(WITH_DRACO)
+ install(
+ PROGRAMS ${CMAKE_BINARY_DIR}/lib/lib${DRACO_LIB_NAME}.dylib
+ DESTINATION ${TARGETDIR_VER}/python/lib/python${PYTHON_VERSION}/site-packages
+ )
+ endif()
endif()
# -----------------------------------------------------------------------------