Boost (removed!) Cython 3.0.11 Expat 2.6.4 GMP 6.3.0 MaterialX 1.39.2 Nanobind 2.1.0 (new, for OpenVDB) NumPy 1.26.4 OpenColorIO 2.4.1 OpenEXR 3.3.2 OpenImageIO 3.0.3.1 OpenVDB 12.0.0 OSL 1.14.3-beta Python 3.11.11 Robinmap 1.3.0 TBB 2021.13.0 TIFF 4.7.0 USD 25.02 libxml2 2.13.5 zlib 1.3.1 Co-authored-by: Brecht Van Lommel <brecht@blender.org> Co-authored-by: Jonas Holzman <jonas@holzman.fr> Co-authored-by: Sebastian Parborg <sebastian@blender.org> Ref #128577 Pull Request: https://projects.blender.org/blender/blender/pulls/134178
36 lines
824 B
CMake
36 lines
824 B
CMake
# SPDX-FileCopyrightText: 2024 Blender Authors
|
|
#
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
set(NANOBIND_EXTRA_ARGS
|
|
-DNB_TEST=OFF
|
|
-DPython_EXECUTABLE=${PYTHON_BINARY}
|
|
)
|
|
|
|
set(NANOBIND_PATCH
|
|
${CMAKE_COMMAND} -E copy_directory
|
|
${LIBDIR}/robinmap/include/
|
|
${BUILD_DIR}/nanobind/src/external_nanobind/ext/robin_map/include/
|
|
)
|
|
|
|
ExternalProject_Add(external_nanobind
|
|
URL file://${PACKAGE_DIR}/${NANOBIND_FILE}
|
|
DOWNLOAD_DIR ${DOWNLOAD_DIR}
|
|
URL_HASH ${NANOBIND_HASH_TYPE}=${NANOBIND_HASH}
|
|
PREFIX ${BUILD_DIR}/nanobind
|
|
CMAKE_GENERATOR ${PLATFORM_ALT_GENERATOR}
|
|
|
|
PATCH_COMMAND ${NANOBIND_PATCH}
|
|
CMAKE_ARGS
|
|
-DCMAKE_INSTALL_PREFIX=${LIBDIR}/nanobind
|
|
${DEFAULT_CMAKE_FLAGS}
|
|
${NANOBIND_EXTRA_ARGS}
|
|
|
|
INSTALL_DIR ${LIBDIR}/nanobind
|
|
)
|
|
|
|
add_dependencies(
|
|
external_nanobind
|
|
external_robinmap
|
|
)
|