21 lines
611 B
Python
21 lines
611 B
Python
from .base import (
|
|
Dependency,
|
|
GitClone,
|
|
QMakeBuilder)
|
|
|
|
class KiwixDesktop(Dependency):
|
|
name = "kiwix-desktop"
|
|
|
|
class Source(GitClone):
|
|
git_remote = "https://github.com/kiwix/kiwix-desktop.git"
|
|
git_dir = "kiwix-desktop"
|
|
|
|
class Builder(QMakeBuilder):
|
|
dependencies = ["qt", "qtwebengine", "kiwix-lib"]
|
|
@property
|
|
def configure_option(self):
|
|
options = ["PREFIX={}".format(self.buildEnv.install_dir)]
|
|
if self.buildEnv.platformInfo.static:
|
|
options.append('"CONFIG+=static"')
|
|
return " ".join(options)
|