[libusb] Fix the support for Visual Studio 2019 (#16839)

* [libusb] Fix the support for Visual Studio 2019

* Update versions
This commit is contained in:
NancyLi1013 2021-03-24 05:41:32 +08:00 committed by GitHub
parent b35f1edc23
commit 9327b5c5bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 8 deletions

View File

@ -1,6 +0,0 @@
Source: libusb
Version: 1.0.24
Port-Version: 3
Homepage: https://github.com/libusb/libusb
Description: a cross-platform library to access USB devices
Supports: !uwp

View File

@ -14,7 +14,7 @@ vcpkg_from_github(
if(VCPKG_TARGET_IS_WINDOWS)
if(VCPKG_PLATFORM_TOOLSET MATCHES "v142")
set(MSVS_VERSION 2017) #they are abi compatible, so it should work
set(MSVS_VERSION 2019)
elseif(VCPKG_PLATFORM_TOOLSET MATCHES "v141")
set(MSVS_VERSION 2017)
else()

8
ports/libusb/vcpkg.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "libusb",
"version": "1.0.24",
"port-version": 4,
"description": "a cross-platform library to access USB devices",
"homepage": "https://github.com/libusb/libusb",
"supports": "!uwp"
}

View File

@ -3510,7 +3510,7 @@
},
"libusb": {
"baseline": "1.0.24",
"port-version": 3
"port-version": 4
},
"libusb-win32": {
"baseline": "1.2.6.0-6",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "0d77c2046af91be18e4af15b3a9b3e7f0024fa18",
"version": "1.0.24",
"port-version": 4
},
{
"git-tree": "419808531bfc5a58d7581dc700a2560a3ab7265e",
"version-string": "1.0.24",