Conan 1.6 Documentation
2.87 MB
428 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
英语 | .pdf | 3 |
摘要 | ||
文档介绍了Conan 1.6版本的更新内容,包括新功能、改进和修复。主要更新包括支持现代CMake、新增CI/CD支持、改进依赖管理、添加文件校验功能、修复包安装问题等。文档还提到了对Python 2和3的支持策略,以及对Windows和FreeBSD等操作系统的优化。 | ||
AI总结 | ||
### Conan 1.6 Documentation Summary
Conan is a portable package manager designed for C and C++ developers, though it can also manage builds from source, dependencies, and precompiled binaries for any language. Below is a summary of key updates and features in the 1.6 release series, organized by version and major changes.
---
#### **Conan 1.6.1**
- **New Features:**
- **New qmake generator**: Added support for qmake-based projects (courtesy of @dragly).
- **Pip Package**: Conan can now be installed via `pip install conan`.
- **Binary Creation**: Released pyinstaller code to create binaries from Conan Python source, aiding package creators for various distributions.
- **Hashing Support**: Added `md5`, `sha1`, and `sha256` helpers in `tools` for verifying external downloads in `conanfile.py`.
- **CI Support**: Added support for Travis-CI and AppVeyor.
- **Improved Readability**: Enhanced download progress and help messages for better user experience.
- **Bug Fixes:**
- **Folder Deletion**: Improved `shutil.rmtree` to prevent permission issues, especially on Windows.
- **Duplicate Requirements**: Fixed a bug where duplicate requirements could occur when using version ranges and `requirements()` method.
- **Crashes and Corruptions**: Resolved issues with corrupted package generation in `conan install --all` and crashes due to duplicate requires or imported files with symlinks.
- **Windows Compatibility**: Fixed line endings in `conan.conf` for Windows.
---
#### **Conan 1.7.0**
- **New Features:**
- **Modern CMake Support**: Added support for modern CMake with `INTERFACE IMPORTED` targets.
- **Advanced Search Queries**: Enhanced search functionality with more advanced query capabilities.
- **Profile Management**: Introduced `profile list` and `profile show` commands to manage and view profiles.
- **FreeBSD Support**: Added preliminary support for FreeBSD.
- **Description Field**: Added a `description` field in Conan recipes to document package contents.
- **Imports Manifest**: Introduced `conan imports` to generate an imports manifest and added an `--undo` option to remove imported files.
- **SSL Verification**: Added optional SSL certificate verification for remotes, allowing self-signed certificates.
- **Custom Paths in Profiles**: Profiles can now define custom paths, making them easier to share in teams.
- **User/Channel in Recipes**: Added `user` and `channel` fields in Conan recipes to declare requirements for the same user/channel as the current package.
- **CMake Generator Flexibility**: Improved flexibility in the CMake helper class to modify the cmake generator.
- **Bug Fixes:**
- **Duplicate Requires**: Fixed a crash when duplicate requires were declared in `conanfile`.
- **Link Order and Private Requirements**: Resolved issues with link order and private requirements.
- **C++20 Standard Support**: Fixed issues with C++20 standard usage and settings in `settings.yml`.
- **Windows Directory Case Sensitivity**: Improved case-sensitive folder management on Windows.
- **Linting Plugin**: Added support for a pylint plugin to handle dynamic fields in Conan recipes.
---
#### **Conan 1.8.0**
- **New Features:**
- **Conan Workspaces**: Introduced a new feature for managing multiple projects in a workspace.
- **System Libraries in CMake**: Added system libraries to the `cmake_find_package` generator.
- **Signal Handling**: Added a `SIGTERM` signal handler for safer termination.
- **Bug Fixes:**
- **GCC Detection**: Fixed misdetection of GCC 1 on Linux systems.
- **Multi-Config Packages**: Resolved issues with multi-config packages.
- **C++20 Standard Management**: Improved handling of C++20 standard versions.
- **Case-Sensitive Directories**: Fixed issues with case-sensitive directory names on Windows.
---
#### **Other Key Updates**
- **Python 2 Deprecation Notice**: While Conan 1.6 and earlier versions support both Python 2 and Python 3, future features may be implemented exclusively in Python 3. New features in Python 3 will not be available in Python 2 versions of Conan.
- **Virtual Environments**: Enhanced support for virtual environments with generators like `virtualrunenv`.
- **Linting Support**: Added a plugin for pylint to handle dynamic fields in Conan recipes.
---
### Summary of Key Features in Conan 1.6
1. **Improved Build and Dependency Management**: Enhanced tools for managing builds, dependencies, and precompiled binaries.
2. **Cross-Language Support**: Expanded support for package management beyond C and C++, including Python and other languages.
3. **CI/CD Integration**: Added support for popular CI platforms like Travis-CI and AppVeyor.
4. **Advanced Search and Querying**: Enhanced search capabilities for better dependency management.
5. **Profile and Customization**: Introduced profiles for custom paths and improved team collaboration.
6. **Modern Compiler and Toolchain Support**: Added support for modern CMake and improved handling of C++20 standards.
7. **Bug Fixes and Stability**: Addressed critical issues related to folder deletion, duplicate requirements, and Windows compatibility.
For more details, visit [conan.io](https://conan.io). |
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余
416 页请下载阅读 -
文档评分