From 9b4f64c4afc9ca816b30bab6cc3d81cf185d254e Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 29 Nov 2023 14:22:06 +0100 Subject: [PATCH] Build only libzim (and dependencies on Windows) --- .github/scripts/build_definition.py | 5 +++++ kiwixbuild/dependencies/all_dependencies.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/.github/scripts/build_definition.py b/.github/scripts/build_definition.py index 5b38c0e..cc7c98f 100644 --- a/.github/scripts/build_definition.py +++ b/.github/scripts/build_definition.py @@ -21,6 +21,11 @@ BUILD_DEF = """ | bionic | native_mixed | BP | | | | | linux-x86_64-bionic | | | bionic | aarch64_mixed | BP | | | | | linux-aarch64-bionic | | ---------------------------------------------------------------------------------------------------------------------------------------------- +# On Windows, we build only libzim for now. And only native_mixed as xapian doesn't compile as dll + | windows | native_static | Bd | | | | | win-x86_64 | | + | windows | native_dyn | Bd | | | | | win-x86_64 | | + | windows | native_mixed | BPd | | | | | win-x86_64 | | + ---------------------------------------------------------------------------------------------------------------------------------------------- # Osx builds, build binaries on native_dyn and native_static. On anyother things, build only the libraries | macos | native_dyn | d | d | dB | B | | | macos-x86_64-dyn | | macos | native_static | | | BP | BP | | macos-x86_64 | | diff --git a/kiwixbuild/dependencies/all_dependencies.py b/kiwixbuild/dependencies/all_dependencies.py index 18cbeb7..efaa9ff 100644 --- a/kiwixbuild/dependencies/all_dependencies.py +++ b/kiwixbuild/dependencies/all_dependencies.py @@ -13,6 +13,8 @@ class AllBaseDependencies(Dependency): class Builder(NoopBuilder): @classmethod def get_dependencies(cls, configInfo, allDeps): + if neutralEnv("distname") == "Windows": + return ["zlib", "lzma", "zstd", "icu4c"] if configInfo.build == "wasm" or environ.get("OS_NAME") == "bionic": return ["zlib", "lzma", "zstd", "icu4c", "xapian-core"]