forked from openhome/ohNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request openhome#4 from KGrzeg/conan-deps
Fetch dependencies from conan if that is possible
- Loading branch information
Showing
9 changed files
with
56 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,36 @@ | ||
# Prerequisites | ||
## Install dependencies | ||
Install the latest [conan](https://pypi.org/project/conan/) via pip (at least version 1.54.0) | ||
|
||
|
||
If [libb64]((https://conan.io/center/libb64)) is available on [conan center](https://conan.io/center/), you can skip this step. | ||
If not, then you need to build the package locally. | ||
```sh | ||
🐧 git clone [email protected]:KGrzeg/libb64-conan.git # clone the repo | ||
🐧 cd libb64-conan | ||
🐧 direnv allow # or manually setup cmake and gcc | ||
🐧 git checkout 1.2.1-conanfile # switch to proper tag | ||
🐧 conan create . libb64/1.2.1@ # install package to conan's cache | ||
|
||
# verify that package is successfully installed | ||
🐧λ conan search libb64 | ||
Existing package recipes: | ||
|
||
libb64/1.2.1 | ||
|
||
# if everything is ok, you can delete the directory | ||
🐧 cd .. | ||
🐧 rm -rf libb64-conan | ||
``` | ||
|
||
|
||
# Build and compile (Windows, Linux, MacOS) | ||
```sh | ||
🐧 mkdir build | ||
🐧 cd build | ||
🐧 cmake .. | ||
🐧 conan install .. --build missing | ||
🐧 cmake .. -DCMAKE_BUILD_TYPE=Release | ||
#optionally "🐧 cmake .. -DCMAKE_BUILD_TYPE=Release -GNinja" for quicker builds | ||
🐧 cmake --build . -v | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[requires] | ||
libb64/1.2.1 | ||
|
||
[generators] | ||
CMakeDeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.