Conan 1.3 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 9.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 397 页 | 2.77 MB | 1 年前3
Conan 1.7 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 9.3 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 433 页 | 2.95 MB | 1 年前3
Conan 1.4 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 10.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 421 页 | 2.84 MB | 1 年前3
Conan 1.5 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 10.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 422 页 | 2.85 MB | 1 年前3
Conan 1.6 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 9.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 428 页 | 2.87 MB | 1 年前3
Conan 1.8 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 9.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 458 页 | 3.03 MB | 1 年前3
Conan 1.9 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 9.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 470 页 | 3.05 MB | 1 年前3
Conan 2.0 Documentationself.settings.arch == "armv8": raise ConanInvalidConfiguration("ARM v8 not supported in Macos") Conditional requirements using a conanfile.py You could add some logic to the requirements() method to add for all conanfile.py available methods. • Importing resource files in the generate() method • Conditional generators in configure() 4.1.5 How to cross-compile your applications using Conan: host and build that method and explain how you can use it to do things like: • Building and running tests • Conditional patching of the source code • Select the build system you want to use conditionally Please, first0 码力 | 652 页 | 4.00 MB | 1 年前3
Conan 1.10 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 9.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 479 页 | 3.09 MB | 1 年前3
Conan 1.11 Documentationfor consumers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95 9.2 Conditional settings, options and requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 2@user/testing", "ToolB/0.2@user/testing" def build_requirements(self): # useful for example for conditional build_requires # This means, if we are running on a Windows machine, require ToolWin if platform be checked for existence (whether they’ve been applied) in the recipes, which can be useful for conditional logic in the recipes. In this example, we could have one recipe with the following build() method:0 码力 | 490 页 | 4.05 MB | 1 年前3
共 74 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













