-
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
drogon: add recipe #10848
drogon: add recipe #10848
Conversation
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.
Hooks produced the following warnings for commit 6ab1e0ddrogon/1.7.5
|
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.
Hooks produced the following warnings for commit c10f4d4drogon/1.7.5
|
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.
Nice recipe. Only few points to be cleared.
recipes/drogon/all/conanfile.py
Outdated
def configure(self): | ||
if self.options.shared: | ||
del self.options.fPIC | ||
self.options["trantor"].shared = True |
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.
self.options["trantor"].shared = True | |
self.options["trantor"].shared = True |
Any error which enforces trantor as shared?
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.
This is the way of upstream CMakeLists.txt.
https://github.com/drogonframework/drogon/blob/v1.7.5/CMakeLists.txt#L54-L55
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.
Good catch!
recipes/drogon/all/conanfile.py
Outdated
self.requires("coz/cci.20210322") | ||
if self.options.with_brotli: | ||
self.requires("brotli/1.0.9") | ||
if self.options.with_postgres: |
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.
Don't forget to use self.options.get_safe
instead.
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!
I fixed those.
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit ce771eddrogon/1.7.5
|
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
def configure(self): | ||
if self.options.shared: | ||
del self.options.fPIC | ||
self.options["trantor"].shared = True |
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.
might be better to reject invalid shared/static combinations in validate
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.
The problem we require only static libs by default. If we only validate, this package would break for any configuration.
if(NEED_BOOST_FS) | ||
- find_package(Boost 1.49.0 COMPONENTS filesystem system REQUIRED) | ||
+ # TODO: component specified find_package is always failed. Need to fix it. | ||
+ find_package(Boost 1.49.0 REQUIRED) |
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.
interesting. might be a conan generator bug?
All green in build 14 (
|
Specify library name and version: drogon/1.7.5