-
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
Add libmicrohttpd/0.9.75 recipe #13564
Add libmicrohttpd/0.9.75 recipe #13564
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
default_options = { | ||
"shared": False, | ||
"fPIC": True, | ||
"with_https": False, # FIXME: should be True, but gnutls is not yet available in cci |
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.
I started a PR for GNU TlS, need to resume it.
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.
I stopped when I failed to get it building for MSVC x years ago.
Would be nice if you get it working.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f1563cd
to
95f281e
Compare
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.
name = "libmicrohttpd" | ||
description = "A small C library that is supposed to make it easy to run an HTTP server" | ||
homepage = "https://www.gnu.org/software/libmicrohttpd/" | ||
topics = ("libmicrohttpd", "httpd", "server", "service") |
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 package name doesn't need to be in topics
.
topics = ("libmicrohttpd", "httpd", "server", "service") | |
topics = ("httpd", "server", "service") |
if self._settings_build.os == "Windows" and not is_msvc(self) and not self.conf.get("tools.microsoft.bash:path", default=False, check_type=str): | ||
self.build_requires("msys2/cci.latest") |
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.
I think self.win_bash
should be set to True
here.
if self._settings_build.os == "Windows" and not is_msvc(self) and not self.conf.get("tools.microsoft.bash:path", default=False, check_type=str): | |
self.build_requires("msys2/cci.latest") | |
if self._settings_build.os == "Windows" and not is_msvc(self) : | |
self.win_bash = True | |
if not self.conf.get("tools.microsoft.bash:path", default=False, check_type=str): | |
self.tool_requires("msys2/cci.latest") |
@functools.lru_cache(1) | ||
def _configure_autotools(self): | ||
yes_no = lambda v: "yes" if v else "no" | ||
autotools = AutoToolsBuildEnvironment(self, win_bash=self._settings_build.os == "Windows") |
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.
Is it possible to use AutotoolsToolchain
?
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.
Yes, but I got bitten by 2 bugs: conan-io/conan#12193 and conan-io/conan#12338
"epoll": True, | ||
"with_zlib": True, | ||
} | ||
generators = "pkg_config" |
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.
PkgConfigDeps
+ generate()
method?
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Uilian Ries <uilianries@gmail.com> Co-authored-by: Jordan Williams <jordan@jwillikers.com>
This comment has been minimized.
This comment has been minimized.
All green in build 13 (
|
Specify library name and version: libmicrohttpd/0.9.75
Tested with MSVC2019 + MinGW@Windows