summaryrefslogtreecommitdiff
path: root/recipes
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2022-12-22 21:38:06 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2022-12-29 12:10:16 +0530
commit0515779bbdb4b5bfbf31db3a22a16e506a4fc7cb (patch)
tree06cbb273c022e38a954d7090963120d15999e76f /recipes
parent237e1097694a590b4b01527932d01f23271711ac (diff)
gst-plugins-good: Fix Qt detection on non-LInux
By forcing qt-method as qmake on non-Linux Don't want to find Qt using pkg-config on non-Linux because: 1. It's actually not recommended by Qt 2. It causes gstqmlgl.pc to contain references to those pkgconfig files, but on non-Linux, you're using the official Qt binaries which require --define-prefix with pkg-config, which breaks static linking of gstreamer plugins, so we don't want that 3. --define-prefix makes cerbero's relocatable pkgconfig files completely useless Requires https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3628 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1060>
Diffstat (limited to 'recipes')
-rw-r--r--recipes/gst-plugins-good-1.0.recipe11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/gst-plugins-good-1.0.recipe b/recipes/gst-plugins-good-1.0.recipe
index 25069f1a..7c713e4c 100644
--- a/recipes/gst-plugins-good-1.0.recipe
+++ b/recipes/gst-plugins-good-1.0.recipe
@@ -262,6 +262,17 @@ class Recipe(custom.GStreamer):
if can_enable_qt6:
self.enable_plugin('qml6', 'qt6', 'qt6', option='qt6')
+ if self.config.target_platform != Platform.LINUX:
+ # Don't want to find Qt using pkg-config on non-Linux because:
+ # 1. It's actually not recommended by Qt
+ # 2. It causes gstqmlgl.pc to contain references to those pkgconfig
+ # files, but on non-Linux, you're using the official Qt binaries
+ # which require --define-prefix with pkg-config, which breaks
+ # static linking of gstreamer plugins, so we don't want that
+ # 3. --define-prefix makes cerbero's relocatable pkgconfig files
+ # completely useless
+ self.meson_options['qt-method'] = 'qmake'
+
if self.using_msvc():
# plugin is C++, library is Autotools
self.disable_plugin('taglib', 'codecs', dep='taglib')