Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion nextcloud-client/nextcloud-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class subinfo(info.infoclass):
def registerOptions(self):
self.options.dynamic.registerOption("devMode", False)
self.options.dynamic.registerOption("versionSuffix", "")
self.options.dynamic.registerOption("buildWithWebEngine", True)
if CraftCore.compiler.isMacOS:
self.options.dynamic.registerOption("osxArchs", "arm64")
self.options.dynamic.registerOption("buildMacOSBundle", True)
Expand All @@ -26,7 +27,10 @@ def setDependencies(self):
self.buildDependencies["dev-utils/cmake"] = None
self.runtimeDependencies["libs/qt6/qtbase"] = None
self.runtimeDependencies["libs/qt6/qtdeclarative"] = None
self.runtimeDependencies["libs/qt6/qtwebengine"] = None

if self.options.dynamic.buildWithWebEngine:
self.runtimeDependencies["libs/qt6/qtwebengine"] = None

self.runtimeDependencies["libs/qt6/qtwebsockets"] = None
self.runtimeDependencies["libs/qt6/qtmultimedia"] = None
self.runtimeDependencies["libs/qt/qtsvg"] = None
Expand Down Expand Up @@ -63,6 +67,9 @@ def boolToCmakeBool(value: bool) -> str:

self.subinfo.options.configure.args += [f"-DMIRALL_VERSION_SUFFIX={versionSuffix}"]

buildWithWebEngine = boolToCmakeBool(self.subinfo.options.dynamic.buildWithWebEngine)
self.subinfo.options.configure.args += [f"-DBUILD_WITH_WEBENGINE={buildWithWebEngine}"]

if CraftCore.compiler.isMacOS:
osxArchs = self.subinfo.options.dynamic.osxArchs
buildAppBundle = boolToCmakeBool(self.subinfo.options.dynamic.buildMacOSBundle)
Expand Down