summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorL. E. Segovia <amy@centricular.com>2024-02-10 11:32:13 -0300
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2024-02-16 17:25:01 +0000
commit4e8ba9c9b649dbd8e057e18a4d731c8b668a51cf (patch)
tree40a5616f9fe9faa8da85d90a69833b7c272ca125
parentb393b0a67addcd11755e506242a6054f2ce809ff (diff)
gobject-introspection: Fix building under MSVC
The package's Meson build system does not apply the correct naming convention for the Windows operating system, which causes Meson to look up (and find) the UCRT64 interpreter. This one's headers cannot be used with MSVC. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1359>
-rw-r--r--recipes/gobject-introspection.recipe9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes/gobject-introspection.recipe b/recipes/gobject-introspection.recipe
index f34160dd..466b798d 100644
--- a/recipes/gobject-introspection.recipe
+++ b/recipes/gobject-introspection.recipe
@@ -69,3 +69,12 @@ class Recipe(recipe.Recipe):
'share/gobject-introspection-1.0',
'share/aclocal/introspection.m4'
]
+
+ def prepare(self):
+ if self.config.platform == Platform.WINDOWS:
+ # gobject-introspection forces a Python 3 interpreter named "python3",
+ # which on Windows matches the one provided by UCRT64. However,
+ # Meson's Python 3 interpreter is `python.exe`. Meson
+ # can handle this for us, provided we either don't force the
+ # naming, or supply the correct name to `find_installation` here.
+ self.meson_options['python'] = self.config.python_exe