Fix dependency detection for zim-tools.

This commit is contained in:
Matthieu Gautier
2020-07-15 15:51:09 +02:00
parent da31dd428e
commit 39a93b07b3
2 changed files with 13 additions and 7 deletions

View File

@ -13,12 +13,12 @@ class AllBaseDependencies(Dependency):
@classmethod
def get_dependencies(cls, platformInfo, allDeps):
base_deps = ['zlib', 'lzma', 'zstd', 'xapian-core', 'pugixml', 'libcurl', 'icu4c', 'mustache', 'libmicrohttpd']
# zimwriterfs from zim-tools
if platformInfo.build not in ('android', 'win32'):
base_deps += ['libmagic', 'gumbo']
# zimtools
if platformInfo.build not in ('android','iOS'):
# We do not build zimtools at all on "android" and "iOS"
if platformInfo.build not in ('android', 'iOS'):
base_deps += ['docoptcpp']
if platformInfo.build != 'win32':
# zimwriterfs
base_deps += ['libmagic', 'gumbo']
return base_deps