[tiledb] New port (#46760)
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO TileDB-Inc/TileDB
|
||||
REF "${VERSION}"
|
||||
HEAD_REF main
|
||||
SHA512 fdf8b41ec3b412874dbed4d8420a95821accf31a627f0746ca81656a98e60326aa479ffe7c8561b11c6fd7bc78dcaa8e9750bb2fcc94f92319c73379160caed9
|
||||
PATCHES
|
||||
rm-cpp17-pmr.patch
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${SOURCE_PATH}/external/"
|
||||
"${SOURCE_PATH}/tiledb/common/polymorphic_allocator/"
|
||||
"${SOURCE_PATH}/tiledb/sm/serialization/tiledb-rest.capnp.c++"
|
||||
"${SOURCE_PATH}/tiledb/sm/serialization/tiledb-rest.capnp.h"
|
||||
)
|
||||
|
||||
if ("serialization" IN_LIST FEATURES)
|
||||
# Regenerate the capnp serialization files with the version installed in vcpkg.
|
||||
# This allows updating capnproto independently of upstream tiledb.
|
||||
|
||||
# Add capnproto directory to PATH, in order to find the C++ plugin.
|
||||
vcpkg_add_to_path("${CURRENT_HOST_INSTALLED_DIR}/tools/capnproto")
|
||||
vcpkg_execute_required_process(
|
||||
COMMAND
|
||||
"${CURRENT_HOST_INSTALLED_DIR}/tools/capnproto/capnp${VCPKG_HOST_EXECUTABLE_SUFFIX}"
|
||||
"compile"
|
||||
"-I${CURRENT_HOST_INSTALLED_DIR}/include"
|
||||
"-oc++:${SOURCE_PATH}/tiledb/sm/serialization"
|
||||
"${SOURCE_PATH}/tiledb/sm/serialization/tiledb-rest.capnp"
|
||||
"--src-prefix=${SOURCE_PATH}/tiledb/sm/serialization"
|
||||
WORKING_DIRECTORY "${CURRENT_HOST_INSTALLED_DIR}/tools/capnproto"
|
||||
LOGNAME gen-capnp-sources
|
||||
)
|
||||
endif()
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
azure TILEDB_AZURE
|
||||
gcs TILEDB_GCS
|
||||
s3 TILEDB_S3
|
||||
serialization TILEDB_SERIALIZATION
|
||||
webp TILEDB_WEBP
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DTILEDB_TESTS=OFF
|
||||
-DTILEDB_TOOLS=OFF
|
||||
-DTILEDB_CPP_API=ON
|
||||
-DTILEDB_STATS=ON
|
||||
-DTILEDB_WERROR=OFF
|
||||
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
||||
# Suppress auto-detecting AVX2 support, because it makes builds non-deterministic.
|
||||
# Anybody who wants it has to explicitly enable it in a triplet.
|
||||
-DCOMPILER_SUPPORTS_AVX2=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/TileDB)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
# pkgconfig files are currently broken.
|
||||
"${CURRENT_PACKAGES_DIR}/lib/pkgconfig"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
@@ -0,0 +1,14 @@
|
||||
diff --git a/cmake/Modules/DetectStdPmr.cmake b/cmake/Modules/DetectStdPmr.cmake
|
||||
index cbea923..9651057 100644
|
||||
--- a/cmake/Modules/DetectStdPmr.cmake
|
||||
+++ b/cmake/Modules/DetectStdPmr.cmake
|
||||
@@ -26,6 +26,9 @@
|
||||
#
|
||||
# Detect whether polymorphic allocators are available on the system.
|
||||
|
||||
+# Always use std::pmr for vcpkg port, to avoid compiling vendored source file.
|
||||
+return()
|
||||
+
|
||||
# Special case for macOS when the CMAKE_OSX_DEPLOYMENT_TARGET is set to anything
|
||||
# less than 14. For some reason, std::pmr is still detectable, but the resulting
|
||||
# binary dies with a dyld missing symbol error.
|
||||
@@ -0,0 +1,4 @@
|
||||
tiledb provides CMake targets:
|
||||
|
||||
find_package(TileDB CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE TileDB::tiledb)
|
||||
@@ -0,0 +1,90 @@
|
||||
{
|
||||
"name": "tiledb",
|
||||
"version": "2.30.0",
|
||||
"description": "Cloud-native embeddable array storage engine",
|
||||
"homepage": "https://github.com/TileDB-Inc/TileDB",
|
||||
"license": "MIT",
|
||||
"supports": "!(x86 | arm32 | uwp)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "blosc2",
|
||||
"default-features": false
|
||||
},
|
||||
"bzip2",
|
||||
"lz4",
|
||||
"nlohmann-json",
|
||||
{
|
||||
"name": "openssl",
|
||||
"platform": "!windows"
|
||||
},
|
||||
"spdlog",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
},
|
||||
"zlib",
|
||||
"zstd"
|
||||
],
|
||||
"features": {
|
||||
"azure": {
|
||||
"description": "Support Azure Blob Storage",
|
||||
"dependencies": [
|
||||
"azure-identity-cpp",
|
||||
"azure-storage-blobs-cpp",
|
||||
"azure-storage-files-datalake-cpp"
|
||||
]
|
||||
},
|
||||
"gcs": {
|
||||
"description": "Support Google Cloud Storage",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "google-cloud-cpp",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"storage"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"s3": {
|
||||
"description": "Support Amazon S3",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "aws-sdk-cpp",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"identity-management",
|
||||
"s3",
|
||||
"sts"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"serialization": {
|
||||
"description": "Support TileDB Cloud",
|
||||
"dependencies": [
|
||||
"capnproto",
|
||||
{
|
||||
"name": "capnproto",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "curl",
|
||||
"features": [
|
||||
"zstd"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"webp": {
|
||||
"description": "Support WebP filtering",
|
||||
"dependencies": [
|
||||
"libwebp"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -9768,6 +9768,10 @@
|
||||
"baseline": "4.7.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"tiledb": {
|
||||
"baseline": "2.30.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"tinkerforge": {
|
||||
"baseline": "2.1.25",
|
||||
"port-version": 3
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7525148f308c04cb362009d9b95df0078f8329e9",
|
||||
"version": "2.30.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user