Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- [gst-plugins-base] use full package mode #8148

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions recipes/gst-plugins-base/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ def _is_msvc(self):
return self.settings.compiler == "Visual Studio"

def validate(self):
if self.options.shared != self.options["gstreamer"].shared or \
self.options.shared != self.options["glib"].shared:
# https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/133
raise ConanInvalidConfiguration("GLib, GStreamer and GstPlugins must be either all shared, or all static")
if not self.options["glib"].shared and self.options.shared:
# https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/133
raise ConanInvalidConfiguration("shared GStreamer cannot link to static GLib")
if self.options.shared != self.options["gstreamer"].shared:
# https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/133
raise ConanInvalidConfiguration("GStreamer and GstPlugins must be either all shared, or all static")
if tools.Version(self.version) >= "1.18.2" and\
self.settings.compiler == "gcc" and\
tools.Version(self.settings.compiler.version) < "5":
Expand Down Expand Up @@ -270,6 +272,10 @@ def package(self):
tools.rmdir(os.path.join(self.package_folder, "lib", "gstreamer-1.0", "pkgconfig"))
tools.remove_files_by_mask(self.package_folder, "*.pdb")

def package_id(self):
self.info.requires["glib"].full_package_mode()
self.info.requires["gstreamer"].full_package_mode()

def package_info(self):
gst_plugins = []
gst_plugin_path = os.path.join(self.package_folder, "lib", "gstreamer-1.0")
Expand Down