Introduce MixedMixin

We will need to create "mixed linkage" library for other arch than native.
It is better to move associated code in a separate part.
This commit is contained in:
Matthieu Gautier
2023-03-28 17:40:12 +02:00
parent b6f49efcda
commit 31771fa35c
4 changed files with 40 additions and 30 deletions

View File

@ -32,7 +32,7 @@ class Libzim(Dependency):
config_options.append("-Dstatic-linkage=true")
if platformInfo.build == 'iOS':
config_options.append("-Db_bitcode=true")
if platformInfo.name == 'native_mixed' and option('target') == 'libzim':
if platformInfo.mixed and option('target') == 'libzim':
config_options.append("-Dstatic-linkage=true")
if platformInfo.name == "flatpak":
config_options.append("--wrap-mode=nodownload")