def METHOD_NAME(self):
    if self.options.shared != self.options["gstreamer"].shared or \
        self.options.shared != self.options["glib"].shared or \
        self.options.shared != self.options["gst-plugins-base"].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 tools.Version(self.version) >= "1.18.2" and\
       self.settings.compiler == "gcc" and\
       tools.Version(self.settings.compiler.version) < "5":
        raise ConanInvalidConfiguration(
            "gst-plugins-good %s does not support gcc older than 5" % self.version
        )
    if self.options.shared and str(msvc_runtime_flag(self)).startswith("MT"):
        raise ConanInvalidConfiguration('shared build with static runtime is not supported due to the FlsAlloc limit')