arrow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject arrow git commit: ARROW-1506: [C++] Add .pc for compute modules
Date Sat, 09 Sep 2017 17:50:35 GMT
Repository: arrow
Updated Branches:
  refs/heads/master 1706aabab -> 675e25158


ARROW-1506: [C++] Add .pc for compute modules

If .pc for compute modules exist, we can detect whether compute modules
are built or not by pkg-config:

    pkg-config --exists arrow-compute

Author: Kouhei Sutou <kou@clear-code.com>

Closes #1070 from kou/cpp-add-pc-for-arrow-compute and squashes the following commits:

59fcd346 [Kouhei Sutou] [C++] Add .pc for compute modules


Project: http://git-wip-us.apache.org/repos/asf/arrow/repo
Commit: http://git-wip-us.apache.org/repos/asf/arrow/commit/675e2515
Tree: http://git-wip-us.apache.org/repos/asf/arrow/tree/675e2515
Diff: http://git-wip-us.apache.org/repos/asf/arrow/diff/675e2515

Branch: refs/heads/master
Commit: 675e251586981eaedb01bec039c88f6540571a59
Parents: 1706aab
Author: Kouhei Sutou <kou@clear-code.com>
Authored: Sat Sep 9 13:50:30 2017 -0400
Committer: Wes McKinney <wes.mckinney@twosigma.com>
Committed: Sat Sep 9 13:50:30 2017 -0400

----------------------------------------------------------------------
 cpp/src/arrow/compute/CMakeLists.txt      |  8 ++++++++
 cpp/src/arrow/compute/arrow-compute.pc.in | 21 +++++++++++++++++++++
 2 files changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/arrow/blob/675e2515/cpp/src/arrow/compute/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/cpp/src/arrow/compute/CMakeLists.txt b/cpp/src/arrow/compute/CMakeLists.txt
index fa475ca..4589afb 100644
--- a/cpp/src/arrow/compute/CMakeLists.txt
+++ b/cpp/src/arrow/compute/CMakeLists.txt
@@ -23,6 +23,14 @@ install(FILES
   kernel.h
   DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/arrow/compute")
 
+# pkg-config support
+configure_file(arrow-compute.pc.in
+  "${CMAKE_CURRENT_BINARY_DIR}/arrow-compute.pc"
+  @ONLY)
+install(
+  FILES "${CMAKE_CURRENT_BINARY_DIR}/arrow-compute.pc"
+  DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
+
 #######################################
 # Unit tests
 #######################################

http://git-wip-us.apache.org/repos/asf/arrow/blob/675e2515/cpp/src/arrow/compute/arrow-compute.pc.in
----------------------------------------------------------------------
diff --git a/cpp/src/arrow/compute/arrow-compute.pc.in b/cpp/src/arrow/compute/arrow-compute.pc.in
new file mode 100644
index 0000000..bbdb12c
--- /dev/null
+++ b/cpp/src/arrow/compute/arrow-compute.pc.in
@@ -0,0 +1,21 @@
+# 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.
+
+Name: Apache Arrow Compute
+Description: Compute modules for Apache Arrow
+Version: @ARROW_VERSION@
+Requires: arrow


Mime
View raw message