[arrow] Fix feature FlightSQL (#36215)

* [arrow] Fix feature FlightSQL

* update version
This commit is contained in:
Lily Wang 2024-01-17 11:13:28 -08:00 committed by GitHub
parent 91b17dd72a
commit 2f61f9e99e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 36 additions and 3 deletions

View File

@ -23,7 +23,7 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
dataset ARROW_DATASET
filesystem ARROW_FILESYSTEM
flight ARROW_FLIGHT
flight ARROW_FLIGHT_SQL
flightsql ARROW_FLIGHT_SQL
gcs ARROW_GCS
jemalloc ARROW_JEMALLOC
json ARROW_JSON
@ -98,6 +98,14 @@ if("flight" IN_LIST FEATURES)
)
endif()
if("flightsql" IN_LIST FEATURES)
vcpkg_cmake_config_fixup(
PACKAGE_NAME ArrowFlightSql
CONFIG_PATH lib/cmake/ArrowFlightSql
DO_NOT_DELETE_PARENT_CONFIG_PATH
)
endif()
if("parquet" IN_LIST FEATURES)
vcpkg_cmake_config_fixup(
PACKAGE_NAME parquet
@ -126,6 +134,11 @@ if("flight" IN_LIST FEATURES)
file(APPEND "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "${usage-flight}")
endif()
if("flightsql" IN_LIST FEATURES)
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage-flightsql" usage-flightsql)
file(APPEND "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "${usage-flightsql}")
endif()
if("example" IN_LIST FEATURES)
file(INSTALL "${SOURCE_PATH}/cpp/examples/minimal_build/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/example")
endif()

View File

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

View File

@ -1,7 +1,7 @@
{
"name": "arrow",
"version": "14.0.2",
"port-version": 1,
"port-version": 2,
"description": "Cross-language development platform for in-memory analytics",
"homepage": "https://arrow.apache.org",
"license": "Apache-2.0",
@ -71,6 +71,18 @@
"protobuf"
]
},
"flightsql": {
"description": "FlightSQL support",
"dependencies": [
{
"name": "arrow",
"default-features": false,
"features": [
"flight"
]
}
]
},
"gcs": {
"description": "GCS support",
"dependencies": [

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "68021accce836c6b394076d1494379df640dcb8c",
"version": "14.0.2",
"port-version": 2
},
{
"git-tree": "93a9cd414e5d170755234571e42746b413b7deb3",
"version": "14.0.2",

View File

@ -238,7 +238,7 @@
},
"arrow": {
"baseline": "14.0.2",
"port-version": 1
"port-version": 2
},
"arsenalgear": {
"baseline": "2.1.0",