Skip to content

openvdb: migrate to Conan v2 #18891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Mar 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a49947a
openvdb: migrate to Conan v2
valgur Jul 20, 2023
96de751
openvdb: the patch is no longer required
valgur Jul 24, 2023
900a35d
openvdb: add v8.2.0
valgur Jul 24, 2023
9070fb5
openvdb: bump deps, use cache_variables
valgur Aug 22, 2023
58accf1
openvdb: remove broken minimum TBB version check
valgur Aug 22, 2023
7bd77f4
openvdb: enable v9, v10, expose all available options, fix imath use
valgur Aug 23, 2023
5777c87
openvdb: add and disable use_explicit_instantiation to limit memory u…
valgur Aug 23, 2023
c05c727
openvdb: disable options not available in older versions
valgur Aug 23, 2023
0287728
openvdb: require flex and bison for build_ax
valgur Aug 31, 2023
17d9135
openvdb: backport a bugfix for a build issue
valgur Aug 31, 2023
cadb432
openvdb: bump versions
valgur Sep 12, 2023
da9a962
openvdb: openexr requires transitive_libs=True
valgur Sep 12, 2023
98f24a3
openvdb: use imath instead of openexr for newer versions
valgur Sep 12, 2023
12f863a
openvdb: use strict version checking
valgur Sep 13, 2023
6aa45af
openvdb: set use_imath_half=True
valgur Sep 15, 2023
751a26a
openvdb: bump deps
valgur Oct 31, 2023
02f8f23
openvdb: add v10.1.0
valgur Nov 1, 2023
a0449bc
openvdb: drop v8.0.1
valgur Nov 1, 2023
60669bf
openvdb: add v11.0.0
valgur Nov 2, 2023
ee9122d
Merge branch 'master' into migrate/openvdb
valgur Nov 14, 2023
3fe81ff
openvdb: fix C++ standard in test_package
valgur Nov 15, 2023
e56178f
openvdb: drop v8
valgur Nov 16, 2023
9d4fa02
Merge remote-tracking branch 'upstream/master' into migrate/openvdb
valgur Mar 22, 2024
d0da4a4
openvdb: enable log4cplus by default, bump deps
valgur Mar 22, 2024
2cbf366
openvdb: deprecation warning for with_exr
valgur Mar 22, 2024
a4d623e
openvdb: disable log4cplus
valgur Mar 22, 2024
33b2ad4
openvdb: don't need cache_variables
valgur Mar 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions recipes/openvdb/all/CMakeLists.txt

This file was deleted.

16 changes: 9 additions & 7 deletions recipes/openvdb/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
sources:
"8.0.1":
url: "https://github.com/AcademySoftwareFoundation/openvdb/archive/refs/tags/v8.0.1.tar.gz"
sha256: "a6845da7c604d2c72e4141c898930ac8a2375521e535f696c2cd92bebbe43c4f"
patches:
"8.0.1":
- patch_file: "patches/0001-Find-packages-fixes.patch"
base_path: "source_subfolder"
"11.0.0":
url: "https://github.com/AcademySoftwareFoundation/openvdb/archive/refs/tags/v11.0.0.tar.gz"
sha256: "6314ff1db057ea90050763e7b7d7ed86d8224fcd42a82cdbb9c515e001b96c74"
"10.1.0":
url: "https://github.com/AcademySoftwareFoundation/openvdb/archive/refs/tags/v10.1.0.tar.gz"
sha256: "2746236e29659a0d35ab90d832f7c7987dd2537587a1a2f9237d9c98afcd5817"
"9.1.0":
url: "https://github.com/AcademySoftwareFoundation/openvdb/archive/refs/tags/v9.1.0.tar.gz"
sha256: "914ee417b4607c75c95b53bc73a0599de4157c7d6a32e849e80f24e40fb64181"
374 changes: 214 additions & 160 deletions recipes/openvdb/all/conanfile.py

Large diffs are not rendered by default.

14 changes: 0 additions & 14 deletions recipes/openvdb/all/patches/0001-Find-packages-fixes.patch

This file was deleted.

13 changes: 7 additions & 6 deletions recipes/openvdb/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.15)
project(test_package CXX)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)

find_package(OpenVDB REQUIRED)
find_package(OpenVDB REQUIRED CONFIG)

add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE OpenVDB::openvdb)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
if (OpenVDB_VERSION VERSION_GREATER_EQUAL "10.0.0")
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
else()
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
endif()
19 changes: 14 additions & 5 deletions recipes/openvdb/all/test_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
from conans import ConanFile, CMake, tools
from conan import ConanFile
from conan.tools.build import can_run
from conan.tools.cmake import cmake_layout, CMake
import os


class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "cmake", "cmake_find_package"
generators = "CMakeDeps", "CMakeToolchain", "VirtualRunEnv"
test_type = "explicit"

def requirements(self):
self.requires(self.tested_reference_str)

def layout(self):
cmake_layout(self)

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def test(self):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)
if can_run(self):
bin_path = os.path.join(self.cpp.build.bindir, "test_package")
self.run(bin_path, env="conanrun")
8 changes: 8 additions & 0 deletions recipes/openvdb/all/test_v1_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
cmake_minimum_required(VERSION 3.15)
project(test_package)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/
${CMAKE_CURRENT_BINARY_DIR}/test_package/)
17 changes: 17 additions & 0 deletions recipes/openvdb/all/test_v1_package/conanfile.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from conans import ConanFile, CMake, tools
import os


class TestPackageConan(ConanFile):
settings = "os", "arch", "compiler", "build_type"
generators = "cmake", "cmake_find_package_multi"

def build(self):
cmake = CMake(self)
cmake.configure()
cmake.build()

def test(self):
if not tools.cross_building(self):
bin_path = os.path.join("bin", "test_package")
self.run(bin_path, run_environment=True)
6 changes: 5 additions & 1 deletion recipes/openvdb/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
versions:
"8.0.1":
"11.0.0":
folder: all
"10.1.0":
folder: all
"9.1.0":
folder: all