25 lines
675 B
Python
25 lines
675 B
Python
from .base import (
|
|
Dependency,
|
|
GitClone,
|
|
MesonBuilder)
|
|
|
|
class Libzim(Dependency):
|
|
name = "libzim"
|
|
|
|
class Source(GitClone):
|
|
git_remote = "https://github.com/openzim/libzim.git"
|
|
git_dir = "libzim"
|
|
|
|
class Builder(MesonBuilder):
|
|
test_option = "-t 8"
|
|
dependencies = ['zlib', 'lzma', 'xapian-core', 'icu4c']
|
|
|
|
@property
|
|
def configure_option(self):
|
|
platformInfo = self.buildEnv.platformInfo
|
|
if platformInfo.build == 'android':
|
|
return "-DUSE_BUFFER_HEADER=false"
|
|
if platformInfo.build == 'iOS':
|
|
return "-Db_bitcode=true"
|
|
return ""
|