19 lines
478 B
Python
19 lines
478 B
Python
from .base import Dependency, GitClone, MesonBuilder
|
|
|
|
|
|
class KiwixTools(Dependency):
|
|
name = "kiwix-tools"
|
|
force_build = True
|
|
|
|
class Source(GitClone):
|
|
git_remote = "https://github.com/kiwix/kiwix-tools.git"
|
|
git_dir = "kiwix-tools"
|
|
|
|
class Builder(MesonBuilder):
|
|
dependencies = ["libkiwix"]
|
|
|
|
@property
|
|
def configure_options(self):
|
|
if self.buildEnv.configInfo.static:
|
|
yield "-Dstatic-linkage=true"
|