Skip to content

Commit 41f72ae

Browse files
committed
updated build
1 parent 80a5a91 commit 41f72ae

File tree

2 files changed

+20
-31
lines changed

2 files changed

+20
-31
lines changed

meson.build

+19-30
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,12 @@ version_fields = version_str.split('.')
1919
# ------------------------------
2020
# Dependencies
2121

22-
# >> for finding alternate installations
23-
cpp_compiler = meson.get_compiler('cpp')
24-
25-
# alternate paths
26-
libduckdb_customdir = '/usr' / 'local' / 'duckdb-skytether'
27-
28-
libduckdb_libdir = libduckdb_customdir / 'lib'
29-
libduckdb_incdir = libduckdb_customdir / 'include'
30-
31-
# flags so we know when to search for fallbacks
32-
is_custom_libduckdb = false
33-
34-
3522
# >> Backend dependency: tiledb
3623
libtiledb_dep = dependency('tiledb', required: get_option('tiledb'))
3724

3825
# >> Backend dependency: duckdb
3926
# search typical location first (never required)
40-
libduckdb_dep = dependency('duckdb-skytether', method: 'cmake', required: false)
41-
42-
# search alternate location last (fail if duckdb is enabled)
43-
if not libduckdb_dep.found()
44-
libduckdb_dep = cpp_compiler.find_library('duckdb'
45-
,dirs : libduckdb_libdir
46-
,required: get_option('duckdb')
47-
)
48-
49-
if libduckdb_dep.found()
50-
is_custom_libduckdb = true
51-
libduckdb_inc = include_directories(libduckdb_incdir)
52-
endif
53-
endif
54-
27+
libduckdb_dep = dependency('duckdb', method: 'cmake', required: get_option('duckdb'))
5528

5629
# >> configure build options based on libraries we found
5730
mohair_cfgdata = configuration_data({
@@ -60,8 +33,8 @@ mohair_cfgdata = configuration_data({
6033
,'VERSION_MINOR' : version_fields[1]
6134
,'VERSION_PATCH' : version_fields[2]
6235
,'BUILD_IS_DEBUG': get_option('buildtype') == 'debug' ? 1 : 0
63-
,'TILEDB' : libtiledb_dep.found() ? 1 : 0
64-
,'DUCKDB' : libduckdb_dep.found() ? 1 : 0
36+
,'TILEDB' : libtiledb_dep.found() ? 1 : 0
37+
,'DUCKDB' : libduckdb_dep.found() ? 1 : 0
6538
})
6639

6740

@@ -110,6 +83,18 @@ readarrow_bin = executable('read-arrow'
11083
,readarrow_sources
11184
,include_directories: [configuration_inc, libskytether_mohair_inc]
11285
,dependencies : libskytether_mohair_dep
86+
,install_rpath : get_option('prefix') / get_option('libdir')
87+
,install : true
88+
)
89+
90+
# >> writer for Arrow files (useful for format conversion)
91+
writearrow_sources = [ cpp_tooldir / 'write-arrow.cpp' ]
92+
93+
writearrow_bin = executable('write-arrow'
94+
,writearrow_sources
95+
,include_directories: [configuration_inc, libskytether_mohair_inc]
96+
,dependencies : libskytether_mohair_dep
97+
,install_rpath : get_option('prefix') / get_option('libdir')
11398
,install : true
11499
)
115100

@@ -120,6 +105,7 @@ mohair_bin = executable('mohair'
120105
,mohair_sources
121106
,include_directories: [configuration_inc, libskytether_mohair_inc]
122107
,dependencies : libskytether_mohair_dep
108+
,install_rpath : get_option('prefix') / get_option('libdir')
123109
,install : true
124110
)
125111

@@ -133,6 +119,7 @@ mohair_client_bin = executable('mohair-client'
133119
,mohair_client_sources
134120
,include_directories: [configuration_inc, libskytether_mohair_inc]
135121
,dependencies : libskytether_mohair_dep
122+
,install_rpath : get_option('prefix') / get_option('libdir')
136123
,install : true
137124
)
138125

@@ -146,6 +133,7 @@ csd_service_bin = executable('csd-service'
146133
,csd_service_sources
147134
,include_directories: [configuration_inc, libskytether_mohair_inc]
148135
,dependencies : libskytether_mohair_dep
136+
,install_rpath : get_option('prefix') / get_option('libdir')
149137
,install : true
150138
)
151139

@@ -159,6 +147,7 @@ topo_service_bin = executable('topo-service'
159147
,topo_service_sources
160148
,include_directories: [configuration_inc, libskytether_mohair_inc]
161149
,dependencies : libskytether_mohair_dep
150+
,install_rpath : get_option('prefix') / get_option('libdir')
162151
,install : true
163152
)
164153

meson.options

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ option('tiledb'
66

77
option('duckdb'
88
,type : 'feature'
9-
,value : 'auto'
9+
,value : 'enabled'
1010
,description: 'If enabled, adapters for DuckDB are built'
1111
)

0 commit comments

Comments
 (0)