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/05/02 01:40:17 UTC
(arrow) branch main updated: GH-46163: [C++] Add vendored directory to Meson (#46164)
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 4246cbddc1 GH-46163: [C++] Add vendored directory to Meson (#46164)
4246cbddc1 is described below
commit 4246cbddc1db25858b5083840bdc750c84a5f44d
Author: William Ayd <wi...@icloud.com>
AuthorDate: Thu May 1 21:40:12 2025 -0400
GH-46163: [C++] Add vendored directory to Meson (#46164)
### Rationale for this change
This continues adding support for Meson as a build system generator
### What changes are included in this PR?
This adds the vendored directory to the Meson configuration
### Are these changes tested?
Yes
### Are there any user-facing changes?
No
* GitHub Issue: #46163
Authored-by: Will Ayd <wi...@icloud.com>
Signed-off-by: Sutou Kouhei <ko...@clear-code.com>
---
cpp/src/arrow/meson.build | 1 +
cpp/src/arrow/vendored/datetime/meson.build | 21 +++++++++++++
.../arrow/vendored/double-conversion/meson.build | 34 ++++++++++++++++++++++
cpp/src/arrow/vendored/meson.build | 27 +++++++++++++++++
cpp/src/arrow/vendored/pcg/meson.build | 21 +++++++++++++
.../arrow/vendored/portable-snippets/meson.build | 21 +++++++++++++
cpp/src/arrow/vendored/xxhash/meson.build | 18 ++++++++++++
7 files changed, 143 insertions(+)
diff --git a/cpp/src/arrow/meson.build b/cpp/src/arrow/meson.build
index e47cb8e0c8..3c706d3e1e 100644
--- a/cpp/src/arrow/meson.build
+++ b/cpp/src/arrow/meson.build
@@ -612,6 +612,7 @@ subdir('c')
subdir('io')
subdir('tensor')
subdir('util')
+subdir('vendored')
gflags_dep = dependency('gflags', include_type: 'system')
if needs_integration or needs_tests
diff --git a/cpp/src/arrow/vendored/datetime/meson.build b/cpp/src/arrow/vendored/datetime/meson.build
new file mode 100644
index 0000000000..9ea9278ed4
--- /dev/null
+++ b/cpp/src/arrow/vendored/datetime/meson.build
@@ -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.
+
+install_headers(
+ ['date.h', 'ios.h', 'tz.h', 'tz_private.h', 'visibility.h'],
+ subdir: 'arrow/vendored/datetime',
+)
diff --git a/cpp/src/arrow/vendored/double-conversion/meson.build b/cpp/src/arrow/vendored/double-conversion/meson.build
new file mode 100644
index 0000000000..182a7d6a2d
--- /dev/null
+++ b/cpp/src/arrow/vendored/double-conversion/meson.build
@@ -0,0 +1,34 @@
+# 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.
+
+install_headers(
+ [
+ 'bignum-dtoa.h',
+ 'bignum.h',
+ 'cached-powers.h',
+ 'diy-fp.h',
+ 'double-conversion.h',
+ 'double-to-string.h',
+ 'fast-dtoa.h',
+ 'fixed-dtoa.h',
+ 'ieee.h',
+ 'string-to-double.h',
+ 'strtod.h',
+ 'utils.h',
+ ],
+ subdir: 'arrow/vendored/double-conversion',
+)
diff --git a/cpp/src/arrow/vendored/meson.build b/cpp/src/arrow/vendored/meson.build
new file mode 100644
index 0000000000..bd23b534c7
--- /dev/null
+++ b/cpp/src/arrow/vendored/meson.build
@@ -0,0 +1,27 @@
+# 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.
+
+install_headers(
+ ['datetime.h', 'ProducerConsumerQueue.h', 'strptime.h', 'xxhash.h'],
+ subdir: 'arrow/vendored',
+)
+
+subdir('datetime')
+subdir('double-conversion')
+subdir('pcg')
+subdir('portable-snippets')
+subdir('xxhash')
diff --git a/cpp/src/arrow/vendored/pcg/meson.build b/cpp/src/arrow/vendored/pcg/meson.build
new file mode 100644
index 0000000000..9db808f9d1
--- /dev/null
+++ b/cpp/src/arrow/vendored/pcg/meson.build
@@ -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.
+
+install_headers(
+ ['pcg_extras.hpp', 'pcg_random.hpp', 'pcg_uint128.hpp'],
+ subdir: 'arrow/vendored/pcg',
+)
diff --git a/cpp/src/arrow/vendored/portable-snippets/meson.build b/cpp/src/arrow/vendored/portable-snippets/meson.build
new file mode 100644
index 0000000000..5107f66cd7
--- /dev/null
+++ b/cpp/src/arrow/vendored/portable-snippets/meson.build
@@ -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.
+
+install_headers(
+ ['debug-trap.h', 'safe-math.h'],
+ subdir: 'arrow/vendored/portable-snippets',
+)
diff --git a/cpp/src/arrow/vendored/xxhash/meson.build b/cpp/src/arrow/vendored/xxhash/meson.build
new file mode 100644
index 0000000000..5463bee747
--- /dev/null
+++ b/cpp/src/arrow/vendored/xxhash/meson.build
@@ -0,0 +1,18 @@
+# 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.
+
+install_headers(['xxhash.h'], subdir: 'arrow/vendored/xxhash')