mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-26 10:11:27 +00:00
Compile zim-tools dependencies on Windows github CI.
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
from .base import Dependency, GitClone, MesonBuilder
|
||||
from kiwixbuild._global import neutralEnv
|
||||
|
||||
|
||||
class ZimTools(Dependency):
|
||||
@ -13,14 +14,17 @@ class ZimTools(Dependency):
|
||||
@classmethod
|
||||
def get_dependencies(cls, configInfo, allDeps):
|
||||
base_deps = ["libzim", "docoptcpp", "mustache"]
|
||||
if configInfo.build != "win32":
|
||||
if configInfo.build != "win32" and neutralEnv("distname") != "Windows":
|
||||
base_deps += ["libmagic", "gumbo"]
|
||||
return base_deps
|
||||
|
||||
@property
|
||||
def configure_options(self):
|
||||
# We don't build zimwriterfs on win32, and so we don't have magic
|
||||
if self.buildEnv.configInfo.build != "win32":
|
||||
if (
|
||||
self.buildEnv.configInfo.build != "win32"
|
||||
and neutralEnv("distname") != "Windows"
|
||||
):
|
||||
yield f"-Dmagic-install-prefix={self.buildEnv.install_dir}"
|
||||
if self.buildEnv.configInfo.static:
|
||||
yield "-Dstatic-linkage=true"
|
||||
|
Reference in New Issue
Block a user