summaryrefslogtreecommitdiff
path: root/recipes/glib.recipe
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2023-05-04 00:05:39 +0300
committerTim-Philipp Müller <tim@centricular.com>2023-05-06 23:49:26 +0100
commit86b5b62b34522021f224f17a1520584e66b394c5 (patch)
treeb613881d460d1dce0a85443ecf69654b7769ee73 /recipes/glib.recipe
parente22fdc7be19de44683acc03561380533b92789bb (diff)
glib: Ship Windows process spawning helpers
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1178>
Diffstat (limited to 'recipes/glib.recipe')
-rw-r--r--recipes/glib.recipe12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/glib.recipe b/recipes/glib.recipe
index 04b2cf13..672e39bb 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__
@@ -115,6 +116,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 :)