diff options
| author | Alvin <idealvin@qq.com> | 2021-10-06 09:42:39 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-05 18:42:39 -0700 |
| commit | 8678672d5989dbc031a16d07cbf80173d228d90f (patch) | |
| tree | 48c2aed440033b69ac736051fc5c698c26a12791 /ports | |
| parent | c8fe3a53f7500b0cf038fab7dd28fee06e31b251 (diff) | |
| download | vcpkg-8678672d5989dbc031a16d07cbf80173d228d90f.tar.gz vcpkg-8678672d5989dbc031a16d07cbf80173d228d90f.zip | |
update co to v2.0.2 (#20500)
* update co to v2.0.2
* fix gitree in co.json
* add install-dll.patch for co
* update version
* fix CRT linkage
* update version
* minimal patch
* update version
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/co/install-dll.patch | 10 | ||||
| -rw-r--r-- | ports/co/portfile.cmake | 16 | ||||
| -rw-r--r-- | ports/co/vcpkg.json | 2 |
3 files changed, 21 insertions, 7 deletions
diff --git a/ports/co/install-dll.patch b/ports/co/install-dll.patch new file mode 100644 index 000000000..9332f3296 --- /dev/null +++ b/ports/co/install-dll.patch @@ -0,0 +1,10 @@ +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 9e03c9a..499b550 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -112,4 +112,5 @@ install( + TARGETS co + LIBRARY DESTINATION lib # shared lib installed to ${CMAKE_INSTALL_PREFIX}/lib + ARCHIVE DESTINATION lib # static lib installed to ${CMAKE_INSTALL_PREFIX}/lib ++ RUNTIME DESTINATION bin + ) diff --git a/ports/co/portfile.cmake b/ports/co/portfile.cmake index a4b4a08d5..08ed5d4a3 100644 --- a/ports/co/portfile.cmake +++ b/ports/co/portfile.cmake @@ -2,17 +2,18 @@ if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP) vcpkg_fail_port_install(ON_ARCH "arm" ON_TAREGT "uwp")
endif()
-# It's not safe to use dynamic library, as we hooked some system APIs in CO.
-vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO idealvin/co
- REF 82b9f75dcd114c69d2b9c2c5a13ce2c3b95ba99f #v2.0.1
- SHA512 ec33c5b920adf8b5e5500ed7c9768bd595ba2b568b604f26f953ddb5d04e411e8a2ea05b213595a44cafbadf90c1e1661208855301b2b47295ccc6e20f36e8d8
+ REF 25915760f5cbcde1c5af625dd4d19a632ae43f12 #v2.0.2
+ SHA512 892d70923409306ab548cf4568f15ffd13949047a5a7810c68d60c1afd184eafd2076f62eb6249ae64b38c409255cb873fa28740ceab37b908b70174ddf6d077
HEAD_REF master
+ PATCHES
+ install-dll.patch
)
+string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
+
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
libcurl WITH_LIBCURL
@@ -21,7 +22,10 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
- OPTIONS ${FEATURE_OPTIONS}
+ OPTIONS
+ ${FEATURE_OPTIONS}
+ -DSTATIC_VS_CRT=${STATIC_CRT}
+ DISABLE_PARALLEL_CONFIGURE
)
vcpkg_cmake_install()
diff --git a/ports/co/vcpkg.json b/ports/co/vcpkg.json index 70adff172..1fcc2b0dc 100644 --- a/ports/co/vcpkg.json +++ b/ports/co/vcpkg.json @@ -1,6 +1,6 @@ { "name": "co", - "version-semver": "2.0.1", + "version-semver": "2.0.2", "description": "A go-style coroutine library in C++11 and more", "homepage": "https://github.com/idealvin/co", "supports": "!uwp & !(arm & windows)", |
