Exemplo n.º 1
0
 def system_requirements(self):
     try:
         if (self._is_msvc):
             return
         if (os_info.detect_windows_subsystem() != None and os_info.detect_windows_subsystem() != 'WSL'):
             os.environ["CONAN_SYSREQUIRES_SUDO"] = "False"
         installer = SystemPackageTool()
         #installer.update()
         installer.install('autoconf')
         installer.install('automake')
         installer.install('libtool')
         installer.install('make')
         installer.install('pkg-config')
     except:
         self.output.warn('Unable to bootstrap required build tools.  If they are already installed, you can ignore this warning.')
         self.output.warn(traceback.print_exc())
Exemplo n.º 2
0
 def build_requirements(self):
     if self.settings.compiler == "Visual Studio":
         self.build_requires("strawberryperl/5.30.0.1")
     elif tools.os_info.is_windows:
         if "CONAN_BASH_PATH" not in os.environ and os_info.detect_windows_subsystem(
         ) != 'msys2':
             self.build_requires("msys2/20190524")
Exemplo n.º 3
0
 def build_requirements(self):
     # useful for example for conditional build_requires
     if tools.os_info.is_windows:
         if not self._win_bash:
             self.build_requires("strawberryperl/5.30.0.1")
         if not self.options.no_asm and not tools.which("nasm"):
             self.build_requires("nasm/2.14")
     if self._win_bash:
         if "CONAN_BASH_PATH" not in os.environ and os_info.detect_windows_subsystem() != 'msys2':
             self.build_requires("msys2/20190524")
Exemplo n.º 4
0
    def build_requirements(self):
        # useful for example for conditional build_requires
        if tools.os_info.is_windows:
            if not self._win_bash:
                self.build_requires("strawberryperl/5.30.0.1")
            if not self.options.no_asm and not tools.which("nasm"):
                self.build_requires("nasm/2.14")
        if self._win_bash:
            if "CONAN_BASH_PATH" not in os.environ and os_info.detect_windows_subsystem(
            ) != 'msys2':
                self.build_requires("msys2/20190524")

        # provides clang-tidy, clang-format, IWYU, scan-build, etc.
        if self._is_llvm_tools_enabled():
            self.build_requires("llvm_tools/master@conan/stable")
Exemplo n.º 5
0
    def requirements(self):
        self.requires('zlib/1.2.11@conan/stable')
        self.requires('libcurl/7.60.0@bincrafters/stable')

        if os_info.is_windows and self.options.xmp:
            if os_info.detect_windows_subsystem() in ("cygwin", "msys2"):
                self.requires('libiconv/1.15@bincrafters/stable')

        if self.options.unitTests:
            self.requires('gtest/1.8.0@bincrafters/stable')

        if self.options.xmp:
            self.requires('XmpSdk/2016.7@piponazo/stable') # from conan-piponazo
        else:
            self.requires('Expat/2.2.5@pix4d/stable')
Exemplo n.º 6
0
 def _get_system_pkgs(self):
     pkgs = ()
     if os_info.detect_windows_subsystem() == "MSYS2":
         pkgs = self._msys_deps
     elif os_info.is_macos:
         pkgs = self._mac_deps
     elif os_info.is_linux:
         distro = os_info.linux_distro
         if distro == "fedora":
             pkgs = self._fedora_deps
         elif distro == "arch":
             pkgs = self._arch_deps
         elif distro == "ubuntu":
             pkgs = self._ubuntu_deps
     return pkgs
Exemplo n.º 7
0
 def build_requirements(self):
     if tools.os_info.is_windows and self.settings.compiler != "Visual Studio":
         if "CONAN_BASH_PATH" not in os.environ and os_info.detect_windows_subsystem() != 'msys2':
             self.build_requires("msys2/20190524")