pdf文档 Conan 1.41 Documentation

7.10 MB 835 页 0 评论
语言 格式 评分
英语
.pdf
3
摘要
文档主要介绍了Conan 1.41版本的更新内容,包括兼容性政策、Python支持、社区贡献、包管理方法和未来计划。文档强调了Conan的稳定性和向后兼容性的挑战,同时介绍了如何使用Conan进行包的创建、消费和管理。此外,文档还详细说明了Conan的社区支持、扩展功能以及与各种工具的集成。
AI总结
### Conan 1.41 Documentation Summary #### 1. Introduction to Conan - **Compatibility**: Conan follows a forward-compatible approach. New features in 1.X versions may make packages and recipes created with newer versions incompatible with older ones. Public repositories like ConanCenter assume the latest client version. - **Python Requirement**: Conan requires Python 3 to run. Python 2 support was deprecated as of Conan 1.22.0 and is no longer guaranteed. - **Community Adoption**: Hundreds of companies (e.g., Audi, Mercedes-Benz) and thousands of developers use Conan. The community actively contributes to recipes, generators, and documentation. #### 2. Key Features and Changes - **New Features**: - Improved compiler detection using built-in macro definitions (CONAN_V2_MODE). - Enhanced support for CMake and modern cmake targets. - Support for advanced queries, profiles, and FreeBSD. - Added `user` and `channel` fields in recipes for better dependency management. - **Deprecations**: - Deprecated `self.info` in `conanfile.package()`. - Deprecated `tools.msvc_build_command`, `tools.build_sln_command`, and `cpp_info.cppflags` (use `cxxflags` instead). - Deprecated environment variables `CONAN_USERNAME` and `CONAN_CHANNEL`. - **Package Management**: - Lockfile support for managing dependencies and build order. - Enhanced package creation with `package_id()`, `build_id()`, and `package_info()` methods. #### 3. Community and Resources - **Community Contributions**: - Cheatsheets and extended guides for daily operations. - Thousands of users contribute to ConanCenter and participate in the CppLang Slack #conan channel. - **Documentation**: - Available in PDF and PNG formats for quick reference. - Comprehensive guides for setup, configuration, package creation, and dependency management. #### 4. Development and Integration - **Custom Integrations**: - Two ways to create custom generators: built-in or as a package. - Extensible mechanisms for integrating other tools with Conan. - **Linting**: - Plugin support for tools like pylint to check recipe quality. - Hooks for automatic linting during recipe export. #### 5. Future and Roadmap - **Roadmap**: Conan 2.0 is under development. Changes in 1.41 are part of the transition to the next major version. - **Feedback**: Users are encouraged to provide feedback on CONAN_V2_MODE and future changes. #### 6. Conclusion Conan 1.41 introduces significant improvements in compatibility, tooling, and community support while deprecating older features. Users are advised to update their workflows to align with the latest Conan practices for optimal performance and compatibility.
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余 823 页请下载阅读 -
文档评分
请文明评论,理性发言.