Build zimwriterfs using meson.
This commit is contained in:
parent
dac4fcd1f8
commit
ee5a8eda96
|
@ -326,7 +326,7 @@ class Zimwriterfs(Dependency):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dependencies(self):
|
def dependencies(self):
|
||||||
base_dependencies = ['libzim', 'zlib', 'lzma', 'xapian-core', 'gumbo']
|
base_dependencies = ['libzim', 'zlib', 'xapian-core', 'gumbo']
|
||||||
if self.buildEnv.platform_info.build != 'native':
|
if self.buildEnv.platform_info.build != 'native':
|
||||||
return base_dependencies + ["icu4c_cross-compile", "libmagic_cross-compile"]
|
return base_dependencies + ["icu4c_cross-compile", "libmagic_cross-compile"]
|
||||||
else:
|
else:
|
||||||
|
@ -337,12 +337,14 @@ class Zimwriterfs(Dependency):
|
||||||
git_dir = "zimwriterfs"
|
git_dir = "zimwriterfs"
|
||||||
release_git_ref = "1.1"
|
release_git_ref = "1.1"
|
||||||
|
|
||||||
def _post_prepare_script(self, context):
|
class Builder(MesonBuilder):
|
||||||
context.try_skip(self.git_path)
|
@property
|
||||||
command = "./autogen.sh"
|
def configure_option(self):
|
||||||
self.buildEnv.run_command(command, self.git_path, context)
|
base_option = "-Dmagic-install-prefix={buildEnv.install_dir}"
|
||||||
|
if self.buildEnv.platform_info.static:
|
||||||
|
base_option += " -Dstatic-linkage=true"
|
||||||
|
return base_option
|
||||||
|
|
||||||
Builder = MakeBuilder
|
|
||||||
|
|
||||||
|
|
||||||
class Kiwixlib(Dependency):
|
class Kiwixlib(Dependency):
|
||||||
|
|
Loading…
Reference in New Issue