[arrow] Add Flight findpackage (#33934)

* [arrow] Add Flight findpackage

* update version

* apply suggesstion

* update version

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
This commit is contained in:
JonLiu1993 2023-09-26 20:37:01 -07:00 committed by GitHub
parent 1b4d69f302
commit 84296312ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 1 deletions

View File

@ -88,6 +88,14 @@ if("acero" IN_LIST FEATURES)
)
endif()
if("flight" IN_LIST FEATURES)
vcpkg_cmake_config_fixup(
PACKAGE_NAME ArrowFlight
CONFIG_PATH lib/cmake/ArrowFlight
DO_NOT_DELETE_PARENT_CONFIG_PATH
)
endif()
if("parquet" IN_LIST FEATURES)
vcpkg_cmake_config_fixup(
PACKAGE_NAME parquet
@ -111,6 +119,11 @@ if("acero" IN_LIST FEATURES)
file(APPEND "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "${usage-acero}")
endif()
if("flight" IN_LIST FEATURES)
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage-flight" usage-flight)
file(APPEND "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "${usage-flight}")
endif()
if("example" IN_LIST FEATURES)
file(INSTALL "${SOURCE_PATH}/cpp/examples/minimal_build/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/example")
endif()

3
ports/arrow/usage-flight Normal file
View File

@ -0,0 +1,3 @@
find_package(ArrowFlight CONFIG REQUIRED)
target_link_libraries(main PRIVATE "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,ArrowFlight::arrow_flight_static,ArrowFlight::arrow_flight_shared>")

View File

@ -1,6 +1,7 @@
{
"name": "arrow",
"version": "13.0.0",
"port-version": 1,
"description": "Cross-language development platform for in-memory analytics",
"homepage": "https://arrow.apache.org",
"license": "Apache-2.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "58708e6a9ecca81874ff79869e9006d42ca2bbfe",
"version": "13.0.0",
"port-version": 1
},
{
"git-tree": "ef87d769431fcefcb1d2864a9266cba168602fa2",
"version": "13.0.0",

View File

@ -234,7 +234,7 @@
},
"arrow": {
"baseline": "13.0.0",
"port-version": 0
"port-version": 1
},
"arsenalgear": {
"baseline": "2.1.0",