Skip to content

Commit

Permalink
New deps needed (#523)
Browse files Browse the repository at this point in the history
* kiwix-tools need libkiwix 10.0.0

* Compilation requires libzim 7.2.0 now
  • Loading branch information
kelson42 committed Jan 19, 2022
1 parent eeb41d8 commit 04ac155
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ if static_linkage
add_global_link_arguments('-static-libstdc++', '--static', language:'cpp')
endif

libzim_dep = dependency('libzim', version : '>=7.2.0', static:static_linkage)
if not compiler.has_header_symbol('zim/zim.h', 'LIBZIM_WITH_XAPIAN')
error('Libzim seems to be compiled without xapian. Xapian support is mandatory.')
endif

thread_dep = dependency('threads')
kiwixlib_dep = dependency('kiwix', version:'>=9.3.0', static:static_linkage)
libkiwix_dep = dependency('kiwix', version:'>=10.0.0', static:static_linkage)
microhttpd_dep = dependency('libmicrohttpd', static:static_linkage)
z_dep = dependency('zlib', static:static_linkage)

all_deps = [thread_dep, kiwixlib_dep, microhttpd_dep, z_dep]
all_deps = [thread_dep, libzim_dep, libkiwix_dep, microhttpd_dep, z_dep]

if static_linkage
librt = compiler.find_library('rt', required:false)
Expand Down

0 comments on commit 04ac155

Please sign in to comment.