early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

30
externals/vcpkg/ports/sockpp/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,30 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fpagliughi/sockpp
REF 999ad87296e34d5a8e4edf15d985315d0d84eda7
SHA512 159b9288f45d5f5144a002f35caf520e55a66c2d45cdb1fe325021f100db0770601e973b86ec5b032e5bea1542203b30eba3e6be20e03c78f0504b62da1900b3
HEAD_REF master
)
vcpkg_replace_string("${SOURCE_PATH}/CMakeLists.txt" "\${SOCKPP}-static" "\${SOCKPP}")
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DSOCKPP_BUILD_SHARED=OFF
-DSOCKPP_BUILD_STATIC=ON
-DSOCKPP_BUILD_DOCUMENTATION=OFF
-DSOCKPP_BUILD_EXAMPLES=OFF
-DSOCKPP_BUILD_TESTS=OFF
)
vcpkg_cmake_install()
file(INSTALL "${CURRENT_PORT_DIR}/sockppConfig.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(COPY "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

View File

@@ -0,0 +1,23 @@
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_DIR}/../../" ABSOLUTE)
if(NOT SOCKPP_FIND_COMPONENTS)
set(SOCKPP_FIND_COMPONENTS sockpp)
if(SOCKPP_FIND_REQUIRED)
set(SOCKPP_FIND_REQUIRED_sockpp TRUE)
endif()
set(SOCKPP_FOUND TRUE)
endif()
set(SOCKPP_INCLUDE_DIRS ${_DIR}/include)
set(SOCKPP_LIBRARIES)
if (EXISTS ${_DIR}/lib/libsockpp.a)
list(APPEND SOCKPP_LIBRARIES optimized ${_DIR}/lib/libsockpp.a)
endif()
if (EXISTS ${_DIR}/debug/lib/libsockpp.a)
list(APPEND SOCKPP_LIBRARIES debug ${_DIR}/debug/lib/libsockpp.a)
endif()
if (EXISTS ${_DIR}/lib/sockpp.lib)
list(APPEND SOCKPP_LIBRARIES optimized ${_DIR}/lib/sockpp.lib)
endif()
if (EXISTS ${_DIR}/debug/lib/sockpp.lib)
list(APPEND SOCKPP_LIBRARIES debug ${_DIR}/debug/lib/sockpp.lib)
endif()

5
externals/vcpkg/ports/sockpp/usage vendored Executable file
View File

@@ -0,0 +1,5 @@
The package sockpp provides CMake integration:
find_package(sockpp CONFIG REQUIRED)
target_include_directories(main PRIVATE ${SOCKPP_INCLUDE_DIRS})
target_link_libraries(main PRIVATE ${SOCKPP_LIBRARIES})

15
externals/vcpkg/ports/sockpp/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,15 @@
{
"name": "sockpp",
"version": "0.7.1",
"port-version": 1,
"description": "Simple, modern, C++ socket library. This is a fairly low-level C++ wrapper around the Berkeley sockets library using socket, acceptor, and connector classes that are familiar concepts from other languages.",
"homepage": "https://github.com/fpagliughi/sockpp",
"license": "BSD-3-Clause",
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}