Skip to content

Commit

Permalink
[libcoro] Update to 0.11.1 (microsoft#37425)
Browse files Browse the repository at this point in the history
chausner authored Mar 13, 2024
1 parent 74e71c6 commit 2b6075b
Showing 8 changed files with 16 additions and 76 deletions.
9 changes: 0 additions & 9 deletions ports/libcoro/0001-allow-shared-lib.patch

This file was deleted.

18 changes: 0 additions & 18 deletions ports/libcoro/0002-disable-git-config.patch

This file was deleted.

10 changes: 0 additions & 10 deletions ports/libcoro/0003-fix-pkgconfig-includedir.patch

This file was deleted.

16 changes: 0 additions & 16 deletions ports/libcoro/0004-fix-pkgconfig-on-windows.patch

This file was deleted.

19 changes: 7 additions & 12 deletions ports/libcoro/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
if(VCPKG_TARGET_IS_WINDOWS)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jbaldwin/libcoro
REF "v${VERSION}"
SHA512 88d5954591493ad2942fa68ead65b67fa9ac26bcc260b3156844244968dd8477d62a3559a9d3b7b1175bf813e5f23ca2d288a72baeb3ebd774e756d3c06bfee8
SHA512 fd3eb22a055db9567da482182a90d44c79ee8ccb641490945cb45b07686a32a31b7b37aa35b1f3f676a6ede366db01c9cd7b5f7ded899cb1133cdd1aac510154
HEAD_REF master
PATCHES
0001-allow-shared-lib.patch
0002-disable-git-config.patch
0003-fix-pkgconfig-includedir.patch
0004-fix-pkgconfig-on-windows.patch
)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
networking LIBCORO_FEATURE_NETWORKING
platform LIBCORO_FEATURE_PLATFORM
ssl LIBCORO_FEATURE_SSL
tls LIBCORO_FEATURE_TLS
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED_LIBS)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DLIBCORO_EXTERNAL_DEPENDENCIES=ON
-DLIBCORO_BUILD_TESTS=OFF
-DLIBCORO_BUILD_EXAMPLES=OFF
-DLIBCORO_BUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
)

vcpkg_cmake_install()
@@ -38,3 +31,5 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

vcpkg_fixup_pkgconfig()

vcpkg_copy_pdbs()
13 changes: 3 additions & 10 deletions ports/libcoro/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "libcoro",
"version": "0.10",
"version": "0.11.1",
"description": "C++20 coroutine library",
"homepage": "https://github.com/jbaldwin/libcoro",
"license": "Apache-2.0",
@@ -10,22 +10,15 @@
"host": true
}
],
"default-features": [
"networking",
"ssl"
],
"features": {
"networking": {
"description": "Include networking features.",
"supports": "linux",
"dependencies": [
"c-ares"
]
},
"platform": {
"description": "Include linux platform features.",
"supports": "linux"
},
"ssl": {
"tls": {
"description": "Include SSL features.",
"dependencies": [
{
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
@@ -4221,7 +4221,7 @@
"port-version": 0
},
"libcoro": {
"baseline": "0.10",
"baseline": "0.11.1",
"port-version": 0
},
"libcorrect": {
5 changes: 5 additions & 0 deletions versions/l-/libcoro.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b518fbd7c395e04a3a720c1aba78a3a9a94930e9",
"version": "0.11.1",
"port-version": 0
},
{
"git-tree": "da37665bbdb4cdb391d48037308acb4db271aacf",
"version": "0.10",

0 comments on commit 2b6075b

Please sign in to comment.