|
| 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 | +csv_test_sources = [ |
| 19 | + 'chunker_test.cc', |
| 20 | + 'column_builder_test.cc', |
| 21 | + 'column_decoder_test.cc', |
| 22 | + 'converter_test.cc', |
| 23 | + 'parser_test.cc', |
| 24 | + 'reader_test.cc', |
| 25 | + 'writer_test.cc', |
| 26 | +] |
| 27 | + |
| 28 | +exc = executable( |
| 29 | + 'arrow-csv-test', |
| 30 | + sources: csv_test_sources, |
| 31 | + dependencies: [arrow_test_dep], |
| 32 | +) |
| 33 | +test('arrow-csv-test', exc) |
| 34 | + |
| 35 | +csv_benchmarks = ['converter_benchmark', 'parser_benchmark', 'writer_benchmark'] |
| 36 | + |
| 37 | +foreach csv_benchmark : csv_benchmarks |
| 38 | + benchmark_name = 'arrow-csv-@0@'.format(csv_benchmark.replace('_', '-')) |
| 39 | + exc = executable( |
| 40 | + benchmark_name, |
| 41 | + sources: '@0@.cc'.format(csv_benchmark), |
| 42 | + dependencies: [arrow_test_dep, benchmark_dep], |
| 43 | + ) |
| 44 | + benchmark(benchmark_name, exc) |
| 45 | +endforeach |
| 46 | + |
| 47 | +install_headers( |
| 48 | + [ |
| 49 | + 'api.h', |
| 50 | + 'chunker.h', |
| 51 | + 'column_builder.h', |
| 52 | + 'column_decoder.h', |
| 53 | + 'converter.h', |
| 54 | + 'invalid_row.h', |
| 55 | + 'options.h', |
| 56 | + 'parser.h', |
| 57 | + 'reader.h', |
| 58 | + 'test_common.h', |
| 59 | + 'type_fwd.h', |
| 60 | + 'writer.h', |
| 61 | + ], |
| 62 | + subdir: 'arrow/csv', |
| 63 | +) |
| 64 | + |
| 65 | + |
| 66 | +pkg.generate( |
| 67 | + filebase: 'arrow-csv', |
| 68 | + name: 'Apache Arrow CSV', |
| 69 | + description: 'CSV reader module for Apache Arrow', |
| 70 | + requires: 'arrow', |
| 71 | +) |
0 commit comments