Skip to content

Add Conan package manager support#804

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/add-libhv-to-conan
Draft

Add Conan package manager support#804
Copilot wants to merge 2 commits intomasterfrom
copilot/add-libhv-to-conan

Conversation

Copy link
Contributor

Copilot AI commented Mar 9, 2026

Adds a Conan recipe (conanfile.py) so libhv can be consumed via the Conan package manager.

  • conanfile.py — Recipe exposing all CMake build options as Conan options (with_openssl, with_http, with_mqtt, with_evpp, with_kcp, enable_uds, etc.). Handles optional dependencies (openssl, nghttp2, mbedtls) and platform-specific system libs. Correctly maps static library name (hv_static) vs shared (hv).
  • test_package/ — Standard Conan test package that links against libhv and calls hv_version() to validate the built package.

Usage

# Local build & test
conan create . libhv/1.3.4@ -o libhv:with_openssl=True

# Consume in a project's conanfile.txt
[requires]
libhv/1.3.4
Original prompt

This section details on the original issue you should resolve

<issue_title>什么时候libhv上传到conan包管理器里?</issue_title>
<issue_description>什么时候libhv上传到conan包管理器里?</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: ithewei <26049660+ithewei@users.noreply.github.com>
Copilot AI changed the title [WIP] Add libhv to conan package manager Add Conan package manager support Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

什么时候libhv上传到conan包管理器里?

2 participants