Conan 1.63 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.63.0 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 995 页 | 7.54 MB | 1 年前3
Conan 1.64 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.64.1 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 999 页 | 7.54 MB | 1 年前3
Conan 1 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.64.1 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 975 页 | 8.75 MB | 1 年前3
Conan 1.62 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.62.0 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 993 页 | 7.53 MB | 1 年前3
Conan 1.56 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.56.0 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.55 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.55.0 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.54 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.54.0 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 953 页 | 7.65 MB | 1 年前3
Conan 1.53 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.53.0 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 953 页 | 7.64 MB | 1 年前3
Conan 1.61 Documentationversions so you can start migrating your recipes to do a smooth transition to Conan 2.0. 2.1.1 Python import statements • All the imports from the conans package have to be replaced. The Conan 2.0 ones are from conans import ConanFile, tools 7 Conan Documentation, Release 1.61.0 Listing 2: To: from conan import ConanFile from conan.tools.files import save, load from conan.tools.gnu import AutotoolsToolchain AutotoolsToolchain, AutotoolsDeps from conan.tools.microsoft import unix_path, VCVars, is_msvc from conan.errors import ConanInvalidConfiguration from conan.errors import ConanException ... 2.1.2 Requirements • Use0 码力 | 985 页 | 7.52 MB | 1 年前3
Conan 2.0 Documentationconanfile.txt in form of Conan recipe could look like this: Listing 27: conanfile.py from conan import ConanFile class CompressorRecipe(ConanFile): settings = "os", "compiler", "build_type", "arch" generators make it work for every platform without adding more changes. Listing 30: conanfile.py import os from conan import ConanFile class CompressorRecipe(ConanFile): settings = "os", "compiler", "build_type" layouts you can import and directly use in your recipe. For example, for the CMake case, there’s a cmake_layout() already defined in Conan: Listing 33: conanfile.py from conan import ConanFile from conan0 码力 | 652 页 | 4.00 MB | 1 年前3
共 100 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













