Skip to content

Commit 608d1db

Browse files
authored
[openvdb] Add NanoVDB tools feature (microsoft#44130)
1 parent 5c62200 commit 608d1db

4 files changed

Lines changed: 23 additions & 2 deletions

File tree

ports/openvdb/portfile.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ vcpkg_check_features(
2121
"tools" OPENVDB_BUILD_TOOLS
2222
"ax" OPENVDB_BUILD_AX
2323
"nanovdb" OPENVDB_BUILD_NANOVDB
24+
"nanovdb-tools" NANOVDB_BUILD_TOOLS
2425
)
2526

2627
if (OPENVDB_BUILD_NANOVDB)
2728
set(NANOVDB_OPTIONS
28-
-DNANOVDB_BUILD_TOOLS=OFF
2929
-DNANOVDB_USE_INTRINSICS=ON
3030
-DNANOVDB_USE_CUDA=ON
3131
-DNANOVDB_CUDA_KEEP_PTX=ON
@@ -68,6 +68,10 @@ if (OPENVDB_BUILD_TOOLS)
6868
vcpkg_copy_tools(TOOL_NAMES vdb_print vdb_render vdb_view vdb_lod AUTO_CLEAN)
6969
endif()
7070

71+
if (NANOVDB_BUILD_TOOLS)
72+
vcpkg_copy_tools(TOOL_NAMES nanovdb_convert nanovdb_print nanovdb_validate AUTO_CLEAN)
73+
endif()
74+
7175
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
7276
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
7377
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/openvdb/openvdb/COPYRIGHT")

ports/openvdb/vcpkg.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "openvdb",
33
"version": "12.0.0",
4+
"port-version": 1,
45
"description": "Sparse volume data structure and tools",
56
"homepage": "https://github.com/dreamworksanimation/openvdb",
67
"license": "MPL-2.0",
@@ -44,6 +45,17 @@
4445
"cuda"
4546
]
4647
},
48+
"nanovdb-tools": {
49+
"description": "NanoVDB tools: print, validate, and convert.",
50+
"dependencies": [
51+
{
52+
"name": "openvdb",
53+
"features": [
54+
"nanovdb"
55+
]
56+
}
57+
]
58+
},
4759
"tools": {
4860
"description": "OpenVDB utilities: view, print and render",
4961
"dependencies": [

versions/baseline.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6882,7 +6882,7 @@
68826882
},
68836883
"openvdb": {
68846884
"baseline": "12.0.0",
6885-
"port-version": 0
6885+
"port-version": 1
68866886
},
68876887
"openvino": {
68886888
"baseline": "2025.0.0",

versions/o-/openvdb.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"versions": [
3+
{
4+
"git-tree": "0a440c407a2282daceb06a6d4cd539a8ba067872",
5+
"version": "12.0.0",
6+
"port-version": 1
7+
},
38
{
49
"git-tree": "bb88224f64822d690b692169cbcdb87ffdb9d597",
510
"version": "12.0.0",

0 commit comments

Comments
 (0)