summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--recipes/glib.recipe12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/glib.recipe b/recipes/glib.recipe
index 4041ba4e..256683ef 100644
--- a/recipes/glib.recipe
+++ b/recipes/glib.recipe
@@ -3,6 +3,7 @@ import shlex
import shutil
from cerbero.tools.libtool import LibtoolLibrary
from cerbero.tools.libtool import get_libtool_versions
+from cerbero.utils import messages as m
GLIB_CONFIG_UNVERSAL='''\
#ifdef __i386__
@@ -130,6 +131,17 @@ class Recipe(recipe.Recipe):
if self.config.target_platform == Platform.WINDOWS:
self.library_type = LibraryType.SHARED
+ # Glib needs special process spawning helpers on Windows
+ if self.config.target_platform == Platform.WINDOWS:
+ if self.config.target_arch in [Architecture.X86_64, Architecture.ARM64]:
+ self.files_bins.append('gspawn-win64-helper')
+ self.files_bins.append('gspawn-win64-helper-console')
+ elif self.config.target_arch == Architecture.X86 or Architecture.is_arm32(self.config.target_arch):
+ self.files_bins.append('gspawn-win32-helper')
+ self.files_bins.append('gspawn-win32-helper-console')
+ else:
+ m.warning(f'Unsupported Windows architecture {self.config.target_arch}')
+
if self.config.target_platform != Platform.LINUX:
# Disable valgrind code on non-Linux, in the best case it just
# gives us compiler errors :)