diff --git a/ports/sparrow-ipc/portfile.cmake b/ports/sparrow-ipc/portfile.cmake new file mode 100644 index 00000000000000..63d9de1a761ff3 --- /dev/null +++ b/ports/sparrow-ipc/portfile.cmake @@ -0,0 +1,32 @@ +if(VCPKG_TARGET_IS_LINUX) + message("Warning: `sparrow-ipc` requires Clang18+ or GCC 11.2+ on Linux") +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO sparrow-org/sparrow-ipc + REF "${VERSION}" + SHA512 73c7bb4505bffcf1bdfbb68cd77b0b395c59e463b863c5dd219985b68bc6644d70b54131321c0675b315cd9ef02fcc34534e9c3e5d09f0b8b1b3402c5b1073a4 + HEAD_REF main +) + +if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") + set(SPARROW_IPC_BUILD_SHARED ON) +else() + set(SPARROW_IPC_BBUILD_SHARED OFF) +endif() + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + ${FEATURE_OPTIONS} + -DSPARROW_IPC_BUILD_SHARED=${SPARROW_BUILD_SHARED} +) + +vcpkg_cmake_install() +vcpkg_cmake_config_fixup(PACKAGE_NAME sparrow-ipc CONFIG_PATH share/cmake/sparrow-ipc) + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") diff --git a/ports/sparrow-ipc/vcpkg.json b/ports/sparrow-ipc/vcpkg.json new file mode 100644 index 00000000000000..fba7c9bdf61396 --- /dev/null +++ b/ports/sparrow-ipc/vcpkg.json @@ -0,0 +1,25 @@ +{ + "name": "sparrow-ipc", + "version": "1.0.0", + "description": "C++20 idiomatic APIs for the Apache Arrow Serialization and Interprocess Communication (IPC)", + "homepage": "https://github.com/sparrow-org/sparrow-ipc", + "license": "BSD-3-Clause", + "supports": "!uwp", + "dependencies": [ + { + "name": "arcticdb-sparrow", + "version>=": "2.4.0" + }, + "flatbuffers", + "lz4", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + }, + "zstd" + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index 7635cb30dfc2fb..12f81453d4ee60 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -9408,6 +9408,10 @@ "baseline": "0.11.0", "port-version": 0 }, + "sparrow-ipc": { + "baseline": "1.0.0", + "port-version": 0 + }, "sparsehash": { "baseline": "2.0.4", "port-version": 2 diff --git a/versions/s-/sparrow-ipc.json b/versions/s-/sparrow-ipc.json new file mode 100644 index 00000000000000..ef1ce05018d0ff --- /dev/null +++ b/versions/s-/sparrow-ipc.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "bedc8b908de21df8200edcaec25c6ddd182b73ec", + "version": "1.0.0", + "port-version": 0 + } + ] +}