Add kiwix-desktop dependency.
This commit is contained in:
parent
cf8f303362
commit
398f77f9f3
|
@ -12,6 +12,7 @@ from . import (
|
|||
ios_fat_lib,
|
||||
kiwix_android,
|
||||
kiwix_custom_app,
|
||||
kiwix_desktop,
|
||||
kiwix_lib,
|
||||
kiwix_tools,
|
||||
libaria2,
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
from .base import (
|
||||
Dependency,
|
||||
GitClone,
|
||||
QMakeBuilder)
|
||||
|
||||
class KiwixDesktop(Dependency):
|
||||
name = "kiwix-desktop"
|
||||
dependencies = ["qt", "qtwebengine", "kiwix-lib"]
|
||||
|
||||
class Source(GitClone):
|
||||
git_remote = "https://github.com/kiwix/kiwix-desktop.git"
|
||||
git_dir = "kiwix-desktop"
|
||||
|
||||
class Builder(QMakeBuilder):
|
||||
@property
|
||||
def configure_option(self):
|
||||
options = ["PREFIX={}".format(self.buildEnv.install_dir)]
|
||||
if self.buildEnv.platformInfo.static:
|
||||
options.append('"CONFIG+=static"')
|
||||
return " ".join(options)
|
Loading…
Reference in New Issue