Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdegreve/bramz-conan-tools
Some custom Conan utilities
https://github.com/bdegreve/bramz-conan-tools
conan
Last synced: 21 days ago
JSON representation
Some custom Conan utilities
- Host: GitHub
- URL: https://github.com/bdegreve/bramz-conan-tools
- Owner: bdegreve
- License: bsd-3-clause
- Created: 2023-12-23T14:09:11.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-23T21:16:42.000Z (about 1 year ago)
- Last Synced: 2024-10-31T20:07:17.870Z (2 months ago)
- Topics: conan
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bramz-conan-tools
Collection of extra utilities for [Conan](https://conan.io/).
## VSCodeCCppProperties Generator
Generates a configuration in [`.vscode/c_cpp_properties.json` configuration file](https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference)
for [Visual Studio Code](https://code.visualstudio.com/) with include paths of all
dependencies and other settings based on the Conan profile.## How to Use?
### As python_requires
First, add this recipe to your cache by exporting it from this git repo:
```
conan export .
```Then you can add it to your own recipe as following:
```
from conan import ConanFileclass Gizmo(ConanFile):
name = "gizmo"
version = "1.0"python_requires = "bramz-conan-tools/1.0.0"
def generate(self):
props = self.python_requires["bramz-conan-tools"].module.VSCodeCCppProperties(self)
props.generate(self)
```### As Global Generator
To [install the extensions globally](https://docs.conan.io/2.0/reference/extensions/custom_generators.html#using-global-custom-generators), use following command:
```
conan config install https://github.com/bdegreve/bramz-conan-tools.git
```Then you can use the generator in your recipe by name, or on the commandline:
```
conan install --requires=zlib/1.2.13 -g VSCodeCCppProperties
```