[async-simple] Add new port async-simple (#36470)

* [async-simple] Add new port async-simple to vcpkg

* version database

* fix conversation

* update version database
This commit is contained in:
saipubw 2024-02-02 04:24:35 +08:00 committed by GitHub
parent b550b0be30
commit 7fad8ea427
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,31 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alibaba/async_simple
REF "v${VERSION}"
SHA512 7686d8c98e5e87cf88c24488e4c0b528b29011ef48c25156c57695208dab75ee2f28b6f36e2612db2bf4644b50f4c1d4a7ebc54f16bc035cb106239d5b335c77
HEAD_REF main
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DASYNC_SIMPLE_ENABLE_TESTS=OFF
-DASYNC_SIMPLE_BUILD_DEMO_EXAMPLE=OFF
-DASYNC_SIMPLE_ENABLE_ASAN=OFF
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "async_simple")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(GLOB LIBS "${CURRENT_PACKAGES_DIR}/debug/lib/*async_simple*")
list(LENGTH LIBS LIB_CNT)
if (LIB_CNT EQUAL 0)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
endif()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)

8
ports/async-simple/usage Normal file
View File

@ -0,0 +1,8 @@
async-simple provides CMake targets:
find_package(async_simple CONFIG REQUIRED)
target_link_libraries(main PRIVATE async_simple::async_simple_static)
# Or you can use header-only version(async_simple::uthread is not allowed to use in this version)
target_link_libraries(main PRIVATE async_simple::async_simple_header_only)
# Or you can also use dynamic linkage:
target_link_libraries(main PRIVATE async_simple::async_simple)

View File

@ -0,0 +1,17 @@
{
"name": "async-simple",
"version": "1.3",
"description": "Simple, light-weight and easy-to-use asynchronous components.",
"homepage": "https://github.com/alibaba/async_simple",
"license": "Apache-2.0",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "f2ba1d445f31f11bc0311be0de36f56fc40531da",
"version": "1.3",
"port-version": 0
}
]
}

View File

@ -280,6 +280,10 @@
"baseline": "4.0.0",
"port-version": 0
},
"async-simple": {
"baseline": "1.3",
"port-version": 0
},
"asynch": {
"baseline": "2019-09-21",
"port-version": 3