Ejemplo n.º 1
0
    def validate(self):
        # static build on Windows will be support by future release. (https://github.com/lexbor/lexbor/issues/69)
        if str(self.version) == "2.1.0" and self.options.shared == False and (
                is_msvc(self) or self._is_mingw):
            raise tools.ConanInvalidConfiguration(
                "{}/{} doesn't support static build on Windows(please use cci.20220301)."
                .format(self.name, self.version))

        if self.options.build_separately:
            raise tools.ConanInvalidConfiguration(
                "{}/{} doesn't support build_separately option(yet).".format(
                    self.name, self.version))
Ejemplo n.º 2
0
    def validate(self):
        if self.settings.compiler.get_safe("cppstd"):
            tools.check_min_cppstd(self, 17)

        minimum_version = self._compiler_required_cpp17.get(
            str(self.settings.compiler), False)
        if minimum_version:
            if tools.Version(self.settings.compiler.version) < minimum_version:
                raise tools.ConanInvalidConfiguration(
                    "{} requires C++17, which your compiler does not support.".
                    format(self.name))
        else:
            self.output.warn(
                "{0} requires C++17. Your compiler is unknown. Assuming it supports C++17."
                .format(self.name))

        if is_msvc(self) and self.options.shared:
            raise tools.ConanInvalidConfiguration(
                "{} does not support shared build in MSVC".format(self.name))
Ejemplo n.º 3
0
    def validate(self):
        if self.settings.compiler.get_safe("cppstd"):
            tools.check_min_cppstd(self, 11)

        # In Visual Studio < 16, there are compilation error. patch is already provided.
        # https://github.com/blend2d/blend2d/commit/63db360c7eb2c1c3ca9cd92a867dbb23dc95ca7d
        if self._is_msvc and tools.Version(
                self.settings.compiler.version) < "16":
            raise tools.ConanInvalidConfiguration(
                "This recipe does not support this compiler version")
Ejemplo n.º 4
0
 def validate(self):
     if self.settings.os != "Windows" and self.options.encoding == "utf-16":
         raise tools.ConanInvalidConfiguration(
             "utf-16 options is not supported on non-Windows platforms")
Ejemplo n.º 5
0
 def validate(self):
     libzippp_version = str(self.version)
     if libzippp_version != "4.0" and len(libzippp_version.split("-")) != 2:
         raise tools.ConanInvalidConfiguration(
             "{}: version number must include '-'. (ex. '5.0-1.8.0')".
             format(self.name))