|
| 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 | +example_execs = { |
| 19 | + 'parquet-low-level-example': { |
| 20 | + 'sources': files('low_level_api/reader_writer.cc'), |
| 21 | + 'include_dir': include_directories('low_level_api'), |
| 22 | + }, |
| 23 | + 'parquet-low-level-example2': { |
| 24 | + 'sources': files('low_level_api/reader_writer2.cc'), |
| 25 | + 'include_dir': include_directories('low_level_api'), |
| 26 | + }, |
| 27 | + 'parquet-arrow-example': { |
| 28 | + 'sources': files('parquet_arrow/reader_writer.cc'), |
| 29 | + }, |
| 30 | + 'parquet-stream-api-example': { |
| 31 | + 'sources': files('parquet_stream_api/stream_reader_writer.cc'), |
| 32 | + }, |
| 33 | +} |
| 34 | + |
| 35 | +if needs_parquet_encryption |
| 36 | + example_execs += { |
| 37 | + 'parquet-encryption-example': { |
| 38 | + 'sources': files('low_level_api/encryption_reader_writer.cc'), |
| 39 | + 'include_dir': include_directories('low_level_api'), |
| 40 | + }, |
| 41 | + 'parquet-encryption-example-all-crypto-options': { |
| 42 | + 'sources': files( |
| 43 | + 'low_level_api/encryption_reader_writer_all_crypto_options.cc', |
| 44 | + ), |
| 45 | + 'include_dir': include_directories('low_level_api'), |
| 46 | + }, |
| 47 | + } |
| 48 | +endif |
| 49 | + |
| 50 | +foreach key, val : example_execs |
| 51 | + executable( |
| 52 | + key, |
| 53 | + sources: val['sources'], |
| 54 | + include_directories: val.get('include_dir', []), |
| 55 | + dependencies: [arrow_dep, parquet_dep], |
| 56 | + ) |
| 57 | +endforeach |
0 commit comments