Skip to content

Commit 6804059

Browse files
authored
GH-46155: [C++] Implement Tensorflow directory in Meson (#46156)
### Rationale for this change This continues improving the coverage of the Meson build configuration ### What changes are included in this PR? Added the Tensorflow directory ### Are these changes tested? Yes ### Are there any user-facing changes? No * GitHub Issue: #46155 Authored-by: Will Ayd <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent f1c6619 commit 6804059

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

cpp/meson.options

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,13 @@ option(
7373
type: 'feature',
7474
description: 'Build Arrow with S3 support (requires the AWS SDK for C++)',
7575
)
76+
77+
option(
78+
'tensorflow',
79+
type: 'feature',
80+
description: 'Build Arrow with TensorFlow support enabled',
81+
)
82+
7683
option('testing', type: 'feature', description: 'Build the Arrow testing libraries')
7784
option('tests', type: 'feature', description: 'Build the Arrow googletest unit tests')
7885

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing,
12+
# software distributed under the License is distributed on an
13+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
# KIND, either express or implied. See the License for the
15+
# specific language governing permissions and limitations
16+
# under the License.
17+
18+
install_headers(['convert.h'], subdir: 'arrow/adapters/tensorflow')
19+
20+
pkg.generate(
21+
filebase: 'arrow-tensorflow',
22+
name: 'Apache Arrow Tensorflow',
23+
description: 'Tensorflow modules for Apache Arrow',
24+
requires: ['arrow'],
25+
)

cpp/src/arrow/meson.build

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,3 +727,7 @@ endif
727727
if needs_ipc
728728
subdir('ipc')
729729
endif
730+
731+
if get_option('tensorflow').enabled()
732+
subdir('adapters/tensorflow')
733+
endif

0 commit comments

Comments
 (0)