コード例 #1
0
ファイル: conanfile.py プロジェクト: cqjjjzr/conan-ffms2-core
 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())
コード例 #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")
コード例 #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")
コード例 #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")
コード例 #5
0
ファイル: conanfile.py プロジェクト: webmeister/exiv2
    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')
コード例 #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
コード例 #7
0
ファイル: conanfile.py プロジェクト: zod/conan-center-index
 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")