pdf文档 Conan 2.1 Documentation

4.13 MB 694 页 0 评论
语言 格式 评分
英语
.pdf
3
摘要
Conan 2.1版本引入了多项重要改进,包括新的图形模型以更好地支持C和C++二进制关系,新的公共Python API以实现自动化和扩展功能,以及更灵活的构建系统集成。此外,Conan 2.1还提供了新的自定义用户命令、改进的CLI界面、新的部署机制、更强大的锁文件功能以及对二进制不可变性的支持,以提高协作效率和依赖管理。
AI总结
### Conan 2.1 Documentation Summary Conan 2.1 is an open-source, decentralized C/C++ package manager designed to work across platforms, build systems, and compilers. This version introduces several significant improvements and new features, particularly focused on enhancing functionality, usability, and compatibility. #### Key Features and Improvements: 1. **New Commands and Verbosity Control**: - Added `-v` and `--logger` options to control output verbosity and log in JSON format for processing. - Restored the `conan config list` command for better configuration management. 2. **Enhanced Graph Model**: - Introduced a new graph model to better support C/C++ binary relationships, compilation, and linkage. - Defined requirement traits (e.g., headers, libs, build, run) and package types (e.g., static, shared, header-only) for improved dependency management. 3. **Public Python API**: - Released a modular, documented Python API for advanced automation and customization. - Provides sub-APIs for functional groups like `api.list`, `api.search`, and `api.graph`. 4. **Build System Integrations**: - Enhanced build system integrations, including support for CMakeDeps and CMakeToolchain for transparent integration. - Added new custom user commands that can be shared and installed via `conan config install`. 5. **Improved Lockfiles and Cache**: - Introduced simpler and more powerful lockfiles for better reproducibility. - Allowed multiple cache revisions to be stored simultaneously. 6. **Configuration and Environment Management**: - Enhanced configuration with `[conf]` and improved environment management using `conan.tools.env`. 7. **Binary Compatibility and Deployment**: - Added compatibility.py for global binary compatibility definitions. - Introduced deployers mechanism to copy artifacts from the cache to user folders. 8. **Migration and Compatibility**: - Ensured compatibility with Conan 1.X, allowing recipes and binaries to coexist in the same repositories. - Provided a migration guide for users transitioning from Conan 1.X to 2.0. 9. **Experimental Features**: - Added experimental features like `conan inspect`, which provides detailed information about Conanfiles. #### Resources: - **GitHub Project**: [https://github.com/conan-io/conan](https://github.com/conan-io/conan) - **Documentation**: [Conan Documentation](https://conan.io/docs/) - **Community and Support**: Access through the Conan homepage and mailing lists. This release of Conan 2.1 aims to provide a more robust, flexible, and user-friendly experience for managing C/C++ packages.
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余 682 页请下载阅读 -
文档评分
请文明评论,理性发言.