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:
authorRay Molenkamp <github@lazydodo.com>2020-08-12 19:17:38 +0300
committerRay Molenkamp <github@lazydodo.com>2020-08-12 19:17:38 +0300
commit6a95f05d65b5fc192d9689ca653e5b4e19a50cad (patch)
treedbe88219d972aa68a7c59a8459c9a561a2d9e997 /build_files/build_environment/cmake/boost.cmake
parent240ac779d585520a7dcea6a623b2e2ae082fb6f1 (diff)
deps_builder: Optionally build boost::python
This this adds the option of building boost::python in the libs builder, in preparation for future dependencies that require it (ie pyopenvdb) disabled by default, can be enabled with the `WITH_BOOST_PYTHON` cmake option. Differential Revision: https://developer.blender.org/D8212 Reviewed by: brecht
Diffstat (limited to 'build_files/build_environment/cmake/boost.cmake')
-rw-r--r--build_files/build_environment/cmake/boost.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/build_files/build_environment/cmake/boost.cmake b/build_files/build_environment/cmake/boost.cmake
index 062bdeb2473..22b5f33e690 100644
--- a/build_files/build_environment/cmake/boost.cmake
+++ b/build_files/build_environment/cmake/boost.cmake
@@ -49,6 +49,15 @@ else()
endif()
endif()
+if(WITH_BOOST_PYTHON)
+ set(JAM_FILE ${BUILD_DIR}/boost.user-config.jam)
+ configure_file(${PATCH_DIR}/boost.user.jam.in ${JAM_FILE})
+ set(BOOST_PYTHON_OPTIONS
+ --with-python
+ --user-config=${JAM_FILE}
+ )
+endif()
+
set(BOOST_OPTIONS
--with-filesystem
--with-locale
@@ -65,6 +74,7 @@ set(BOOST_OPTIONS
-sNO_LZMA=1
-sNO_ZSTD=1
${BOOST_TOOLSET}
+ ${BOOST_PYTHON_OPTIONS}
)
string(TOLOWER ${BUILD_MODE} BOOST_BUILD_TYPE)
@@ -81,3 +91,11 @@ ExternalProject_Add(external_boost
BUILD_IN_SOURCE 1
INSTALL_COMMAND "${BOOST_HARVEST_CMD}"
)
+
+if(WITH_BOOST_PYTHON)
+ add_dependencies(
+ external_boost
+ external_python
+ external_numpy
+ )
+endif()