Under Windows builds are forced to release mode

base_deps_meta_version was bumped so that the base dependencies archives for CI
workflows are recreated (we need only the Windows flavours of the
archives updated but such surgical intervention is not supported).
This commit is contained in:
Veloman Yunkan 2024-11-22 17:41:50 +04:00
parent 6cb347c576
commit 1c6994546c
3 changed files with 6 additions and 3 deletions

View File

@ -538,6 +538,9 @@ class MesonBuilder(Builder):
@property @property
def build_type(self): def build_type(self):
if platform.system() == "Windows":
return "release"
return "release" if option("make_release") else "debug" return "release" if option("make_release") else "debug"
@property @property

View File

@ -20,14 +20,14 @@ class KiwixDesktop(Dependency):
@property @property
def make_targets(self): def make_targets(self):
if platform.system() == "Windows": if platform.system() == "Windows":
yield "release-all" if option("make_release") else "debug-all" yield "release-all"
else: else:
yield from super().make_targets yield from super().make_targets
@property @property
def make_install_targets(self): def make_install_targets(self):
if platform.system() == "Windows": if platform.system() == "Windows":
yield "release-install" if option("make_release") else "debug-install" yield "release-install"
else: else:
yield "install" yield "install"

View File

@ -33,7 +33,7 @@ release_versions = {
# This is the "version" of the whole base_deps_versions dict. # This is the "version" of the whole base_deps_versions dict.
# Change this when you change base_deps_versions. # Change this when you change base_deps_versions.
base_deps_meta_version = "09" base_deps_meta_version = "10"
base_deps_versions = { base_deps_versions = {
"zlib": "1.2.12", "zlib": "1.2.12",