[iOS] Use the correct option `b_bitcode` for libzim and kiwix-lib.

This commit is contained in:
Matthieu Gautier 2019-01-17 16:23:03 +01:00
parent 8ffbac9734
commit b2d2e489bf
2 changed files with 6 additions and 3 deletions

View File

@ -18,6 +18,8 @@ class Kiwixlib(Dependency):
def configure_option(self): def configure_option(self):
if self.buildEnv.platformInfo.build == 'android': if self.buildEnv.platformInfo.build == 'android':
return '-Dandroid=true' return '-Dandroid=true'
if self.buildEnv.platformInfo.build == 'iOS':
return '-Db_bitcode=true'
return '' return ''
@property @property

View File

@ -16,8 +16,9 @@ class Libzim(Dependency):
@property @property
def configure_option(self): def configure_option(self):
options = ""
platformInfo = self.buildEnv.platformInfo platformInfo = self.buildEnv.platformInfo
if platformInfo.build == 'android': if platformInfo.build == 'android':
options += "-DUSE_BUFFER_HEADER=false" return "-DUSE_BUFFER_HEADER=false"
return options if platformInfo.build == 'iOS':
return "-Db_bitcode=true"
return ""