-
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
async_simple: add 1.3, reinstate msvc, add compiled version #22614
Conversation
…uthread on non-windows
I detected other pull requests that are modifying async_simple/all recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
This comment has been minimized.
This comment has been minimized.
Don't rename if .a name is already libasync_simple.a (like it is in 1.0)
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 cc284b9async_simple/1.3@#c91de1eca5d26289d77ed9fbe171b397
async_simple/1.0.0@#52ea8dcc1ca7602e0a2760c88e1fa7c5
|
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 ad94d03async_simple/1.2@#75ebce7082b57891db6bc2422606453e
|
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 da3834casync_simple/1.0.0@#a0bc3185256a1484deeec098f0994a52
|
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.
Waiting for answer and requested changes at #22614 (comment)
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
if not self.options.header_only: | ||
hCopyExcludes = ("test", "executors") | ||
if self.options.shared: | ||
copy(self, pattern="*.so*", |
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.
Mac generates .dylib, not .so. The current validate supports mac as well.
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.
Thanks! A few minor changes, otherwise looks good :)
deps = CMakeDeps(self) | ||
deps.generate() |
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.
deps = CMakeDeps(self) | |
deps.generate() |
not needed, as the recipe has no requirements
if minimum_version and Version(self.settings.compiler.version) < minimum_version: | ||
raise ConanInvalidConfiguration(f"{self.ref} requires C++{self._min_cppstd}, which your compiler does not support.") | ||
if not self.options.header_only and self.settings.os == "Windows": | ||
raise ConanInvalidConfiguration(f"{self.ref} cannot use uthread on Windows, and therefore should only be header_only") |
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.
raise ConanInvalidConfiguration(f"{self.ref} cannot use uthread on Windows, and therefore should only be header_only") | |
raise ConanInvalidConfiguration(f'{self.ref} cannot use uthread on Windows, and therefore it's only supported as a header-only library in this configuration with "{self.name}/*:header_only=True"') |
Make invalid configuration message nicer
Conan v1 pipeline ✔️All green in build 10 (
Conan v2 pipeline ✔️
All green in build 9 ( |
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.
Thanks!
Specify library name and version: async_simple/1.3
This quite heavily modifies the recipe to support non-header-only-mode (only on not windows, since the only reason to compile it is for uthread, which only works on linux and osx)
It also removes the invalid throw on msvc - not sure why it was there in the first place, even 1.0 appears to work fine in msvc.
And finally, it adds the latest just released version, 1.3