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:
parent
66c79e2aac
commit
e22ceab92a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue