From dd3fd1ff7a7c9148138604815a72bf8f4a2916ff Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 6 Dec 2023 16:18:19 +0100 Subject: [PATCH] Do not build libzim with xapian dependency on Windows. --- kiwixbuild/dependencies/libzim.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kiwixbuild/dependencies/libzim.py b/kiwixbuild/dependencies/libzim.py index 804cd38..3df7292 100644 --- a/kiwixbuild/dependencies/libzim.py +++ b/kiwixbuild/dependencies/libzim.py @@ -1,6 +1,8 @@ -from .base import Dependency, GitClone, MesonBuilder -from kiwixbuild._global import option, get_target_step - +from .base import ( + Dependency, + GitClone, + MesonBuilder) +from kiwixbuild._global import option, get_target_step, neutralEnv class Libzim(Dependency): name = "libzim" @@ -22,6 +24,8 @@ class Libzim(Dependency): @classmethod def get_dependencies(cls, configInfo, allDeps): + if neutralEnv("distname") == "Windows": + return ["lzma", "zstd", "icu4c"] deps = ["lzma", "zstd", "xapian-core", "icu4c"] if configInfo.name not in ("flatpak", "wasm"): deps.append("zim-testing-suite")