Skip to content

Commit

Permalink
[arrow] Add Flight findpackage (microsoft#33934)
Browse files Browse the repository at this point in the history
* [arrow] Add Flight findpackage

* update version

* apply suggesstion

* update version

---------

Co-authored-by: Zhao Liu <v-zhli17@microsoft.com>
  • Loading branch information
JonLiu1993 and Zhao Liu authored Sep 27, 2023
1 parent 1b4d69f commit 8429631
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
13 changes: 13 additions & 0 deletions ports/arrow/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down
3 changes: 3 additions & 0 deletions ports/arrow/usage-flight
Original file line number Diff line number Diff line change
@@ -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>")
1 change: 1 addition & 0 deletions ports/arrow/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions versions/a-/arrow.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "58708e6a9ecca81874ff79869e9006d42ca2bbfe",
"version": "13.0.0",
"port-version": 1
},
{
"git-tree": "ef87d769431fcefcb1d2864a9266cba168602fa2",
"version": "13.0.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
},
"arrow": {
"baseline": "13.0.0",
"port-version": 0
"port-version": 1
},
"arsenalgear": {
"baseline": "2.1.0",
Expand Down

0 comments on commit 8429631

Please sign in to comment.