[Sockpp][Android] Compile Sockpp port for android (#19769)

* Compile for android

* version

* Update versions/s-/sockpp.json

* version

* Update to #55

* version

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
This commit is contained in:
talregev 2022-01-27 01:25:06 +02:00 committed by GitHub
parent 2962fb42d1
commit ff99d5c7e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 23 additions and 9 deletions

View File

@ -3,14 +3,14 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fpagliughi/sockpp
REF d8c86c01db43542a06ad05424da037f6b9892253
SHA512 9b7ae3fea08bfd4a0d6479d7fbcc24da9101476c4f8e4a684138c7d974827cdf374282a4641e58f03c08aeb83f2c1856fc3c5193e5847fb4b3d9182c1c396087
REF 4c57ef4a30a9d8e6fda89cf07410066d2cee12f8
SHA512 0b3031e792b2bc58d868b7dd2462c06f184547e4e094ce395ee1cd2496e1e505f767d8389ce17ecf3d8fb838abae8282c911201f1730cffbf0357a09addab776
HEAD_REF master
)
vcpkg_replace_string(${SOURCE_PATH}/CMakeLists.txt "\${SOCKPP}-static" "\${SOCKPP}")
vcpkg_configure_cmake(
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
@ -21,7 +21,7 @@ vcpkg_configure_cmake(
-DSOCKPP_BUILD_TESTS=OFF
)
vcpkg_install_cmake()
vcpkg_cmake_install()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL ${CURRENT_PORT_DIR}/sockppConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})

View File

@ -1,8 +1,17 @@
{
"name": "sockpp",
"version": "0.7",
"port-version": 2,
"version-date": "2022-01-24",
"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",
"supports": "!uwp"
"supports": "!uwp",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -6461,8 +6461,8 @@
"port-version": 0
},
"sockpp": {
"baseline": "0.7",
"port-version": 2
"baseline": "2022-01-24",
"port-version": 0
},
"soem": {
"baseline": "1.4.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "18dad1cf56b14fdf423311b6f277014e0c3f6762",
"version-date": "2022-01-24",
"port-version": 0
},
{
"git-tree": "3afb916458a5548b20996882ed7f7054d041f0ff",
"version": "0.7",