mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
[asyncplusplus] improve port (#28111)
This commit is contained in:
parent
5b7881e937
commit
a74a99f5de
@ -8,23 +8,14 @@ vcpkg_from_github(
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/cmake/Async++.cmake ${CURRENT_PACKAGES_DIR}/cmake/Async++Targets.cmake)
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH cmake PACKAGE_NAME async++)
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/async++)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
||||
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/async++/Async++Targets.cmake ${CURRENT_PACKAGES_DIR}/share/async++/Async++.cmake)
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/share/async++/Async++Config.cmake _contents)
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/async++/Async++Config.cmake "include(CMakeFindDependencyMacro)\n${_contents}")
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/asyncplusplus)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/asyncplusplus/LICENSE ${CURRENT_PACKAGES_DIR}/share/asyncplusplus/copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
@ -1,7 +1,18 @@
|
||||
{
|
||||
"name": "asyncplusplus",
|
||||
"version-string": "1.1",
|
||||
"port-version": 1,
|
||||
"version": "1.1",
|
||||
"port-version": 2,
|
||||
"description": "Async++ is a lightweight concurrency framework for C++11",
|
||||
"supports": "!uwp"
|
||||
"license": "MIT",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "454f29e635dba103d5d48a5b1e9ba9842fb4864e",
|
||||
"version": "1.1",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "15a66956fc29d87d60f48bfc7aa3ca823554734e",
|
||||
"version-string": "1.1",
|
||||
|
@ -222,7 +222,7 @@
|
||||
},
|
||||
"asyncplusplus": {
|
||||
"baseline": "1.1",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"at-spi2-atk": {
|
||||
"baseline": "2.38.0",
|
||||
|
Loading…
Reference in New Issue
Block a user