From e22ceab92af00a2b5eb55cf512e7c33069dad6db Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 1 Aug 2018 15:35:39 +0200 Subject: [PATCH] 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. --- kiwixbuild/dependencies/libzim.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kiwixbuild/dependencies/libzim.py b/kiwixbuild/dependencies/libzim.py index aa01108..9c2ff33 100644 --- a/kiwixbuild/dependencies/libzim.py +++ b/kiwixbuild/dependencies/libzim.py @@ -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