kiwix-build/kiwixbuild/dependencies/all_dependencies.py

25 lines
772 B
Python

from .base import (
Dependency,
NoopSource,
NoopBuilder)
from kiwixbuild._global import neutralEnv
class AllBaseDependencies(Dependency):
name = "alldependencies"
Source = NoopSource
class Builder(NoopBuilder):
@classmethod
def get_dependencies(cls, platformInfo, allDeps):
base_deps = ['zlib', 'lzma', 'xapian-core', 'pugixml', 'libaria2', 'icu4c']
# zimwriterfs
if platformInfo.build not in ('android', 'win32'):
base_deps += ['libmagic', 'gumbo']
# kiwix-tools
if (platformInfo.build != 'android' and
neutralEnv('distname') != 'Darwin'):
base_deps += ['libmicrohttpd', 'ctpp2c', 'ctpp2']
return base_deps