Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kambala-decapitator/conan-system-libs
Conan recipes to link to system libraries instead of self-built
https://github.com/kambala-decapitator/conan-system-libs
conan conan-recipe
Last synced: 21 days ago
JSON representation
Conan recipes to link to system libraries instead of self-built
- Host: GitHub
- URL: https://github.com/kambala-decapitator/conan-system-libs
- Owner: kambala-decapitator
- License: mit
- Created: 2023-02-27T11:07:45.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-23T23:17:06.000Z (about 2 months ago)
- Last Synced: 2024-11-24T00:19:18.728Z (about 2 months ago)
- Topics: conan, conan-recipe
- Language: Python
- Homepage: https://conan.io/center/
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# conan-system-libs
[Conan](https://conan.io/) recipes to link to system libraries instead of self-built.These recipes are compatible with Conan v2. For v1 see [previous revision](https://github.com/kambala-decapitator/conan-system-libs/tree/4dadde6f565a3cf099165e622402b535d571f2b8).
## Known to work configurations
- Apple platforms (tested macOS/iOS): all recipes
- Android: zlib## Zlib usage example
First, add recipe to your Conan cache:
conan create PATH_TO_THIS_REPO/zlib --user some_user --channel some_channel
`PATH_TO_THIS_REPO`, `some_user` and `some_channel` are placeholders. User and channel are optional, one recommendation would be using `--user system`.
To consume it, use one of the following possibilities:
- **the most recommended way**: add to your profile
```
[replace_requires]
zlib/*: zlib/[*]@some_user/some_channel
```- add `self.requires("zlib/1.2.12@some_user/some_channel", override=True)` to the `def requirements(self)` method of your `conanfile.py`
- add `zlib/1.2.12@some_user/some_channel` to the `[requires]` section of your `conanfile.txt`