early-access version 2853
This commit is contained in:
25
externals/vcpkg/ports/uvw/CMakeLists.txt
vendored
Executable file
25
externals/vcpkg/ports/uvw/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,25 @@
|
||||
cmake_minimum_required(VERSION 3.8)
|
||||
project(uvw)
|
||||
|
||||
find_package(unofficial-libuv CONFIG REQUIRED)
|
||||
|
||||
add_library(uvw INTERFACE)
|
||||
target_link_libraries(uvw INTERFACE unofficial::libuv::libuv)
|
||||
|
||||
install(TARGETS uvw
|
||||
EXPORT uvw
|
||||
INCLUDES DESTINATION include/)
|
||||
|
||||
install(EXPORT uvw
|
||||
DESTINATION "share/uvw"
|
||||
FILE uvw-targets.cmake
|
||||
NAMESPACE uvw::)
|
||||
|
||||
install(DIRECTORY
|
||||
src/uvw/
|
||||
DESTINATION include/uvw/)
|
||||
|
||||
install(FILES
|
||||
src/uvw.hpp
|
||||
DESTINATION include/
|
||||
)
|
||||
22
externals/vcpkg/ports/uvw/portfile.cmake
vendored
Executable file
22
externals/vcpkg/ports/uvw/portfile.cmake
vendored
Executable file
@@ -0,0 +1,22 @@
|
||||
#header-only library
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO skypjack/uvw
|
||||
REF 3db9e8f75a4351325e1ea00e17586af2b00cf1ea # v2.12.1_libuv_v1.44
|
||||
SHA512 35e799fe877abc26ae44d20c9b5b292497d1468d9f89c0fc19b96a0b0712e35084480100e2fe7324353e2c3805c2f018e89192357d974bfd009af9b58bfcb7ec
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_cmake_config_fixup()
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/uvw-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/uvw/")
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
||||
|
||||
# Handle copyright/readme/package files
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
2
externals/vcpkg/ports/uvw/uvw-config.cmake
vendored
Executable file
2
externals/vcpkg/ports/uvw/uvw-config.cmake
vendored
Executable file
@@ -0,0 +1,2 @@
|
||||
find_package(unofficial-libuv CONFIG REQUIRED)
|
||||
include ("${CMAKE_CURRENT_LIST_DIR}/uvw-targets.cmake")
|
||||
18
externals/vcpkg/ports/uvw/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/uvw/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "uvw",
|
||||
"version": "2.12.1",
|
||||
"description": "Header-only, event based, tiny and easy to use libuv wrapper in modern C++.",
|
||||
"homepage": "https://github.com/skypjack/uvw",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
"libuv",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user