2021-02-25 08:38:53 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO renestein/Rstein.AsyncCpp
|
|
|
|
REF 0.0.7
|
2023-05-10 05:56:22 +08:00
|
|
|
SHA512 b4cc1c68b6fc7bb8b418457ba18b834769abec07e44305955214f8918cc57f85c4258a0521ea55388fab3ec9724488e506d2b114c765b804991c38bf33133c55
|
2021-02-25 08:38:53 +08:00
|
|
|
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()
|
|
|
|
|
|
|
|
vcpkg_install_msbuild(
|
2023-05-10 05:56:22 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-02-25 08:38:53 +08:00
|
|
|
PROJECT_SUBPATH RStein.AsyncCppLib.sln
|
2022-01-26 02:31:15 +08:00
|
|
|
LICENSE_SUBPATH LICENSE
|
2023-05-10 05:56:22 +08:00
|
|
|
PLATFORM "${TRIPLET_SYSTEM_ARCH}"
|
|
|
|
DEBUG_CONFIGURATION "${DEBUG_CONFIGURATION}"
|
|
|
|
RELEASE_CONFIGURATION "${RELEASE_CONFIGURATION}"
|
2021-02-25 08:38:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY "${SOURCE_PATH}/RStein.AsyncCpp/"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/include/asynccpp"
|
2022-01-26 02:31:15 +08:00
|
|
|
FILES_MATCHING PATTERN "*.h")
|