Conan 1.3 Documentation
2.77 MB
397 页
0 评论
语言 | 格式 | 评分 |
---|---|---|
英语 | .pdf | 3 |
摘要 | ||
文档主要介绍了Conan 1.3版本的升级注意事项、命令行参数的变化、安装配置方法以及包管理功能。Conan是一个适用于C和C++开发者的开源包管理器,支持从源码构建、管理依赖和预编译二进制文件。文档详细说明了如何使用命令行工具进行安装、配置和部署,还提供了视频资源和教程链接,帮助用户更好地理解和使用Conan。 | ||
AI总结 | ||
### Conan 1.3 Documentation Summary
#### 1. **Upgrading to Conan 1.0**
- **Key Changes**:
- Command-line arguments have been updated. For example, `--path` and `--file` are no longer used. Instead, commands now require the path to the `conanfile.py` or `conanfile.txt` directly.
- Examples:
```bash
$ conan install .
$ conan create . user/channel
$ conan export . user/channel
```
- Underscores in command-line arguments have been replaced with dashes (e.g., `--source_folder` becomes `--source-folder`).
#### 2. **Core Features**
- **Conan as a Package Manager**:
- Supports C/C++ developers but is versatile for any language.
- Manages builds from source, dependencies, and precompiled binaries.
- Uses a decentralized client-server architecture, allowing offline work and private package hosting.
- **Commands**:
- **Consumer Commands**: Includes `conan install`, `conan get`, `conan info`, and `conan config` for managing package installations and configurations.
- **Build and Package Commands**: Includes `conan build`, `conan create`, and `conan export` for creating and exporting packages.
- **Generators**: Supports various build system generators (e.g., CMake, Visual Studio).
- **Package Management**:
- Packages can include executables, shared libraries, and development tools (e.g., compilers or build systems).
- Packages can be created using the `package()` method in `conanfile.py`.
#### 3. **Use Cases**
- **Packaging Applications**:
- Applications with executables or shared libraries can be packaged and deployed.
- Example: Packaging an executable `greet.exe` using `conan create`.
- **Cross-Platform Builds**:
- Conan supports building and deploying packages for multiple platforms and targets.
#### 4. **References and Resources**
- **Command-Line Arguments**: Detailed options for commands like `conan install` include parameters such as `--generator`, `--install-folder`, and `--settings`.
- **Video Tutorials**: Available on topics like packaging C/C++ libraries, introduction to Conan, and efficient CI/CD with Conan.
#### 5. **Installation and Configuration**
- **Installation**:
- Conan can be installed directly from PyPI or from source.
- Minimal Python and pip requirements are needed for installation.
- **Initial Setup**:
- Verify installation with `conan --help`.
- Configure Conan using `conan config`.
#### 6. **Key Benefits**
- Unified tool for development and distribution.
- Supports multiple deployment configurations.
- Efficient package management for large C/C++ projects.
This summary highlights the essential features, commands, and use cases of Conan 1.3, providing a concise overview of its capabilities and functionalities. |
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余
385 页请下载阅读 -
文档评分