Skip to content

Commit e16176e

Browse files
authored
[pdal, pdal-dimbuilder] Update to 2.9.1 [spz] New port (#47073)
1 parent 34a9aa5 commit e16176e

File tree

14 files changed

+97
-26
lines changed

14 files changed

+97
-26
lines changed

ports/pdal-dimbuilder/portfile.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ vcpkg_from_github(
99
#[[
1010
Attention: pdal must be updated together with pdal-dimbuilder
1111
#]]
12-
SHA512 85aaab726d172ef46b8cf05bd72772da72cf5615db549cd262acc4d468f631f1093577b9866ca598b7bef72507f7774e599e66a6cbbf589bd1b5b85bb8107642
12+
SHA512 4a7f4356530a3d2c1ecde8c3aa7cfee052eb7d57a33e5e8bf7699e05bf0994bfc5552562b22af744879866336deea228cee75b543b89399fbeb952c400c33ea2
1313
HEAD_REF master
1414
PATCHES
1515
namespace-nl.diff

ports/pdal-dimbuilder/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pdal-dimbuilder",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "A tool used by the PDAL build process",
55
"homepage": "https://pdal.io/",
66
"license": "BSD-3-Clause",

ports/pdal/dependencies.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ index dc65543..5bccbce 100644
1212
-add_subdirectory(vendor/utfcpp)
1313
add_subdirectory(vendor/lepcc)
1414
-add_subdirectory(vendor/h3)
15-
add_subdirectory(vendor/spz)
1615
add_subdirectory(tools)
1716
add_subdirectory(apps)
18-
@@ -220,12 +217,13 @@ add_library(PDAL::PDAL ALIAS ${PDAL_LIB_NAME})
17+
18+
@@ -230,12 +227,13 @@ add_library(PDAL::PDAL ALIAS ${PDAL_LIB_NAME})
1919

2020

2121

ports/pdal/portfile.cmake

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ vcpkg_from_github(
77
#[[
88
Attention: pdal-dimbuilder must be updated together with pdal
99
#]]
10-
SHA512 85aaab726d172ef46b8cf05bd72772da72cf5615db549cd262acc4d468f631f1093577b9866ca598b7bef72507f7774e599e66a6cbbf589bd1b5b85bb8107642
10+
SHA512 4a7f4356530a3d2c1ecde8c3aa7cfee052eb7d57a33e5e8bf7699e05bf0994bfc5552562b22af744879866336deea228cee75b543b89399fbeb952c400c33ea2
1111
HEAD_REF master
1212
PATCHES
1313
dependencies.diff
1414
external-dimbuilder.diff
1515
find-library-suffix.diff
1616
no-rpath.patch
17-
spz-zlib.diff # https://github.com/PDAL/PDAL/issues/4745
1817
)
1918
file(REMOVE_RECURSE
2019
"${SOURCE_PATH}/cmake/modules/FindCurl.cmake"
@@ -47,6 +46,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
4746
hdf5 BUILD_PLUGIN_HDF
4847
lzma WITH_LZMA
4948
pgpointcloud BUILD_PLUGIN_PGPOINTCLOUD
49+
spz BUILD_PLUGIN_SPZ
5050
zstd WITH_ZSTD
5151
)
5252

@@ -107,14 +107,10 @@ file(READ "${SOURCE_PATH}/vendor/lepcc/src/LEPCC.h" license)
107107
string(REGEX REPLACE "^/\\*\n|\\*/.*\$" "" license "${license}")
108108
file(WRITE "${lepcc_license}" "${license}")
109109

110-
set(spz_license "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/spz LICENSE")
111-
file(COPY_FILE "${SOURCE_PATH}/vendor/spz/LICENSE" "${spz_license}")
112-
113110
vcpkg_install_copyright(FILE_LIST
114111
"${SOURCE_PATH}/LICENSE.txt"
115112
"${arbiter_license}"
116113
"${kazhdan_license}"
117114
"${lazperf_license}"
118115
"${lepcc_license}"
119-
"${spz_license}"
120116
)

ports/pdal/spz-zlib.diff

Lines changed: 0 additions & 11 deletions
This file was deleted.

ports/pdal/usage

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
pdal provides CMake targets:
22

33
find_package(PDAL CONFIG REQUIRED)
4-
target_link_libraries(main PRIVATE $<TARGET_NAME:pdalcpp>)
5-
4+
target_link_libraries(main PRIVATE pdalcpp)
5+
66
If necessary, override the default plugin search path by setting the
77
environment variable PDAL_DRIVER_PATH to a list of directories that
88
PDAL should search for plugins.

ports/pdal/vcpkg.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pdal",
3-
"version": "2.9.0",
3+
"version": "2.9.1",
44
"description": "PDAL - Point Data Abstraction Library is a library for manipulating point cloud data.",
55
"homepage": "https://pdal.io/",
66
"license": null,
@@ -81,6 +81,12 @@
8181
}
8282
]
8383
},
84+
"spz": {
85+
"description": "Build the SPZ plugin",
86+
"dependencies": [
87+
"spz"
88+
]
89+
},
8490
"supported-plugins": {
8591
"description": "Default set of plugins, dependent on platform",
8692
"dependencies": [

ports/spz/android-log.diff

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/CMakeLists.txt b/CMakeLists.txt
2+
index ca49824..01f53ca 100644
3+
--- a/CMakeLists.txt
4+
+++ b/CMakeLists.txt
5+
@@ -27,6 +27,9 @@ add_library(spz ${spz_sources})
6+
add_library(spz::spz ALIAS spz)
7+
8+
target_link_libraries(spz PRIVATE ZLIB::ZLIB)
9+
+if(ANDROID)
10+
+ target_link_libraries(spz PRIVATE log)
11+
+endif()
12+
13+
target_include_directories(spz
14+
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/cc>

ports/spz/portfile.cmake

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
if(VCPKG_TARGET_IS_WINDOWS)
2+
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
3+
endif()
4+
5+
vcpkg_from_github(
6+
OUT_SOURCE_PATH SOURCE_PATH
7+
REPO nianticlabs/spz
8+
REF v${VERSION}
9+
SHA512 e1ee9314bd0a698e73db6d02937a20eea9419864d45eaa03e184cd9fca07dc08a92c2dfedf8e2415cbfc1ca3917435eb54ad0badd0f584aeeb2038b3bf7f000a
10+
HEAD_REF main
11+
PATCHES
12+
android-log.diff
13+
)
14+
15+
vcpkg_cmake_configure(
16+
SOURCE_PATH "${SOURCE_PATH}"
17+
)
18+
19+
vcpkg_cmake_install()
20+
vcpkg_copy_pdbs()
21+
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/spz")
22+
23+
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
24+
25+
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

ports/spz/vcpkg.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "spz",
3+
"version": "2.0.0",
4+
"description": "File format for 3D Gaussian splats.",
5+
"homepage": "https://scaniverse.com/spz",
6+
"license": "MIT",
7+
"dependencies": [
8+
{
9+
"name": "vcpkg-cmake",
10+
"host": true
11+
},
12+
{
13+
"name": "vcpkg-cmake-config",
14+
"host": true
15+
},
16+
"zlib"
17+
]
18+
}

0 commit comments

Comments
 (0)