50 lines
1.1 KiB
Markdown
50 lines
1.1 KiB
Markdown
# Elemmire
|
|
|
|
## Steps to build
|
|
|
|
* Install Conan>=2
|
|
```
|
|
conda install -c conda-forge conan
|
|
```
|
|
* Create a conan profile
|
|
```
|
|
conan profile detect --force
|
|
```
|
|
* To build the library locally:
|
|
* Install dependencies with conan
|
|
```
|
|
conan install . --build=missing
|
|
```
|
|
or for the debug version:
|
|
```
|
|
conan install . --build=missing --profile=debug
|
|
```
|
|
* Build with meson
|
|
```
|
|
cd build-release ; conan build .. ; cd ..
|
|
```
|
|
or for the debug version:
|
|
```
|
|
cd build-debug ; conan build .. --profile=debug ; cd ..
|
|
```
|
|
* To create the package (i.e. build and install it in the conan cache ``~/.conan2``):
|
|
```
|
|
conan create . --build=missing
|
|
```
|
|
or for the debug version:
|
|
```
|
|
conan create . --build=missing --profile=debug
|
|
```
|
|
If necessary, use a user and a channel to build as ``elemmire/x.y@user/channel'':
|
|
```
|
|
conan create . --build=missing --user user --channel channel
|
|
```
|
|
* Work with the local cache
|
|
* Check installation in the cache:
|
|
```
|
|
conan list elemmire
|
|
```
|
|
* To remove from the local cache:
|
|
```
|
|
conan remove elemmire/x.y
|
|
```
|