mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[rsasynccpp] Add new port (Rstein.AsyncCpp) (#16380)
* [rsasynccpp] Added rsasynccpp port * [rsasyncpp] Fix ci.baseline.txt, portfile.cmake, baseline.json, sasynccpp.json * [rsasynccpp] Added requested changes to vcpkg.json * [rsasynccpp] Improve portfile.cmake, add supports * [rsasynccpp] Fix version * [rsasynccpp] Fixing x64-Windows-static triplet Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
This commit is contained in:
parent
c235296c65
commit
0cbc579e1e
48
ports/rsasynccpp/portfile.cmake
Normal file
48
ports/rsasynccpp/portfile.cmake
Normal file
@ -0,0 +1,48 @@
|
||||
vcpkg_fail_port_install(ON_TARGET "Linux" "OSX" "ANDROID" "FREEBSD" "OPENBSD")
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO renestein/Rstein.AsyncCpp
|
||||
REF 0.0.7
|
||||
SHA512 b4cc1c68b6fc7bb8b418457ba18b834769abec07e44305955214f8918cc57f85c4258a0521ea55388fab3ec9724488e506d2b114c765b804991c38bf33133c55
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
if("lib-cl-win-legacy-await" IN_LIST FEATURES)
|
||||
if (VCPKG_CRT_LINKAGE MATCHES "static")
|
||||
set(RELEASE_CONFIGURATION "ReleaseMT_VSAWAIT")
|
||||
set(DEBUG_CONFIGURATION "DebugMT_VSAWAIT")
|
||||
else()
|
||||
set(RELEASE_CONFIGURATION "Release_VSAWAIT")
|
||||
set(DEBUG_CONFIGURATION "Debug_VSAWAIT")
|
||||
endif()
|
||||
else()
|
||||
if (VCPKG_CRT_LINKAGE MATCHES "static")
|
||||
set(RELEASE_CONFIGURATION "ReleaseMT")
|
||||
set(DEBUG_CONFIGURATION "DebugMT")
|
||||
else()
|
||||
set(RELEASE_CONFIGURATION "Release")
|
||||
set(DEBUG_CONFIGURATION "Debug")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (TRIPLET_SYSTEM_ARCH MATCHES "x86")
|
||||
set(MSBUILD_PLATFORM "x86")
|
||||
else ()
|
||||
set(MSBUILD_PLATFORM ${TRIPLET_SYSTEM_ARCH})
|
||||
endif()
|
||||
|
||||
|
||||
vcpkg_install_msbuild(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PROJECT_SUBPATH RStein.AsyncCppLib.sln
|
||||
LICENSE_SUBPATH LICENSE
|
||||
PLATFORM ${MSBUILD_PLATFORM}
|
||||
DEBUG_CONFIGURATION ${DEBUG_CONFIGURATION}
|
||||
RELEASE_CONFIGURATION ${RELEASE_CONFIGURATION}
|
||||
)
|
||||
|
||||
file(COPY "${SOURCE_PATH}/RStein.AsyncCpp/"
|
||||
DESTINATION "${CURRENT_PACKAGES_DIR}/include/asynccpp"
|
||||
FILES_MATCHING PATTERN "*.h")
|
13
ports/rsasynccpp/vcpkg.json
Normal file
13
ports/rsasynccpp/vcpkg.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "rsasynccpp",
|
||||
"version": "0.0.7",
|
||||
"maintainers": "Rene Stein <rene@renestein.net>",
|
||||
"description": "Task Parallel Library (TPL)/dataflow/actors/async primitives for C++ based on C++ 20 coroutines.",
|
||||
"homepage": "https://github.com/renestein/Rstein.AsyncCpp",
|
||||
"supports": "windows & !arm",
|
||||
"features": {
|
||||
"lib-cl-win-legacy-await": {
|
||||
"description": "Legacy coroutines (/await switch, std::experimental namespace)."
|
||||
}
|
||||
}
|
||||
}
|
@ -1363,6 +1363,10 @@ rocksdb:x64-uwp=fail
|
||||
rpclib:arm64-windows=fail
|
||||
rpclib:arm-uwp=fail
|
||||
rpclib:x64-uwp=fail
|
||||
rsasynccpp:arm64-windows=fail
|
||||
rsasynccpp:arm-uwp=fail
|
||||
rsasynccpp:x64-linux=fail
|
||||
rsasynccpp:x64-osx=fail
|
||||
rsocket:x64-windows=fail
|
||||
rsocket:x64-windows-static=fail
|
||||
rsocket:x64-windows-static-md=fail
|
||||
|
@ -5192,6 +5192,10 @@
|
||||
"baseline": "2020-09-14",
|
||||
"port-version": 0
|
||||
},
|
||||
"rsasynccpp": {
|
||||
"baseline": "0.0.7",
|
||||
"port-version": 0
|
||||
},
|
||||
"rsocket": {
|
||||
"baseline": "2020.05.04.00-1",
|
||||
"port-version": 0
|
||||
|
9
versions/r-/rsasynccpp.json
Normal file
9
versions/r-/rsasynccpp.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "80995d80f9e7e551f8305ce2cecb0a91bc9c457a",
|
||||
"version": "0.0.7",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user