From 00bc8238f075322b879fe494657e9578dbdac34d Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Tue, 17 Oct 2017 14:53:51 +0200 Subject: [PATCH] Add support of `zim-tools` in kiwix-build. --- dependencies.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/dependencies.py b/dependencies.py index 2377233..a26af48 100644 --- a/dependencies.py +++ b/dependencies.py @@ -262,6 +262,21 @@ class Libzim(Dependency): Builder = MesonBuilder +class ZimTools(Dependency): + name = "zim-tools" + dependencies = ['libzim'] + + class Source(GitClone): + git_remote = "https://github.com/openzim/zim-tools.git" + git_dir = "zim-tools" + + class Builder(MesonBuilder): + @property + def configure_option(self): + if self.buildEnv.platform_info.static: + return "-Dstatic-linkage=true" + return "" + class Zimwriterfs(Dependency): name = "zimwriterfs"