def build(self): if self.settings.context == "host": if ("MyInstaller" not in self.deps_env_info.deps) or (not self.deps_env_info["MyInstaller"].HOST_CONTEXT): raise tools.ConanException("MyInstaller requirement is not being applied to %s in profile '%s'" % (self.name, self.settings.context)) else: raise tools.ConanException("%s built using profile %s incorrectly" % (self.name, self.settings.context)) self.output.info("%s built using profile %s as expected" % (self.name, self.settings.context))
def configure(self): if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio": del self.options.fPIC compiler_version = int(str(self.settings.compiler.version)) if compiler_version < 14: raise tools.ConanException( "gRPC can only be built with Visual Studio 2015 or higher." )
def configure(self): del self.settings.compiler.libcxx if self.settings.os == "Windows" and \ (self.settings.compiler != "Visual Studio" or int(str(self.settings.compiler.version)) < 14): raise tools.ConanException( "On Windows, the opus package can only be built with the " "Visual Studio 2015 or higher.")
def configure(self): if self.settings.os == "Windows" and (self.settings.compiler != "Visual Studio" or int(self.settings.compiler.version.__str__()) < 14): raise tools.ConanException("On Windows, the opus package can only be built with the Visual Studio 2015 or higher.") del self.settings.compiler.libcxx if self.settings.os == "Windows": self.options.remove("fPIC") if self.settings.compiler == "Visual Studio" and not self.options.shared: self.options.remove("fixed_point")
def configure(self): # Because this is pure C del self.settings.compiler.libcxx if self.settings.compiler == "Visual Studio": raise tools.ConanException( "The gmp package cannot be deployed on Visual Studio.")
def configure(self): if self.settings.compiler == "Visual Studio": raise tools.ConanException( "The gmp package cannot be deployed on Visual Studio.")