early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/cocoyaxi/fix-event-destruct.patch
vendored
Executable file
13
externals/vcpkg/ports/cocoyaxi/fix-event-destruct.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/co/co.cc b/src/co/co.cc
|
||||
index 8921296..838ac16 100644
|
||||
--- a/src/co/co.cc
|
||||
+++ b/src/co/co.cc
|
||||
@@ -8,7 +8,7 @@ namespace co {
|
||||
class EventImpl {
|
||||
public:
|
||||
EventImpl() : _counter(0), _signaled(false), _has_cond(false) {}
|
||||
- ~EventImpl() { co::xx::cond_destroy(&_cond); }
|
||||
+ ~EventImpl() { if (_has_cond) co::xx::cond_destroy(&_cond); }
|
||||
|
||||
bool wait(uint32 ms);
|
||||
|
||||
10
externals/vcpkg/ports/cocoyaxi/install-dll.patch
vendored
Executable file
10
externals/vcpkg/ports/cocoyaxi/install-dll.patch
vendored
Executable file
@@ -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
|
||||
)
|
||||
32
externals/vcpkg/ports/cocoyaxi/portfile.cmake
vendored
Executable file
32
externals/vcpkg/ports/cocoyaxi/portfile.cmake
vendored
Executable file
@@ -0,0 +1,32 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO idealvin/cocoyaxi
|
||||
REF 3fd22601de4d7a06548ca4d24ac36b4f82cde8c5 #v2.0.3
|
||||
SHA512 15a7fbd934b44ffd981067c18a66bf07423d8ded102d0c15b79c2f451192f17541b9c1a3d4eb913d9f8c7a55e051e4e1968e16a1113fa81038b3ad9534c57874
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
libcurl WITH_LIBCURL
|
||||
openssl WITH_OPENSSL
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DSTATIC_VS_CRT=${STATIC_CRT}
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
34
externals/vcpkg/ports/cocoyaxi/vcpkg.json
vendored
Executable file
34
externals/vcpkg/ports/cocoyaxi/vcpkg.json
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "cocoyaxi",
|
||||
"version-semver": "2.0.3",
|
||||
"port-version": 2,
|
||||
"description": "A go-style coroutine library in C++11 and more",
|
||||
"homepage": "https://github.com/idealvin/cocoyaxi",
|
||||
"supports": "!uwp & !(arm & windows)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"libcurl": {
|
||||
"description": "libcurl with OpenSSL support",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "curl",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"openssl"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"openssl": {
|
||||
"description": "SSL support (OpenSSL)",
|
||||
"dependencies": [
|
||||
"openssl"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user