diff --git a/cpp/meson.options b/cpp/meson.options index a3a969b8bbce..b51d20c8d5b1 100644 --- a/cpp/meson.options +++ b/cpp/meson.options @@ -73,6 +73,13 @@ option( type: 'feature', description: 'Build Arrow with S3 support (requires the AWS SDK for C++)', ) + +option( + 'tensorflow', + type: 'feature', + description: 'Build Arrow with TensorFlow support enabled', +) + option('testing', type: 'feature', description: 'Build the Arrow testing libraries') option('tests', type: 'feature', description: 'Build the Arrow googletest unit tests') diff --git a/cpp/src/arrow/adapters/tensorflow/meson.build b/cpp/src/arrow/adapters/tensorflow/meson.build new file mode 100644 index 000000000000..f294d1010ba4 --- /dev/null +++ b/cpp/src/arrow/adapters/tensorflow/meson.build @@ -0,0 +1,25 @@ +# 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(['convert.h'], subdir: 'arrow/adapters/tensorflow') + +pkg.generate( + filebase: 'arrow-tensorflow', + name: 'Apache Arrow Tensorflow', + description: 'Tensorflow modules for Apache Arrow', + requires: ['arrow'], +) diff --git a/cpp/src/arrow/meson.build b/cpp/src/arrow/meson.build index a661a7ea1ced..018cb2dac540 100644 --- a/cpp/src/arrow/meson.build +++ b/cpp/src/arrow/meson.build @@ -727,3 +727,7 @@ endif if needs_ipc subdir('ipc') endif + +if get_option('tensorflow').enabled() + subdir('adapters/tensorflow') +endif