Recipe tools
Tools are all things that can be imported and used in Conan recipes.
The import path is always like:
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
from conan.tools.microsoft import MSBuildToolchain, MSBuildDeps, MSBuild
The main guidelines are:
Everything that recipes can import belong to
from conan.tools
. Any other thing is private implementation and shouldn’t be used in recipes.Only documented, public (not preceded by
_
) tools can be used in recipes.
Contents:
- conan.tools.android
- conan.tools.apple
- conan.tools.build
- conan.tools.cmake
- conan.tools.CppInfo
- conan.tools.env
- conan.tools.files
- conan.tools.gnu
- conan.tools.google
- conan.tools.intel
- conan.tools.layout
- conan.tools.meson
- conan.tools.microsoft
- conan.tools.qbs
- conan.tools.ros
- conan.tools.scm
- conan.tools.scons
- conan.tools.premake
- conan.tools.system