You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ko...@apache.org on 2019/06/17 00:26:56 UTC

[arrow] branch master updated: ARROW-5547: [C++][FlightRPC] Support pkg-config for Arrow Flight

This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new a9b8ad1  ARROW-5547: [C++][FlightRPC] Support pkg-config for Arrow Flight
a9b8ad1 is described below

commit a9b8ad1f735f272a30f25c7922a095e417fdfc48
Author: Yosuke Shiro <yo...@gmail.com>
AuthorDate: Mon Jun 17 09:26:47 2019 +0900

    ARROW-5547: [C++][FlightRPC] Support pkg-config for Arrow Flight
    
    Author: Yosuke Shiro <yo...@gmail.com>
    
    Closes #4587 from shiro615/pkg-config-arrow-flight and squashes the following commits:
    
    e39220cec <Yosuke Shiro> Support pkg-config for Arrow Flight
---
 cpp/src/arrow/flight/CMakeLists.txt     |  5 +++++
 cpp/src/arrow/flight/arrow-flight.pc.in | 24 ++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

diff --git a/cpp/src/arrow/flight/CMakeLists.txt b/cpp/src/arrow/flight/CMakeLists.txt
index 5f193f6..f733b54 100644
--- a/cpp/src/arrow/flight/CMakeLists.txt
+++ b/cpp/src/arrow/flight/CMakeLists.txt
@@ -20,6 +20,11 @@ add_custom_target(arrow_flight)
 # Header files
 arrow_install_all_headers("arrow/flight")
 
+# pkg-config support
+configure_file(arrow-flight.pc.in "${CMAKE_CURRENT_BINARY_DIR}/arrow-flight.pc" @ONLY)
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/arrow-flight.pc"
+        DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
+
 set(ARROW_FLIGHT_STATIC_LINK_LIBS
     protobuf::libprotobuf
     gRPC::grpc++
diff --git a/cpp/src/arrow/flight/arrow-flight.pc.in b/cpp/src/arrow/flight/arrow-flight.pc.in
new file mode 100644
index 0000000..939fbe5
--- /dev/null
+++ b/cpp/src/arrow/flight/arrow-flight.pc.in
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
+
+Name: Apache Arrow Flight
+Description: Apache Arrow's RPC system built on gRPC
+Version: @ARROW_VERSION@
+Requires: arrow