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 2025/03/18 00:26:26 UTC
(arrow) branch main updated: GH-45825: [C++] Add c directory to Meson configuration (#45826)
This is an automated email from the ASF dual-hosted git repository.
kou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 8cb4500b9d GH-45825: [C++] Add c directory to Meson configuration (#45826)
8cb4500b9d is described below
commit 8cb4500b9ddf5d13f911b10562d6fc6cbd3aef73
Author: William Ayd <wi...@icloud.com>
AuthorDate: Mon Mar 17 20:26:21 2025 -0400
GH-45825: [C++] Add c directory to Meson configuration (#45826)
### Rationale for this change
This continues adding features to the Arrow C++ Meson configurations
### What changes are included in this PR?
Added the c directory to the Meson configuration
### Are these changes tested?
Yes
### Are there any user-facing changes?
No
* GitHub Issue: #45825
Authored-by: Will Ayd <wi...@icloud.com>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
cpp/src/arrow/c/meson.build | 39 +++++++++++++++++++++++++++++++++++++++
cpp/src/arrow/meson.build | 1 +
2 files changed, 40 insertions(+)
diff --git a/cpp/src/arrow/c/meson.build b/cpp/src/arrow/c/meson.build
new file mode 100644
index 0000000000..80bf3408ba
--- /dev/null
+++ b/cpp/src/arrow/c/meson.build
@@ -0,0 +1,39 @@
+# 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.
+
+exc = executable(
+ 'arrow-c-bridge-test',
+ sources: ['bridge_test.cc'],
+ dependencies: [arrow_test_dep],
+)
+test('arrow-c-bridge-test', exc)
+
+exc = executable(
+ 'arrow-dlpack-test',
+ sources: ['dlpack_test.cc'],
+ dependencies: [arrow_test_dep],
+)
+test('arrow-dlpack-test', exc)
+
+exc = executable(
+ 'arrow-bridge-benchmark',
+ sources: ['bridge_benchmark.cc'],
+ dependencies: [arrow_test_dep, benchmark_dep],
+)
+benchmark('arrow-bridge-benchmark', exc)
+
+install_headers(['abi.h', 'bridge.h', 'dlpack_abi.h', 'dlpack.h', 'helpers.h'])
diff --git a/cpp/src/arrow/meson.build b/cpp/src/arrow/meson.build
index 3f30b6b666..b44a6a9fe3 100644
--- a/cpp/src/arrow/meson.build
+++ b/cpp/src/arrow/meson.build
@@ -511,4 +511,5 @@ pkg.generate(
subdir('testing')
+subdir('c')
subdir('util')