mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-11-02 20:51:23 -07:00 
			
		
		
		
	Add OpenVDB (and sub libraries) the new way
This commit is contained in:
		
							parent
							
								
									f4733e69fc
								
							
						
					
					
						commit
						8753c63e72
					
				
					 10 changed files with 270 additions and 190 deletions
				
			
		
							
								
								
									
										26
									
								
								deps/Blosc/Blosc.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								deps/Blosc/Blosc.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,26 @@
 | 
			
		|||
if(BUILD_SHARED_LIBS)
 | 
			
		||||
    set(_build_shared ON)
 | 
			
		||||
    set(_build_static OFF)
 | 
			
		||||
else()
 | 
			
		||||
    set(_build_shared OFF)
 | 
			
		||||
    set(_build_static ON)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
prusaslicer_add_cmake_project(Blosc
 | 
			
		||||
    GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
 | 
			
		||||
    GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
 | 
			
		||||
    DEPENDS ${ZLIB_PKG}
 | 
			
		||||
    PATCH_COMMAND       ${GIT_EXECUTABLE} reset --hard && ${GIT_EXECUTABLE} clean -df &&
 | 
			
		||||
                        ${GIT_EXECUTABLE} apply --whitespace=nowarn ${CMAKE_CURRENT_LIST_DIR}/blosc-mods.patch
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DBUILD_SHARED=${_build_shared} 
 | 
			
		||||
        -DBUILD_STATIC=${_build_static}
 | 
			
		||||
        -DBUILD_TESTS=OFF 
 | 
			
		||||
        -DBUILD_BENCHMARKS=OFF 
 | 
			
		||||
        -DPREFER_EXTERNAL_ZLIB=ON
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if (MSVC)
 | 
			
		||||
    add_debug_dep(dep_Blosc)
 | 
			
		||||
endif ()
 | 
			
		||||
							
								
								
									
										21
									
								
								deps/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										21
									
								
								deps/CMakeLists.txt
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -146,25 +146,30 @@ if (NOT EXPAT_FOUND)
 | 
			
		|||
    set(EXPAT_PKG dep_EXPAT)
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
# The order of includes respects the dependencies between libraries
 | 
			
		||||
include(Cereal/Cereal.cmake)
 | 
			
		||||
include(Qhull/Qhull.cmake)
 | 
			
		||||
include(GLEW/GLEW.cmake)
 | 
			
		||||
include(OpenCSG/OpenCSG.cmake)
 | 
			
		||||
 | 
			
		||||
include(TBB/TBB.cmake)
 | 
			
		||||
 | 
			
		||||
include(Blosc/Blosc.cmake)
 | 
			
		||||
include(OpenEXR/OpenEXR.cmake)
 | 
			
		||||
include(OpenVDB/OpenVDB.cmake)
 | 
			
		||||
 | 
			
		||||
include(GMP/GMP.cmake)
 | 
			
		||||
include(MPFR/MPFR.cmake)
 | 
			
		||||
include(CGAL/CGAL.cmake)
 | 
			
		||||
 | 
			
		||||
include(NLopt/NLopt.cmake)
 | 
			
		||||
include(TBB/TBB.cmake)
 | 
			
		||||
 | 
			
		||||
include(OpenSSL/OpenSSL.cmake)
 | 
			
		||||
include(CURL/CURL.cmake)
 | 
			
		||||
 | 
			
		||||
include(wxWidgets/wxWidgets.cmake)
 | 
			
		||||
 | 
			
		||||
if (NOT "${ZLIB_PKG}" STREQUAL "")
 | 
			
		||||
    add_dependencies(dep_blosc ${ZLIB_PKG})
 | 
			
		||||
    add_dependencies(dep_openexr ${ZLIB_PKG})
 | 
			
		||||
endif ()
 | 
			
		||||
 | 
			
		||||
add_dependencies(dep_openvdb dep_TBB)
 | 
			
		||||
add_dependencies(dep_OpenVDB dep_boost)
 | 
			
		||||
 | 
			
		||||
set(_dep_list
 | 
			
		||||
    dep_boost
 | 
			
		||||
| 
						 | 
				
			
			@ -173,7 +178,7 @@ set(_dep_list
 | 
			
		|||
    dep_wxWidgets
 | 
			
		||||
    dep_Cereal
 | 
			
		||||
    dep_NLopt
 | 
			
		||||
    dep_openvdb
 | 
			
		||||
    dep_OpenVDB
 | 
			
		||||
    dep_OpenCSG
 | 
			
		||||
    dep_CGAL
 | 
			
		||||
    ${PNG_PKG}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										15
									
								
								deps/OpenEXR/OpenEXR.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								deps/OpenEXR/OpenEXR.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,15 @@
 | 
			
		|||
prusaslicer_add_cmake_project(OpenEXR
 | 
			
		||||
    GIT_REPOSITORY https://github.com/openexr/openexr.git
 | 
			
		||||
    DEPENDS ${ZLIB_PKG}
 | 
			
		||||
    GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DBUILD_TESTING=OFF 
 | 
			
		||||
        -DPYILMBASE_ENABLE:BOOL=OFF 
 | 
			
		||||
        -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
 | 
			
		||||
        -DOPENEXR_BUILD_UTILS:BOOL=OFF
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if (MSVC)
 | 
			
		||||
    add_debug_dep(dep_OpenEXR)
 | 
			
		||||
endif ()
 | 
			
		||||
							
								
								
									
										38
									
								
								deps/OpenVDB/OpenVDB.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								deps/OpenVDB/OpenVDB.cmake
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,38 @@
 | 
			
		|||
if(BUILD_SHARED_LIBS)
 | 
			
		||||
    set(_build_shared ON)
 | 
			
		||||
    set(_build_static OFF)
 | 
			
		||||
else()
 | 
			
		||||
    set(_build_shared OFF)
 | 
			
		||||
    set(_build_static ON)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
prusaslicer_add_cmake_project(OpenVDB
 | 
			
		||||
    GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
 | 
			
		||||
    GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
 | 
			
		||||
    DEPENDS dep_TBB dep_Blosc dep_OpenEXR #dep_Boost
 | 
			
		||||
    PATCH_COMMAND       ${GIT_EXECUTABLE} reset --hard && ${GIT_EXECUTABLE} clean -df &&
 | 
			
		||||
                        ${GIT_EXECUTABLE} apply --whitespace=nowarn ${CMAKE_CURRENT_LIST_DIR}/openvdb-mods.patch
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON 
 | 
			
		||||
        -DOPENVDB_BUILD_PYTHON_MODULE=OFF
 | 
			
		||||
        -DUSE_BLOSC=ON
 | 
			
		||||
        -DOPENVDB_CORE_SHARED=${_build_shared} 
 | 
			
		||||
        -DOPENVDB_CORE_STATIC=${_build_static}
 | 
			
		||||
        -DOPENVDB_ENABLE_RPATH:BOOL=OFF
 | 
			
		||||
        -DTBB_STATIC=${_build_static}
 | 
			
		||||
        -DOPENVDB_BUILD_VDB_PRINT=ON
 | 
			
		||||
        -DDISABLE_DEPENDENCY_VERSION_CHECKS=ON # Centos6 has old zlib
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if (MSVC)
 | 
			
		||||
    if (${DEP_DEBUG})
 | 
			
		||||
        ExternalProject_Get_Property(dep_OpenVDB BINARY_DIR)
 | 
			
		||||
        ExternalProject_Add_Step(dep_OpenVDB build_debug
 | 
			
		||||
            DEPENDEES build
 | 
			
		||||
            DEPENDERS install
 | 
			
		||||
            COMMAND ${CMAKE_COMMAND} ../dep_OpenVDB -DOPENVDB_BUILD_VDB_PRINT=OFF
 | 
			
		||||
            COMMAND msbuild /m /P:Configuration=Debug INSTALL.vcxproj
 | 
			
		||||
            WORKING_DIRECTORY "${BINARY_DIR}"
 | 
			
		||||
        )
 | 
			
		||||
    endif ()
 | 
			
		||||
endif ()
 | 
			
		||||
							
								
								
									
										3
									
								
								deps/deps-linux.cmake
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								deps/deps-linux.cmake
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -100,6 +100,3 @@ ExternalProject_Add(dep_boost
 | 
			
		|||
#     BUILD_COMMAND make "-j${NPROC}"
 | 
			
		||||
#     INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
add_dependencies(dep_openvdb dep_boost)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										92
									
								
								deps/deps-macos.cmake
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										92
									
								
								deps/deps-macos.cmake
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -42,50 +42,50 @@ ExternalProject_Add(dep_boost
 | 
			
		|||
    INSTALL_COMMAND ""   # b2 does that already
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
ExternalProject_Add(dep_libcurl
 | 
			
		||||
    EXCLUDE_FROM_ALL 1
 | 
			
		||||
    URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
 | 
			
		||||
    URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
 | 
			
		||||
    BUILD_IN_SOURCE 1
 | 
			
		||||
    CONFIGURE_COMMAND ./configure
 | 
			
		||||
        --enable-static
 | 
			
		||||
        --disable-shared
 | 
			
		||||
        "--with-ssl=${DESTDIR}/usr/local"
 | 
			
		||||
        --with-pic
 | 
			
		||||
        --enable-ipv6
 | 
			
		||||
        --enable-versioned-symbols
 | 
			
		||||
        --enable-threaded-resolver
 | 
			
		||||
        --with-darwinssl
 | 
			
		||||
        --without-ssl     # disables OpenSSL
 | 
			
		||||
        --disable-ldap
 | 
			
		||||
        --disable-ldaps
 | 
			
		||||
        --disable-manual
 | 
			
		||||
        --disable-rtsp
 | 
			
		||||
        --disable-dict
 | 
			
		||||
        --disable-telnet
 | 
			
		||||
        --disable-pop3
 | 
			
		||||
        --disable-imap
 | 
			
		||||
        --disable-smb
 | 
			
		||||
        --disable-smtp
 | 
			
		||||
        --disable-gopher
 | 
			
		||||
        --without-gssapi
 | 
			
		||||
        --without-libpsl
 | 
			
		||||
        --without-libidn2
 | 
			
		||||
        --without-gnutls
 | 
			
		||||
        --without-polarssl
 | 
			
		||||
        --without-mbedtls
 | 
			
		||||
        --without-cyassl
 | 
			
		||||
        --without-nss
 | 
			
		||||
        --without-axtls
 | 
			
		||||
        --without-brotli
 | 
			
		||||
        --without-libmetalink
 | 
			
		||||
        --without-libssh
 | 
			
		||||
        --without-libssh2
 | 
			
		||||
        --without-librtmp
 | 
			
		||||
        --without-nghttp2
 | 
			
		||||
        --without-zsh-functions-dir
 | 
			
		||||
    BUILD_COMMAND make "-j${NPROC}"
 | 
			
		||||
    INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
 | 
			
		||||
)
 | 
			
		||||
add_dependencies(dep_openvdb dep_boost)
 | 
			
		||||
# ExternalProject_Add(dep_libcurl
 | 
			
		||||
#     EXCLUDE_FROM_ALL 1
 | 
			
		||||
#     URL "https://curl.haxx.se/download/curl-7.58.0.tar.gz"
 | 
			
		||||
#     URL_HASH SHA256=cc245bf9a1a42a45df491501d97d5593392a03f7b4f07b952793518d97666115
 | 
			
		||||
#     BUILD_IN_SOURCE 1
 | 
			
		||||
#     CONFIGURE_COMMAND ./configure
 | 
			
		||||
#         --enable-static
 | 
			
		||||
#         --disable-shared
 | 
			
		||||
#         "--with-ssl=${DESTDIR}/usr/local"
 | 
			
		||||
#         --with-pic
 | 
			
		||||
#         --enable-ipv6
 | 
			
		||||
#         --enable-versioned-symbols
 | 
			
		||||
#         --enable-threaded-resolver
 | 
			
		||||
#         --with-darwinssl
 | 
			
		||||
#         --without-ssl     # disables OpenSSL
 | 
			
		||||
#         --disable-ldap
 | 
			
		||||
#         --disable-ldaps
 | 
			
		||||
#         --disable-manual
 | 
			
		||||
#         --disable-rtsp
 | 
			
		||||
#         --disable-dict
 | 
			
		||||
#         --disable-telnet
 | 
			
		||||
#         --disable-pop3
 | 
			
		||||
#         --disable-imap
 | 
			
		||||
#         --disable-smb
 | 
			
		||||
#         --disable-smtp
 | 
			
		||||
#         --disable-gopher
 | 
			
		||||
#         --without-gssapi
 | 
			
		||||
#         --without-libpsl
 | 
			
		||||
#         --without-libidn2
 | 
			
		||||
#         --without-gnutls
 | 
			
		||||
#         --without-polarssl
 | 
			
		||||
#         --without-mbedtls
 | 
			
		||||
#         --without-cyassl
 | 
			
		||||
#         --without-nss
 | 
			
		||||
#         --without-axtls
 | 
			
		||||
#         --without-brotli
 | 
			
		||||
#         --without-libmetalink
 | 
			
		||||
#         --without-libssh
 | 
			
		||||
#         --without-libssh2
 | 
			
		||||
#         --without-librtmp
 | 
			
		||||
#         --without-nghttp2
 | 
			
		||||
#         --without-zsh-functions-dir
 | 
			
		||||
#     BUILD_COMMAND make "-j${NPROC}"
 | 
			
		||||
#     INSTALL_COMMAND make install "DESTDIR=${DESTDIR}"
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
# add_dependencies(dep_openvdb dep_boost)
 | 
			
		||||
							
								
								
									
										104
									
								
								deps/deps-unix-common.cmake
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										104
									
								
								deps/deps-unix-common.cmake
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -40,57 +40,57 @@ endif ()
 | 
			
		|||
#         ${DEP_CMAKE_OPTS}
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
ExternalProject_Add(dep_blosc
 | 
			
		||||
    EXCLUDE_FROM_ALL 1
 | 
			
		||||
    GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
 | 
			
		||||
    GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
 | 
			
		||||
    DEPENDS
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
        -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
        -DBUILD_SHARED=OFF 
 | 
			
		||||
        -DBUILD_STATIC=ON
 | 
			
		||||
        -DBUILD_TESTS=OFF 
 | 
			
		||||
        -DBUILD_BENCHMARKS=OFF 
 | 
			
		||||
        -DPREFER_EXTERNAL_ZLIB=ON
 | 
			
		||||
    PATCH_COMMAND       ${GIT_EXECUTABLE} reset --hard && git clean -df && 
 | 
			
		||||
                        ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch
 | 
			
		||||
)
 | 
			
		||||
# ExternalProject_Add(dep_blosc
 | 
			
		||||
#     EXCLUDE_FROM_ALL 1
 | 
			
		||||
#     GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
 | 
			
		||||
#     GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
 | 
			
		||||
#     DEPENDS
 | 
			
		||||
#     CMAKE_ARGS
 | 
			
		||||
#         -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
#         -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
#         -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
#         -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
#         -DBUILD_SHARED=OFF 
 | 
			
		||||
#         -DBUILD_STATIC=ON
 | 
			
		||||
#         -DBUILD_TESTS=OFF 
 | 
			
		||||
#         -DBUILD_BENCHMARKS=OFF 
 | 
			
		||||
#         -DPREFER_EXTERNAL_ZLIB=ON
 | 
			
		||||
#     PATCH_COMMAND       ${GIT_EXECUTABLE} reset --hard && git clean -df && 
 | 
			
		||||
#                         ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
ExternalProject_Add(dep_openexr
 | 
			
		||||
    EXCLUDE_FROM_ALL 1
 | 
			
		||||
    GIT_REPOSITORY https://github.com/openexr/openexr.git
 | 
			
		||||
    GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0 
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
        -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DBUILD_TESTING=OFF 
 | 
			
		||||
        -DPYILMBASE_ENABLE:BOOL=OFF 
 | 
			
		||||
        -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
 | 
			
		||||
        -DOPENEXR_BUILD_UTILS:BOOL=OFF
 | 
			
		||||
)
 | 
			
		||||
# ExternalProject_Add(dep_openexr
 | 
			
		||||
#     EXCLUDE_FROM_ALL 1
 | 
			
		||||
#     GIT_REPOSITORY https://github.com/openexr/openexr.git
 | 
			
		||||
#     GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0 
 | 
			
		||||
#     CMAKE_ARGS
 | 
			
		||||
#         -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
#         -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
#         -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
#         -DBUILD_TESTING=OFF 
 | 
			
		||||
#         -DPYILMBASE_ENABLE:BOOL=OFF 
 | 
			
		||||
#         -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
 | 
			
		||||
#         -DOPENEXR_BUILD_UTILS:BOOL=OFF
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
ExternalProject_Add(dep_openvdb
 | 
			
		||||
    EXCLUDE_FROM_ALL 1
 | 
			
		||||
    GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
 | 
			
		||||
    GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
 | 
			
		||||
    DEPENDS dep_blosc dep_openexr
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
        -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
        -DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local
 | 
			
		||||
        -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DOPENVDB_BUILD_PYTHON_MODULE=OFF 
 | 
			
		||||
        -DUSE_BLOSC=ON 
 | 
			
		||||
        -DOPENVDB_CORE_SHARED=OFF 
 | 
			
		||||
        -DOPENVDB_CORE_STATIC=ON 
 | 
			
		||||
        -DTBB_STATIC=ON
 | 
			
		||||
        -DOPENVDB_BUILD_VDB_PRINT=ON
 | 
			
		||||
        -DDISABLE_DEPENDENCY_VERSION_CHECKS=ON
 | 
			
		||||
    PATCH_COMMAND PATCH_COMMAND     ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && 
 | 
			
		||||
                                    ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch
 | 
			
		||||
)
 | 
			
		||||
# ExternalProject_Add(dep_openvdb
 | 
			
		||||
#     EXCLUDE_FROM_ALL 1
 | 
			
		||||
#     GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
 | 
			
		||||
#     GIT_TAG aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
 | 
			
		||||
#     DEPENDS dep_blosc dep_openexr
 | 
			
		||||
#     CMAKE_ARGS
 | 
			
		||||
#         -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
#         -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
#         -DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local
 | 
			
		||||
#         -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
#         -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
#         -DOPENVDB_BUILD_PYTHON_MODULE=OFF 
 | 
			
		||||
#         -DUSE_BLOSC=ON 
 | 
			
		||||
#         -DOPENVDB_CORE_SHARED=OFF 
 | 
			
		||||
#         -DOPENVDB_CORE_STATIC=ON 
 | 
			
		||||
#         -DTBB_STATIC=ON
 | 
			
		||||
#         -DOPENVDB_BUILD_VDB_PRINT=ON
 | 
			
		||||
#         -DDISABLE_DEPENDENCY_VERSION_CHECKS=ON
 | 
			
		||||
#     PATCH_COMMAND PATCH_COMMAND     ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && 
 | 
			
		||||
#                                     ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch
 | 
			
		||||
# )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										161
									
								
								deps/deps-windows.cmake
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										161
									
								
								deps/deps-windows.cmake
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -156,89 +156,88 @@ endif ()
 | 
			
		|||
 | 
			
		||||
find_package(Git REQUIRED)
 | 
			
		||||
 | 
			
		||||
ExternalProject_Add(dep_blosc
 | 
			
		||||
    EXCLUDE_FROM_ALL 1
 | 
			
		||||
    #URL https://github.com/Blosc/c-blosc/archive/v1.17.0.zip
 | 
			
		||||
    #URL_HASH SHA256=7463a1df566704f212263312717ab2c36b45d45cba6cd0dccebf91b2cc4b4da9
 | 
			
		||||
    GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
 | 
			
		||||
    GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
 | 
			
		||||
    CMAKE_GENERATOR "${DEP_MSVC_GEN}"
 | 
			
		||||
    CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
        -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
        -DBUILD_SHARED=OFF 
 | 
			
		||||
        -DBUILD_STATIC=ON
 | 
			
		||||
        -DBUILD_TESTS=OFF 
 | 
			
		||||
        -DBUILD_BENCHMARKS=OFF 
 | 
			
		||||
        -DPREFER_EXTERNAL_ZLIB=ON
 | 
			
		||||
        -DBLOSC_IS_SUBPROJECT:BOOL=ON
 | 
			
		||||
        -DBLOSC_INSTALL:BOOL=ON
 | 
			
		||||
    PATCH_COMMAND       ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && 
 | 
			
		||||
                        ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch
 | 
			
		||||
    BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
 | 
			
		||||
    INSTALL_COMMAND ""
 | 
			
		||||
)
 | 
			
		||||
# ExternalProject_Add(dep_blosc
 | 
			
		||||
#     EXCLUDE_FROM_ALL 1
 | 
			
		||||
#     #URL https://github.com/Blosc/c-blosc/archive/v1.17.0.zip
 | 
			
		||||
#     #URL_HASH SHA256=7463a1df566704f212263312717ab2c36b45d45cba6cd0dccebf91b2cc4b4da9
 | 
			
		||||
#     GIT_REPOSITORY https://github.com/Blosc/c-blosc.git
 | 
			
		||||
#     GIT_TAG e63775855294b50820ef44d1b157f4de1cc38d3e #v1.17.0
 | 
			
		||||
#     CMAKE_GENERATOR "${DEP_MSVC_GEN}"
 | 
			
		||||
#     CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
 | 
			
		||||
#     CMAKE_ARGS
 | 
			
		||||
#         -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
#         -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
#         -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
#         -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
#         -DBUILD_SHARED=OFF 
 | 
			
		||||
#         -DBUILD_STATIC=ON
 | 
			
		||||
#         -DBUILD_TESTS=OFF 
 | 
			
		||||
#         -DBUILD_BENCHMARKS=OFF 
 | 
			
		||||
#         -DPREFER_EXTERNAL_ZLIB=ON
 | 
			
		||||
#         -DBLOSC_IS_SUBPROJECT:BOOL=ON
 | 
			
		||||
#         -DBLOSC_INSTALL:BOOL=ON
 | 
			
		||||
#     PATCH_COMMAND       ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && 
 | 
			
		||||
#                         ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/blosc-mods.patch
 | 
			
		||||
#     BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
 | 
			
		||||
#     INSTALL_COMMAND ""
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
add_debug_dep(dep_blosc)
 | 
			
		||||
# add_debug_dep(dep_blosc)
 | 
			
		||||
 | 
			
		||||
ExternalProject_Add(dep_openexr
 | 
			
		||||
    EXCLUDE_FROM_ALL 1
 | 
			
		||||
    GIT_REPOSITORY https://github.com/openexr/openexr.git
 | 
			
		||||
    GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0
 | 
			
		||||
    CMAKE_GENERATOR "${DEP_MSVC_GEN}"
 | 
			
		||||
    CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
        -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DBUILD_TESTING=OFF 
 | 
			
		||||
        -DPYILMBASE_ENABLE:BOOL=OFF 
 | 
			
		||||
        -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
 | 
			
		||||
        -DOPENEXR_BUILD_UTILS:BOOL=OFF
 | 
			
		||||
    BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
 | 
			
		||||
    INSTALL_COMMAND ""
 | 
			
		||||
)
 | 
			
		||||
# ExternalProject_Add(dep_openexr
 | 
			
		||||
#     EXCLUDE_FROM_ALL 1
 | 
			
		||||
#     GIT_REPOSITORY https://github.com/openexr/openexr.git
 | 
			
		||||
#     GIT_TAG eae0e337c9f5117e78114fd05f7a415819df413a #v2.4.0
 | 
			
		||||
#     CMAKE_GENERATOR "${DEP_MSVC_GEN}"
 | 
			
		||||
#     CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
 | 
			
		||||
#     CMAKE_ARGS
 | 
			
		||||
#         -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
#         -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
#         -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
#         -DBUILD_TESTING=OFF 
 | 
			
		||||
#         -DPYILMBASE_ENABLE:BOOL=OFF 
 | 
			
		||||
#         -DOPENEXR_VIEWERS_ENABLE:BOOL=OFF
 | 
			
		||||
#         -DOPENEXR_BUILD_UTILS:BOOL=OFF
 | 
			
		||||
#     BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
 | 
			
		||||
#     INSTALL_COMMAND ""
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
add_debug_dep(dep_openexr)
 | 
			
		||||
# add_debug_dep(dep_openexr)
 | 
			
		||||
 | 
			
		||||
ExternalProject_Add(dep_openvdb
 | 
			
		||||
    EXCLUDE_FROM_ALL 1
 | 
			
		||||
    #URL https://github.com/AcademySoftwareFoundation/openvdb/archive/v6.2.1.zip
 | 
			
		||||
    #URL_HASH SHA256=dc337399dce8e1c9f21f20e97b1ce7e4933cb0a63bb3b8b734d8fcc464aa0c48
 | 
			
		||||
    GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
 | 
			
		||||
    GIT_TAG  aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
 | 
			
		||||
    DEPENDS dep_blosc dep_openexr dep_tbb dep_boost
 | 
			
		||||
    CMAKE_GENERATOR "${DEP_MSVC_GEN}"
 | 
			
		||||
    CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
 | 
			
		||||
    CMAKE_ARGS
 | 
			
		||||
        -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
        -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
        -DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local
 | 
			
		||||
        -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
        -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
        -DOPENVDB_BUILD_PYTHON_MODULE=OFF 
 | 
			
		||||
        -DUSE_BLOSC=ON 
 | 
			
		||||
        -DOPENVDB_CORE_SHARED=OFF 
 | 
			
		||||
        -DOPENVDB_CORE_STATIC=ON 
 | 
			
		||||
        -DTBB_STATIC=ON
 | 
			
		||||
        -DOPENVDB_BUILD_VDB_PRINT=ON
 | 
			
		||||
    BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
 | 
			
		||||
    PATCH_COMMAND       ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && 
 | 
			
		||||
                        ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch
 | 
			
		||||
    INSTALL_COMMAND ""
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if (${DEP_DEBUG})
 | 
			
		||||
    ExternalProject_Get_Property(dep_openvdb BINARY_DIR)
 | 
			
		||||
    ExternalProject_Add_Step(dep_openvdb build_debug
 | 
			
		||||
        DEPENDEES build
 | 
			
		||||
        DEPENDERS install
 | 
			
		||||
        COMMAND ${CMAKE_COMMAND} ../dep_openvdb -DOPENVDB_BUILD_VDB_PRINT=OFF
 | 
			
		||||
        COMMAND msbuild /m /P:Configuration=Debug INSTALL.vcxproj
 | 
			
		||||
        WORKING_DIRECTORY "${BINARY_DIR}"
 | 
			
		||||
    )
 | 
			
		||||
endif ()
 | 
			
		||||
# ExternalProject_Add(dep_openvdb
 | 
			
		||||
#     EXCLUDE_FROM_ALL 1
 | 
			
		||||
#     #URL https://github.com/AcademySoftwareFoundation/openvdb/archive/v6.2.1.zip
 | 
			
		||||
#     #URL_HASH SHA256=dc337399dce8e1c9f21f20e97b1ce7e4933cb0a63bb3b8b734d8fcc464aa0c48
 | 
			
		||||
#     GIT_REPOSITORY https://github.com/AcademySoftwareFoundation/openvdb.git
 | 
			
		||||
#     GIT_TAG  aebaf8d95be5e57fd33949281ec357db4a576c2e #v6.2.1
 | 
			
		||||
#     DEPENDS dep_blosc dep_openexr dep_tbb dep_boost
 | 
			
		||||
#     CMAKE_GENERATOR "${DEP_MSVC_GEN}"
 | 
			
		||||
#     CMAKE_GENERATOR_PLATFORM "${DEP_PLATFORM}"
 | 
			
		||||
#     CMAKE_ARGS
 | 
			
		||||
#         -DCMAKE_INSTALL_PREFIX=${DESTDIR}/usr/local
 | 
			
		||||
#         -DCMAKE_DEBUG_POSTFIX=d
 | 
			
		||||
#         -DCMAKE_PREFIX_PATH=${DESTDIR}/usr/local
 | 
			
		||||
#         -DBUILD_SHARED_LIBS=OFF
 | 
			
		||||
#         -DCMAKE_POSITION_INDEPENDENT_CODE=ON
 | 
			
		||||
#         -DOPENVDB_BUILD_PYTHON_MODULE=OFF 
 | 
			
		||||
#         -DUSE_BLOSC=ON 
 | 
			
		||||
#         -DOPENVDB_CORE_SHARED=OFF 
 | 
			
		||||
#         -DOPENVDB_CORE_STATIC=ON 
 | 
			
		||||
#         -DTBB_STATIC=ON
 | 
			
		||||
#         -DOPENVDB_BUILD_VDB_PRINT=ON
 | 
			
		||||
#     BUILD_COMMAND msbuild /m /P:Configuration=Release INSTALL.vcxproj
 | 
			
		||||
#     PATCH_COMMAND       ${GIT_EXECUTABLE} checkout -f -- . && git clean -df && 
 | 
			
		||||
#                         ${GIT_EXECUTABLE} apply --whitespace=fix ${CMAKE_CURRENT_SOURCE_DIR}/openvdb-mods.patch
 | 
			
		||||
#     INSTALL_COMMAND ""
 | 
			
		||||
# )
 | 
			
		||||
 | 
			
		||||
# if (${DEP_DEBUG})
 | 
			
		||||
#     ExternalProject_Get_Property(dep_openvdb BINARY_DIR)
 | 
			
		||||
#     ExternalProject_Add_Step(dep_openvdb build_debug
 | 
			
		||||
#         DEPENDEES build
 | 
			
		||||
#         DEPENDERS install
 | 
			
		||||
#         COMMAND ${CMAKE_COMMAND} ../dep_openvdb -DOPENVDB_BUILD_VDB_PRINT=OFF
 | 
			
		||||
#         COMMAND msbuild /m /P:Configuration=Debug INSTALL.vcxproj
 | 
			
		||||
#         WORKING_DIRECTORY "${BINARY_DIR}"
 | 
			
		||||
#     )
 | 
			
		||||
# endif ()
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue