mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-27 21:39:34 +00:00
We were assuming that meson project correspond to our projects and so we were always building them, even if they were already compiled. (This way, a simple `kiwix-build` is enough to recompile the WIP code of our project). However, on the CI, we do not archive the source code/build directory in the base deps archive. So when we try to compile, the compile step of meson projects fails because the source are not here. We have a small workaround for pugixml but as zstd is also meson, it is time to do something correct. By default, all projects now try to skip if a build is already present. Our projects are marked as `force_build` and so, they do not try to skip.
22 lines
517 B
Python
22 lines
517 B
Python
from .base import (
|
|
Dependency,
|
|
GitClone,
|
|
MesonBuilder)
|
|
|
|
class KiwixTools(Dependency):
|
|
name = "kiwix-tools"
|
|
force_build = True
|
|
|
|
class Source(GitClone):
|
|
git_remote = "https://github.com/kiwix/kiwix-tools.git"
|
|
git_dir = "kiwix-tools"
|
|
|
|
class Builder(MesonBuilder):
|
|
dependencies = ["kiwix-lib"]
|
|
|
|
@property
|
|
def configure_option(self):
|
|
if self.buildEnv.platformInfo.static:
|
|
return "-Dstatic-linkage=true"
|
|
return ""
|