mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 13:28:01 +08:00
[asiochan] add new port (#36289)
* add port asiochan * simplify deploy * simplify deploy Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * update git-tree * simplify deploy Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com> * update git-tree * change version to version-date * update git-tree --------- Co-authored-by: Cheney Wang <38240633+Cheney-W@users.noreply.github.com>
This commit is contained in:
parent
34e163f0ce
commit
710677da49
12
ports/asiochan/portfile.cmake
Normal file
12
ports/asiochan/portfile.cmake
Normal file
@ -0,0 +1,12 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO MiSo1289/asiochan
|
||||
REF 837d7eb78ca9796af800ca3cd91ce0a8fe297785
|
||||
SHA512 58e1e3291dc980ed59b0bc1fdcaa35db007e0044f4cbd352917caefa2d30b0c76a3db180091c1895867a3d026ce69f3a82b33dde3970cba5bef596620a2b20f8
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY "${SOURCE_PATH}/include" DESTINATION "${CURRENT_PACKAGES_DIR}")
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
12
ports/asiochan/usage
Normal file
12
ports/asiochan/usage
Normal file
@ -0,0 +1,12 @@
|
||||
asiochan is header-only and can be used from CMake via:
|
||||
|
||||
find_path(ASIOCHAN_INCLUDE_DIRS "asiochan/asiochan.hpp")
|
||||
target_include_directories(main PRIVATE ${ASIOCHAN_INCLUDE_DIRS})
|
||||
|
||||
By default asiochan depend on boost/asio. If you need use standalone asio instead, please define micro ASIOCHAN_USE_STANDALONE_ASIO.
|
||||
For example:
|
||||
|
||||
find_path(ASIOCHAN_INCLUDE_DIRS "asiochan/asiochan.hpp")
|
||||
target_compile_definitions(main PRIVATE ASIOCHAN_USE_STANDALONE_ASIO)
|
||||
target_include_directories(main PRIVATE ${ASIOCHAN_INCLUDE_DIRS})
|
||||
|
7
ports/asiochan/vcpkg.json
Normal file
7
ports/asiochan/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "asiochan",
|
||||
"version-date": "2022-11-25",
|
||||
"description": "C++20 coroutine channels for ASIO",
|
||||
"homepage": "https://github.com/MiSo1289/asiochan",
|
||||
"license": "MIT"
|
||||
}
|
9
versions/a-/asiochan.json
Normal file
9
versions/a-/asiochan.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "857feb5fd868cdae02e6bb9d6252174a9a39cb61",
|
||||
"version-date": "2022-11-25",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
@ -260,6 +260,10 @@
|
||||
"baseline": "2.9.2",
|
||||
"port-version": 0
|
||||
},
|
||||
"asiochan": {
|
||||
"baseline": "2022-11-25",
|
||||
"port-version": 0
|
||||
},
|
||||
"asiosdk": {
|
||||
"baseline": "2.3.3",
|
||||
"port-version": 7
|
||||
|
Loading…
x
Reference in New Issue
Block a user