mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +00:00
Do not build libzim with xapian dependency on Windows.
This commit is contained in:
@ -1,6 +1,8 @@
|
|||||||
from .base import Dependency, GitClone, MesonBuilder
|
from .base import (
|
||||||
from kiwixbuild._global import option, get_target_step
|
Dependency,
|
||||||
|
GitClone,
|
||||||
|
MesonBuilder)
|
||||||
|
from kiwixbuild._global import option, get_target_step, neutralEnv
|
||||||
|
|
||||||
class Libzim(Dependency):
|
class Libzim(Dependency):
|
||||||
name = "libzim"
|
name = "libzim"
|
||||||
@ -22,6 +24,8 @@ class Libzim(Dependency):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_dependencies(cls, configInfo, allDeps):
|
def get_dependencies(cls, configInfo, allDeps):
|
||||||
|
if neutralEnv("distname") == "Windows":
|
||||||
|
return ["lzma", "zstd", "icu4c"]
|
||||||
deps = ["lzma", "zstd", "xapian-core", "icu4c"]
|
deps = ["lzma", "zstd", "xapian-core", "icu4c"]
|
||||||
if configInfo.name not in ("flatpak", "wasm"):
|
if configInfo.name not in ("flatpak", "wasm"):
|
||||||
deps.append("zim-testing-suite")
|
deps.append("zim-testing-suite")
|
||||||
|
Reference in New Issue
Block a user