Skip to content
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

hidapi: add version 0.13.1 #15391

Merged
merged 2 commits into from
Jan 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion recipes/hidapi/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"0.13.1":
url: "https://github.com/libusb/hidapi/archive/hidapi-0.13.1.tar.gz"
sha256: "476a2c9a4dc7d1fc97dd223b84338dbea3809a84caea2dcd887d9778725490e3"
"0.12.0":
url: "https://github.com/libusb/hidapi/archive/hidapi-0.12.0.tar.gz"
sha256: "28ec1451f0527ad40c1a4c92547966ffef96813528c8b184a665f03ecbb508bc"
Expand All @@ -9,5 +12,5 @@ sources:
url: "https://github.com/libusb/hidapi/archive/hidapi-0.11.0.tar.gz"
sha256: "391d8e52f2d6a5cf76e2b0c079cfefe25497ba1d4659131297081fc0cd744632"
"0.10.1":
url: "https://github.com/libusb/hidapi/archive/refs/tags/hidapi-0.10.1.tar.gz"
url: "https://github.com/libusb/hidapi/archive/hidapi-0.10.1.tar.gz"
Comment on lines -12 to +15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, refs/tags is less ambiguous (no collision between branch & tags) and it's now the link provided by github for auto generated archives of tags, so I would advice to not remove these refs/tags, and instead fix other url.

sha256: "f71dd8a1f46979c17ee521bc2117573872bbf040f8a4750e492271fc141f2644"
3 changes: 3 additions & 0 deletions recipes/hidapi/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from conan.tools.gnu import Autotools, AutotoolsToolchain, PkgConfigDeps
from conan.tools.layout import basic_layout
from conan.tools.microsoft import is_msvc, MSBuild, MSBuildToolchain
from conan.tools.scm import Version
import os

required_conan_version = ">=1.54.0"
Expand Down Expand Up @@ -147,3 +148,5 @@ def package_info(self):
self.cpp_info.libs = ["hidapi"]
if self.settings.os == "Macos":
self.cpp_info.frameworks.extend(["IOKit", "CoreFoundation", "AppKit"])
if Version(self.version) == "0.10.1" and self.settings.os == "Windows":
self.cpp_info.system_libs = ["setupapi"]
2 changes: 2 additions & 0 deletions recipes/hidapi/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"0.13.1":
folder: all
"0.12.0":
folder: all
"0.11.2":
Expand Down