This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
Initial attempt to set up build process to be usable through conan #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello! This will be similar to OpenBluetoothToolbox/SimpleDBus#24 which I opened for SimpleDBus. have done an initial attempt at making this library usable with a conan build and packaging. My goals were to change as little as possible in the build process so that it could continue to be built as is if desired.
In order to build via conan I am generally using docker images. In this case I used images conanio/gcc8-armv7hf and conanio/gcc10 to test. If you create a docker image using these and have access to the source you can run a command like this to build the library and create the conan package. I use VS Code which has some good support for running your code inside docker images.
conan create . simplebluez/0.4.1@ -s compiler.libcxx=libstdc++11 -o shared=False -o simpledbus:shared=False
The version number is arbitrary based on whatever version you are packaging but I chose the next version for this example. You will also notice a couple things different from the other request:
A few notes on general setup with Conan and what I did:
I changed the includes for the fmt library to include format.h instead of core.h. I believe this is the correct method and when I tried to use it without the examples were not linking because the library was including references to fmt symbols that were not already compiled in.
Please check it out and let me know if you have any questions or problems with it. Conan is a great system and it will allow you to really get dependencies set up correctly if you use the versioning as it was intended so that a version of something clearly knows what the versions of the dependencies are. Also if you use a repository to keep the packages you can keep the binaries around for frequently used items so they don't need to be rebuilt every time.