mirror of
https://github.com/kiwix/kiwix-build.git
synced 2025-06-28 05:49:33 +00:00
Split the dependencies.py file into several parts.
This commit is contained in:
19
kiwixbuild/dependencies/kiwix_tools.py
Normal file
19
kiwixbuild/dependencies/kiwix_tools.py
Normal file
@ -0,0 +1,19 @@
|
||||
from .base import (
|
||||
Dependency,
|
||||
GitClone,
|
||||
MesonBuilder)
|
||||
|
||||
class KiwixTools(Dependency):
|
||||
name = "kiwix-tools"
|
||||
dependencies = ["kiwix-lib", "libmicrohttpd", "zlib"]
|
||||
|
||||
class Source(GitClone):
|
||||
git_remote = "https://github.com/kiwix/kiwix-tools.git"
|
||||
git_dir = "kiwix-tools"
|
||||
|
||||
class Builder(MesonBuilder):
|
||||
@property
|
||||
def configure_option(self):
|
||||
if self.buildEnv.platform_info.static:
|
||||
return "-Dstatic-linkage=true"
|
||||
return ""
|
Reference in New Issue
Block a user