21 lines
485 B
Python
21 lines
485 B
Python
from .base import (
|
|
Dependency,
|
|
GitClone,
|
|
MesonBuilder)
|
|
|
|
class ZimTools(Dependency):
|
|
name = "zim-tools"
|
|
|
|
class Source(GitClone):
|
|
git_remote = "https://github.com/openzim/zim-tools.git"
|
|
git_dir = "zim-tools"
|
|
|
|
class Builder(MesonBuilder):
|
|
dependencies = ['libzim']
|
|
|
|
@property
|
|
def configure_option(self):
|
|
if self.buildEnv.platformInfo.static:
|
|
return "-Dstatic-linkage=true"
|
|
return ""
|