Merge pull request #231 from kiwix/android_no_header_mmap

Do not use buffered header on android.
This commit is contained in:
Matthieu Gautier 2018-08-01 19:33:03 +02:00 committed by GitHub
commit 2024dae4c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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