-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refl-cpp recipe #5102
Refl-cpp recipe #5102
Conversation
Hedley is "A C/C++ header to help move #ifdefs out of your code." It can be found at https://github.com/nemequ/hedley. It contains cross platform versions of common macros, like `HEDLEY_LIKELY`, version checks, and macros to allow code to be compiled under C or C++ such as `HEDLEY_STATIC_CAST`. As of now, the recipe pulls down Hedley version 15 and copies it into the include directory (as far as I know).
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
This library requires at least C++17. It does not currently have a CMakeLists.txt specifying this. Should I add this information to conan somehow? Should I just make a CMakeLists? if so, is it better to put that here or in the original repository? |
This comment has been minimized.
This comment has been minimized.
Pull conan-io's conan-center-index
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
You are adding two recipes in this PR... Can you please remove the old one?
The easiest way to do this is with copy and paste from conan-io/conan#8002 which is our usually was of doing it... there's lots of C++17 examples in CCI if you need to compiler versions |
Thanks! Is the easiest way to remove the old one to close this and try again? |
If you are not familiar with git, I'd suggest using the file explorer to remove the folder and run Hopefully that helps |
This comment has been minimized.
This comment has been minimized.
#include "refl.hpp" | ||
|
||
int main() { | ||
return 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a line to all a method or ctor to test the linkage (or make sure theres no missing deps)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very close
You're right. I put them in just to get it to work and forgot to prune. Thanks! Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution. Please, take a look on my review.
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Use cmake_find_package_multi Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: Uilian Ries <uilianries@gmail.com>
All green in build 19 (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
* Add a recipe for Hedley Hedley is "A C/C++ header to help move #ifdefs out of your code." It can be found at https://github.com/nemequ/hedley. It contains cross platform versions of common macros, like `HEDLEY_LIKELY`, version checks, and macros to allow code to be compiled under C or C++ such as `HEDLEY_STATIC_CAST`. As of now, the recipe pulls down Hedley version 15 and copies it into the include directory (as far as I know). * Removed import * Add step to copy the license * Remove CMake import Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Remove cmake values from conanfile.py Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Update recipes/hedley/all/test_package/CMakeLists.txt Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Update recipes/hedley/all/test_package/conanfile.py Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Update recipes/hedley/all/test_package/example.cpp Co-authored-by: Uilian Ries <uilianries@gmail.com> * Add a recipe for refl-cpp * Use target_compile_features instead of _properties * Try to bail test queitly if the compiler is old * Remove unconditional requirement for C++17 * Try requiring C++14? * Remove old (hedley) * Add boilerplate for minimum versions * Add errors import, bump compiler versions * Fully qualify ConanInvalidConfiguration I'm trying to find out why CI says it's undefined * The right amount of qualification * Add reflcpp readme's example to test's example.cpp * Weaken example static_asserts to rt asserts * Update recipes/refl-cpp/all/conanfile.py You're right. I put them in just to get it to work and forgot to prune. Thanks! Co-authored-by: Chris Mc <prince.chrismc@gmail.com> * Remove unneeded imports Co-authored-by: Uilian Ries <uilianries@gmail.com> * Rename configure to validate Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/refl-cpp/all/conanfile.py Co-authored-by: Uilian Ries <uilianries@gmail.com> * Update recipes/refl-cpp/all/test_package/conanfile.py Use cmake_find_package_multi Co-authored-by: Uilian Ries <uilianries@gmail.com> * Clean up CMakeLIsts.txt for test_package Co-authored-by: Uilian Ries <uilianries@gmail.com> Co-authored-by: Chris Mc <prince.chrismc@gmail.com> Co-authored-by: Uilian Ries <uilianries@gmail.com>
Specify library name and version: refl-cpp/0.12.1*
This is also a good place to share with all of us why you are submitting this PR (specially if it is a new addition to ConanCenter): It is a library someone I know wanted to use from a Conan project
conan-center hook activated.