Skip to content

Commit

Permalink
Build libzim and libkiwix in debug mode on android.
Browse files Browse the repository at this point in the history
Fix #623
  • Loading branch information
mgautierfr committed Nov 20, 2023
1 parent 2467771 commit 88cc754
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kiwixbuild/dependencies/libkiwix.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ class Builder(MesonBuilder):
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
Expand Down
6 changes: 6 additions & 0 deletions kiwixbuild/dependencies/libzim.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ class Builder(MesonBuilder):
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']
Expand Down

0 comments on commit 88cc754

Please sign in to comment.