@@ -19,39 +19,12 @@ version_fields = version_str.split('.')
19
19
# ------------------------------
20
20
# Dependencies
21
21
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
-
35
22
# >> Backend dependency: tiledb
36
23
libtiledb_dep = dependency (' tiledb' , required : get_option (' tiledb' ))
37
24
38
25
# >> Backend dependency: duckdb
39
26
# 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' ))
55
28
56
29
# >> configure build options based on libraries we found
57
30
mohair_cfgdata = configuration_data ({
@@ -60,8 +33,8 @@ mohair_cfgdata = configuration_data({
60
33
,' VERSION_MINOR' : version_fields[1 ]
61
34
,' VERSION_PATCH' : version_fields[2 ]
62
35
,' 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
65
38
})
66
39
67
40
@@ -110,6 +83,18 @@ readarrow_bin = executable('read-arrow'
110
83
,readarrow_sources
111
84
,include_directories : [configuration_inc, libskytether_mohair_inc]
112
85
,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' )
113
98
,install : true
114
99
)
115
100
@@ -120,6 +105,7 @@ mohair_bin = executable('mohair'
120
105
,mohair_sources
121
106
,include_directories : [configuration_inc, libskytether_mohair_inc]
122
107
,dependencies : libskytether_mohair_dep
108
+ ,install_rpath : get_option (' prefix' ) / get_option (' libdir' )
123
109
,install : true
124
110
)
125
111
@@ -133,6 +119,7 @@ mohair_client_bin = executable('mohair-client'
133
119
,mohair_client_sources
134
120
,include_directories : [configuration_inc, libskytether_mohair_inc]
135
121
,dependencies : libskytether_mohair_dep
122
+ ,install_rpath : get_option (' prefix' ) / get_option (' libdir' )
136
123
,install : true
137
124
)
138
125
@@ -146,6 +133,7 @@ csd_service_bin = executable('csd-service'
146
133
,csd_service_sources
147
134
,include_directories : [configuration_inc, libskytether_mohair_inc]
148
135
,dependencies : libskytether_mohair_dep
136
+ ,install_rpath : get_option (' prefix' ) / get_option (' libdir' )
149
137
,install : true
150
138
)
151
139
@@ -159,6 +147,7 @@ topo_service_bin = executable('topo-service'
159
147
,topo_service_sources
160
148
,include_directories : [configuration_inc, libskytether_mohair_inc]
161
149
,dependencies : libskytether_mohair_dep
150
+ ,install_rpath : get_option (' prefix' ) / get_option (' libdir' )
162
151
,install : true
163
152
)
164
153
0 commit comments