diff --git a/kiwixbuild/dependencies/kiwix_lib.py b/kiwixbuild/dependencies/kiwix_lib.py index 397c740..6332394 100644 --- a/kiwixbuild/dependencies/kiwix_lib.py +++ b/kiwixbuild/dependencies/kiwix_lib.py @@ -18,6 +18,8 @@ class Kiwixlib(Dependency): def configure_option(self): if self.buildEnv.platformInfo.build == 'android': return '-Dandroid=true' + if self.buildEnv.platformInfo.build == 'iOS': + return '-Db_bitcode=true' return '' @property diff --git a/kiwixbuild/dependencies/libzim.py b/kiwixbuild/dependencies/libzim.py index 9c2ff33..6113dce 100644 --- a/kiwixbuild/dependencies/libzim.py +++ b/kiwixbuild/dependencies/libzim.py @@ -16,8 +16,9 @@ class Libzim(Dependency): @property def configure_option(self): - options = "" platformInfo = self.buildEnv.platformInfo if platformInfo.build == 'android': - options += "-DUSE_BUFFER_HEADER=false" - return options + return "-DUSE_BUFFER_HEADER=false" + if platformInfo.build == 'iOS': + return "-Db_bitcode=true" + return ""