388bbc3290
This updates the libraries dependencies for VFX platform 2023, and adds various new libraries. It also enables Python bindings and switches from static to shared for various libraries. The precompiled libraries for all platforms will be updated to these new versions in the coming weeks. New: Fribidi 1.0.12 Harfbuzz 5.1.0 MaterialX 1.38.6 (shared lib with python bindings) Minizipng 3.0.7 Pybind11 2.10.1 Shaderc 2022.3 Vulkan 1.2.198 Updated: Boost 1.8.0 (shared lib) Cython 0.29.30 Numpy 1.23.2 OpenColorIO 2.2.0 (shared lib with python bindings) OpenImageIO 2.4.6.0 (shared lib with python bindings) OpenSubdiv 3.5.0 OpenVDB 10.0.0 (shared lib with python bindings) OSL 1.12.7.1 (enable nvptx backend) TBB (shared lib) USD 22.11 (shared lib with python bindings, enable hydra) yaml-cpp 0.8.0 Includes contributions by Ray Molenkamp, Brecht Van Lommel, Georgiy Markelov and Campbell Barton. Ref T99618
32 lines
806 B
CMake
32 lines
806 B
CMake
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(BOOST_ADDRESS_MODEL 64)
|
|
if(BLENDER_PLATFORM_ARM)
|
|
set(BOOST_ARCHITECTURE arm)
|
|
else()
|
|
set(BOOST_ARCHITECTURE x86)
|
|
endif()
|
|
|
|
if(WIN32)
|
|
if(MSVC_VERSION GREATER_EQUAL 1920) # 2019
|
|
set(BOOST_TOOLSET toolset=msvc-14.2)
|
|
set(BOOST_COMPILER_STRING -vc142)
|
|
else() # 2017
|
|
set(BOOST_TOOLSET toolset=msvc-14.1)
|
|
set(BOOST_COMPILER_STRING -vc141)
|
|
endif()
|
|
endif()
|
|
|
|
set(DEFAULT_BOOST_FLAGS
|
|
-DBoost_COMPILER:STRING=${BOOST_COMPILER_STRING}
|
|
-DBoost_USE_MULTITHREADED=ON
|
|
-DBoost_USE_STATIC_LIBS=OFF
|
|
-DBoost_USE_STATIC_RUNTIME=OFF
|
|
-DBOOST_ROOT=${LIBDIR}/boost
|
|
-DBoost_NO_SYSTEM_PATHS=ON
|
|
-DBoost_NO_BOOST_CMAKE=ON
|
|
-DBoost_ADDITIONAL_VERSIONS=${BOOST_VERSION_SHORT}
|
|
-DBOOST_LIBRARYDIR=${LIBDIR}/boost/lib/
|
|
-DBoost_USE_DEBUG_PYTHON=On
|
|
)
|