Exemplo n.º 1
0
 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))
Exemplo n.º 2
0
 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."
             )
Exemplo n.º 3
0
    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.")
Exemplo n.º 4
0
    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")
Exemplo n.º 5
0
 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.")
Exemplo n.º 6
0
 def configure(self):
     if self.settings.compiler == "Visual Studio":
         raise tools.ConanException(
             "The gmp package cannot be deployed on Visual Studio.")