[David-Haim/concurrencpp] Add new port (#19997)

* [David-Haim/concurrencpp] Add new package

* Format vcpkg.json

* Add baseline

* Fix version

* Update CI baseline

* Revert "Update CI baseline"

This reverts commit 8e3ed430f239e50a94a4afaaaee47e0f15998b06.

* Add patch to make linkage configurable

* Update git-tree hash

* Add patch to set -fcoroutines flag

* Update git-tree hash

* Revert "Update git-tree hash"

This reverts commit b3ccdb2c61f705f7802da880fa0659ece5f1a723.

* Revert "Add patch to set -fcoroutines flag"

This reverts commit a23c736df9d2ca407204ea57bf977932c4704e41.

* Revert "Revert "Update CI baseline""

This reverts commit a50ed32a97fb19311cb13807af70cb5a9aa4b793.

* Add supports attribute to manifest, disallow dynamic linkage on Windows

* Update git-tree hash

* Apply suggestions from code review

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* Fix whitespace

* Update git-tree hash

* Add vcpkg-cmake dependencies to vcpkg.json

Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>

* Adapt for version 0.1.3, address suggestions

* Update git-tree hash

Co-authored-by: chausner <chausner@users.noreply.github.com>
Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
This commit is contained in:
chausner 2021-09-10 23:18:06 +02:00 committed by GitHub
parent e33819fe06
commit cda50b3ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 351aa65..ab06584 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,7 +94,7 @@ include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
set(concurrencpp_directory "concurrencpp-${PROJECT_VERSION}")
-set(concurrencpp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}/${concurrencpp_directory}")
+set(concurrencpp_include_directory "${CMAKE_INSTALL_INCLUDEDIR}")
install(TARGETS concurrencpp
EXPORT concurrencppTargets

View File

@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO David-Haim/concurrencpp
REF v.0.1.3
SHA512 2f4530ba93d768a7a1ae14c532c8ef443745e48cceeca8a0e9da9f91633876ae4971caad70eeff9e18c7a45e8cf7c0b7bb79720a62026850244fb2377ad10df7
HEAD_REF master
PATCHES
fix-include-path.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/concurrencpp-0.1.3)
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/concurrencpp RENAME copyright)

View File

@ -0,0 +1,17 @@
{
"name": "concurrencpp",
"version-string": "0.1.3",
"description": "concurrencpp is a tasking library for C++ allowing developers to write highly concurrent applications easily and safely by using tasks, executors and coroutines.",
"homepage": "https://github.com/David-Haim/concurrencpp/",
"supports": "(windows & static) | linux | osx",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -147,6 +147,8 @@ cmcstl2:x86-windows = skip
coin:arm64-windows=fail
coin:arm-uwp=fail
coin:x64-uwp=fail
concurrencpp:x64-linux=fail
concurrencpp:x64-osx=fail
constexpr-contracts:x64-linux=fail
coolprop:arm-uwp=fail
coolprop:x64-osx=fail

View File

@ -1396,6 +1396,10 @@
"baseline": "3.6.4",
"port-version": 0
},
"concurrencpp": {
"baseline": "0.1.3",
"port-version": 0
},
"concurrentqueue": {
"baseline": "1.0.3",
"port-version": 0

View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a6aa7450d44761622be41ef803ef3b92c6388f23",
"version-string": "0.1.3",
"port-version": 0
}
]
}