Do not build libzim with xapian dependency on Windows.

This commit is contained in:
Matthieu Gautier 2023-12-06 16:18:19 +01:00
parent df47082552
commit dd3fd1ff7a
1 changed files with 7 additions and 3 deletions

View File

@ -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")