mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Re-add xapian searcher in kiwix-lib.
libzim only know how to read embedded full text index in a zim file. This is nice as we want to embedded the full text index in zim file and not have separated full text index. However, we still have some zim+separated index we have to read. So we have to support the search in separated index for a while.
This commit is contained in:
@ -62,7 +62,9 @@ else
|
||||
endif
|
||||
endif
|
||||
|
||||
all_deps = [thread_dep, libicu_dep, libzim_dep, pugixml_dep]
|
||||
xapian_dep = dependency('xapian-core', required:false)
|
||||
|
||||
all_deps = [thread_dep, libicu_dep, libzim_dep, xapian_dep, pugixml_dep]
|
||||
if has_ctpp2_dep
|
||||
all_deps += [ctpp2_dep]
|
||||
endif
|
||||
@ -79,6 +81,9 @@ subdir('static')
|
||||
subdir('src')
|
||||
|
||||
pkg_requires = ['libzim', 'icu-i18n', 'pugixml']
|
||||
if xapian_dep.found()
|
||||
pkg_requires += ['xapian-core']
|
||||
endif
|
||||
|
||||
extra_libs = []
|
||||
extra_cflags = ''
|
||||
|
Reference in New Issue
Block a user