Do not use buffered header on android.

Android devices are low memory devices, use last libzim compilation option
to avoid copy/mmap index header in memory.
This commit is contained in:
Matthieu Gautier 2018-08-01 15:35:39 +02:00
parent 66c79e2aac
commit e22ceab92a
1 changed files with 8 additions and 0 deletions

View File

@ -13,3 +13,11 @@ class Libzim(Dependency):
class Builder(MesonBuilder):
test_option = "-t 8"
dependencies = ['zlib', 'lzma', 'xapian-core', 'icu4c']
@property
def configure_option(self):
options = ""
platformInfo = self.buildEnv.platformInfo
if platformInfo.build == 'android':
options += "-DUSE_BUFFER_HEADER=false"
return options