early-access version 2853
This commit is contained in:
27
externals/vcpkg/ports/winsock2/portfile.cmake
vendored
Executable file
27
externals/vcpkg/ports/winsock2/portfile.cmake
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
vcpkg_get_windows_sdk(WINDOWS_SDK)
|
||||
|
||||
if (WINDOWS_SDK MATCHES "10.")
|
||||
set(LIBFILEPATH "$ENV{WindowsSdkDir}Lib\\${WINDOWS_SDK}\\um\\${TRIPLET_SYSTEM_ARCH}\\Ws2_32.Lib")
|
||||
set(HEADERSPATH "$ENV{WindowsSdkDir}Include\\${WINDOWS_SDK}\\um")
|
||||
elseif(WINDOWS_SDK MATCHES "8.")
|
||||
set(LIBFILEPATH "$ENV{WindowsSdkDir}Lib\\winv6.3\\um\\${TRIPLET_SYSTEM_ARCH}\\Ws2_32.Lib")
|
||||
set(HEADERSPATH "$ENV{WindowsSdkDir}Include\\um")
|
||||
else()
|
||||
message(FATAL_ERROR "Portfile not yet configured for Windows SDK with version: ${WINDOWS_SDK}")
|
||||
endif()
|
||||
|
||||
if (NOT EXISTS "${LIBFILEPATH}")
|
||||
message(FATAL_ERROR "Cannot find Windows ${WINDOWS_SDK} SDK. File does not exist: ${LIBFILEPATH}")
|
||||
endif()
|
||||
|
||||
file(COPY ${LIBFILEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(COPY ${LIBFILEPATH} DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib)
|
||||
|
||||
if (WINDOWS_SDK MATCHES "10.")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/winsock2/copyright "See https://developer.microsoft.com/windows/downloads/windows-10-sdk for the Windows 10 SDK license")
|
||||
elseif(WINDOWS_SDK MATCHES "8.")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/winsock2/copyright "See https://developer.microsoft.com/windows/downloads/windows-8-1-sdk for the Windows 8.1 SDK license")
|
||||
endif()
|
||||
|
||||
# Allow empty include directory
|
||||
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
||||
7
externals/vcpkg/ports/winsock2/vcpkg.json
vendored
Executable file
7
externals/vcpkg/ports/winsock2/vcpkg.json
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "winsock2",
|
||||
"version": "0.0",
|
||||
"port-version": 4,
|
||||
"description": "Windows Sockets.",
|
||||
"supports": "windows"
|
||||
}
|
||||
Reference in New Issue
Block a user