Skip to content
32 changes: 32 additions & 0 deletions ports/sparrow-ipc/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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()
Comment on lines +13 to +17
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
set(SPARROW_IPC_BUILD_SHARED ON)
else()
set(SPARROW_IPC_BBUILD_SHARED OFF)
endif()
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SPARROW_IPC_BUILD_SHARED)


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)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
vcpkg_cmake_config_fixup(PACKAGE_NAME sparrow-ipc CONFIG_PATH share/cmake/sparrow-ipc)
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/sparrow-ipc)

PACKAGE_NAME parameter is not necessary in this case.


file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
25 changes: 25 additions & 0 deletions ports/sparrow-ipc/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
Comment on lines +10 to +11
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": "arcticdb-sparrow",
"version>=": "2.4.0"
"name": "arcticdb-sparrow"

We don't usually allow version constraints for packages in the registry.

},
"flatbuffers",
"lz4",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zstd"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions versions/s-/sparrow-ipc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "bedc8b908de21df8200edcaec25c6ddd182b73ec",
"version": "1.0.0",
"port-version": 0
}
]
}