Conan 1.56 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) 8 Chapter 2. Conan migration guide to 2.0 Conan Documentation, Release 1.56.0 Listing 4: a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.55 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) 8 Chapter 2. Conan migration guide to 2.0 Conan Documentation, Release 1.55.0 Listing 4: a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 963 页 | 7.67 MB | 1 年前3
Conan 1.54 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) 8 Chapter 2. Conan migration guide to 2.0 Conan Documentation, Release 1.54.0 Listing 4: a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 953 页 | 7.65 MB | 1 年前3
Conan 1.31 DocumentationDescription: A toolkit for the Transport Layer Security (TLS) and Secure Sockets␣ ˓→Layer (SSL) protocols Topics: conan, openssl, ssl, tls, encryption, security Recipe: Cache Binary: Cache Binary remote: also: There are two generators, cmake_multi and visual_studio_multi that could help to avoid the context switch and using Debug and Release configurations simultaneously. Read more about them in cmake_multi method source() in the recipe (if defined). As SCM attributes are evaluated in the local directory context (see scm attribute), you can write more complex functions to retrieve the proper values, this source0 码力 | 721 页 | 5.41 MB | 1 年前3
Conan 1.53 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) 8 Chapter 2. Conan migration guide to 2.0 Conan Documentation, Release 1.53.0 Listing 4: a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 953 页 | 7.64 MB | 1 年前3
Conan 1.52 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) Listing 4: To: from conan import ConanFile class Pkg(Conanfile): ... def build_requirements(self): a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 943 页 | 7.62 MB | 1 年前3
Conan 1.49 Documentation8 Python 2 Removal Notice From version 1.49, Conan will not work with Python 2. This is because security vulnerabilities of Conan dependencies that haven’t been addressed in Python 2, so the only alternative supported. Extra blockers have been added in previous Conan releases to make everyone aware. Now the security vulnerabilities that are out of our scope, makes impossible to move forward support for Python 2 compiler >= 5.1, Conan will set the compiler.libcxx to the old ABI for backwards compatibility. In the context of this getting started example, this is a bad choice though: Recent gcc versions will compile the0 码力 | 915 页 | 7.53 MB | 1 年前3
Conan 1.50 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) Listing 4: To: from conan import ConanFile class Pkg(Conanfile): ... def build_requirements(self): a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 923 页 | 7.55 MB | 1 年前3
Conan 1.51 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) Listing 4: To: from conan import ConanFile class Pkg(Conanfile): ... def build_requirements(self): a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 933 页 | 7.58 MB | 1 年前3
Conan 1.63 Documentationtest_requires() to define test requirements instead of the legacy self.build_requires(..., force_host_context). • Use self.tool_requires() to define the legacy build_requires. Listing 3: From: from conans build_requirements(self): self.build_requires("nasm/2.15.05") self.build_requires("gtest/0.1", force_host_context=True) 8 Chapter 2. Conan migration guide to 2.0 Conan Documentation, Release 1.63.0 Listing 4: a self.conf object available with the aggregated configuration from all the recipes in the build context: from conan import ConanFile class Pkg(ConanFile): settings = "os", "compiler", "build_type", "arch"0 码力 | 995 页 | 7.54 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













