kiwix-build/kiwixbuild/dependencies/kiwix_tools.py

21 lines
519 B
Python

from .base import (
Dependency,
GitClone,
MesonBuilder)
class KiwixTools(Dependency):
name = "kiwix-tools"
class Source(GitClone):
git_remote = "https://github.com/kiwix/kiwix-tools.git"
git_dir = "kiwix-tools"
class Builder(MesonBuilder):
dependencies = ["kiwix-lib", "libmicrohttpd", "zlib"]
@property
def configure_option(self):
if self.buildEnv.platformInfo.static:
return "-Dstatic-linkage=true"
return ""