mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user