def METHOD_NAME(self):
    if hasattr(self, "settings_build") and tools.cross_building(self):
        raise ConanInvalidConfiguration("Cross-building not implemented")
    if self.settings.compiler.get_safe("cppstd"):
        if self._abi_version() == "1.16":
            tools.check_min_cppstd(self, 17)
        else:
            tools.check_min_cppstd(self, 11)
    if self.options.shared and not self.options["cairo"].shared:
        raise ConanInvalidConfiguration(
            "Linking against static cairo would cause shared cairomm to link "
            "against static glib which can cause problems."
        )