Build libzim and libkiwix in debug mode on android.

Fix #623
This commit is contained in:
Matthieu Gautier 2023-11-20 11:10:24 +01:00
parent 2467771891
commit 88cc75475c
2 changed files with 12 additions and 0 deletions

View File

@ -19,6 +19,12 @@ class Libkiwix(Dependency):
dependencies = ["pugixml", "libzim", "zlib", "lzma", "libcurl", "libmicrohttpd", "icu4c", "mustache", "xapian-core"]
strip_option = ''
@property
def build_type(self):
if self.buildEnv.platformInfo.build == "android":
return "debug"
return super().build_type
@property
def configure_option(self):
platformInfo = self.buildEnv.platformInfo

View File

@ -16,6 +16,12 @@ class Libzim(Dependency):
test_option = "-t 8"
strip_option = ''
@property
def build_type(self):
if self.buildEnv.platformInfo.build == "android":
return "debug"
return super().build_type
@classmethod
def get_dependencies(cls, platformInfo, allDeps):
deps = ['lzma', 'zstd', 'xapian-core', 'icu4c']