From 608ddbbe95e4e46317fbca17420767878912d2be Mon Sep 17 00:00:00 2001 From: Addie Morrison Date: Sun, 8 Dec 2019 19:40:12 -0600 Subject: [PATCH] Link Apache Arrow, provide static linking --- meson.build | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 8c2ea0f..0707c6e 100644 --- a/meson.build +++ b/meson.build @@ -1,8 +1,16 @@ project('sqlite-parquet-vtable', 'c', 'cpp', default_options:['c_std=c11', 'cpp_std=c++11']) +arrow = dependency('arrow', version:'0.15.1') parquet = dependency('parquet', version: '1.5.1') sqlite = dependency('sqlite3', version: '>=3.21.0') icu = dependency('icu-i18n') -shared_library('sqlite-parquet-vtable', - dependencies:[parquet, sqlite, icu], - sources: ['src/parquet.cc', 'src/parquet_cursor.cc', 'src/parquet_filter.cc', 'src/parquet_table.cc'] + +dependencies = [arrow, parquet, sqlite, icu] +sources = ['src/parquet.cc', 'src/parquet_cursor.cc', 'src/parquet_filter.cc', 'src/parquet_table.cc'] +static_library('sqlite-parquet-vtable-static', + dependencies: dependencies, + sources: sources +) +shared_library('sqlite-parquet-vtable', + dependencies: dependencies, + sources: sources )