[winsock2,usocket] Fix mingw build (#25079)

* winsocks2 is empty package on mingw

* Fix usocket build on mingw

* Update versions

* Add license fields

* Update versions

* Update versions
This commit is contained in:
Kai Pastor 2022-07-28 21:21:06 +02:00 committed by GitHub
parent e20e1c7908
commit fb5d36bcad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 21 additions and 5 deletions

View File

@ -41,7 +41,7 @@ endif()
if (CMAKE_USE_NETWORK)
list(APPEND USOCKETS_EXT_INCLUDE_DIR src/internal/networking)
list(APPEND USOCKETS_EXT_LIBS Ws2_32)
list(APPEND USOCKETS_EXT_LIBS ws2_32)
endif()
add_library(uSockets ${SOURCES})

View File

@ -1,7 +1,7 @@
{
"name": "usockets",
"version": "0.8.1",
"port-version": 1,
"port-version": 2,
"description": "Miniscule cross-platform eventing, networking & crypto for async applications",
"homepage": "https://github.com/uNetworking/uSockets",
"license": "Apache-2.0",

View File

@ -1,3 +1,8 @@
if(VCPKG_TARGET_IS_MINGW)
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
return()
endif()
vcpkg_get_windows_sdk(WINDOWS_SDK)
if (WINDOWS_SDK MATCHES "10.")

View File

@ -1,7 +1,8 @@
{
"name": "winsock2",
"version": "0.0",
"port-version": 4,
"port-version": 5,
"description": "Windows Sockets.",
"license": null,
"supports": "windows"
}

View File

@ -7350,7 +7350,7 @@
},
"usockets": {
"baseline": "0.8.1",
"port-version": 1
"port-version": 2
},
"usrsctp": {
"baseline": "0.9.5.0",
@ -7614,7 +7614,7 @@
},
"winsock2": {
"baseline": "0.0",
"port-version": 4
"port-version": 5
},
"winsparkle": {
"baseline": "0.7.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f5f1af355335cdcd1c055cdbcdd574b146116942",
"version": "0.8.1",
"port-version": 2
},
{
"git-tree": "bf42304e17879df7e100c97d4487adaeaadfd87e",
"version": "0.8.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f9afad2b0a036847b45f884809b16d804eae56cf",
"version": "0.0",
"port-version": 5
},
{
"git-tree": "f6fb217f4eea375e9691dbde28c72c01dddd0c9f",
"version": "0.0",