Build only debug or release on Windows.
On Windows we cannot mix debug and release build. So we have to choose only one.
This commit is contained in:
parent
1e4b88d2f0
commit
ce4d03989b
|
@ -1,4 +1,6 @@
|
|||
from kiwixbuild._global import option
|
||||
from .base import Dependency, GitClone, QMakeBuilder
|
||||
import platform
|
||||
|
||||
|
||||
class KiwixDesktop(Dependency):
|
||||
|
@ -11,11 +13,24 @@ class KiwixDesktop(Dependency):
|
|||
|
||||
class Builder(QMakeBuilder):
|
||||
dependencies = ["qt", "qtwebengine", "libkiwix", "aria2"]
|
||||
make_install_targets = ["install"]
|
||||
configure_env = None
|
||||
|
||||
flatpack_build_options = {"env": {"QMAKEPATH": "/app/lib"}}
|
||||
|
||||
@property
|
||||
def make_targets(self):
|
||||
if platform.system() == "Windows":
|
||||
yield "release-all" if option("make_release") else "debug-all"
|
||||
else:
|
||||
yield from super().make_targets
|
||||
|
||||
@property
|
||||
def make_install_targets(self):
|
||||
if platform.system() == "Windows":
|
||||
yield "release-install" if option("make_release") else "debug-install"
|
||||
else:
|
||||
yield "install"
|
||||
|
||||
@property
|
||||
def configure_options(self):
|
||||
if self.buildEnv.configInfo.name != "flatpak":
|
||||
|
|
Loading…
Reference in New Issue