Skip to content

Commit

Permalink
(#8148) - [gst-plugins-base] use full package mode
Browse files Browse the repository at this point in the history
Signed-off-by: SSE4 <[email protected]>
  • Loading branch information
SSE4 authored Dec 2, 2021
1 parent 5d6be8b commit acc92a1
Showing 1 changed file with 10 additions and 4 deletions.
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

0 comments on commit acc92a1

Please sign in to comment.