mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 22:51:37 +08:00
[libcbor] New port (#16884)
* [libcbor] Initial commit * [libcbor] Add metadata * Changes made by vcpkg.exe format-manifest --all * Changes made by vcpkg.exe x-add-version libcbor --overwrite-version
This commit is contained in:
parent
8a8eb71941
commit
d4c34fd271
13
ports/libcbor/LibCborConfig.cmake
Normal file
13
ports/libcbor/LibCborConfig.cmake
Normal file
@ -0,0 +1,13 @@
|
||||
# Distributed under the OSI-approved BSD 3-Clause License.
|
||||
|
||||
find_path(LIBCBOR_INCLUDE_DIR NAMES cbor.h)
|
||||
|
||||
find_library(LIBCBOR_LIBRARY cbor)
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBCBOR DEFAULT_MSG LIBCBOR_LIBRARY LIBCBOR_INCLUDE_DIR)
|
||||
|
||||
if(LIBCBOR_FOUND)
|
||||
set(LIBCBOR_LIBRARIES ${LIBCBOR_LIBRARY})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(LIBCBOR_INCLUDE_DIR LIBCBOR_LIBRARY)
|
29
ports/libcbor/portfile.cmake
Normal file
29
ports/libcbor/portfile.cmake
Normal file
@ -0,0 +1,29 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO PJK/libcbor
|
||||
REF v0.8.0
|
||||
SHA512 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DWITH_TESTS=OFF
|
||||
-DWITH_EXAMPLES=OFF
|
||||
-DVCPKG_VERBOSE=ON
|
||||
)
|
||||
|
||||
vcpkg_build_cmake()
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
# Add Cmake Packagefile
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/LibCborConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
|
||||
# Handle copyright
|
||||
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|
7
ports/libcbor/vcpkg.json
Normal file
7
ports/libcbor/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "libcbor",
|
||||
"version-string": "0.8.0",
|
||||
"description": "libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format",
|
||||
"homepage": "https://github.com/PJK/libcbor",
|
||||
"supports": "(x86 | x64) & windows"
|
||||
}
|
@ -2932,6 +2932,10 @@
|
||||
"baseline": "1.16.1",
|
||||
"port-version": 2
|
||||
},
|
||||
"libcbor": {
|
||||
"baseline": "0.8.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"libcds": {
|
||||
"baseline": "2.3.3",
|
||||
"port-version": 0
|
||||
|
9
versions/l-/libcbor.json
Normal file
9
versions/l-/libcbor.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "ef3f79d600e1f00656e522591c6ff7beed247e3a",
|
||||
"version-string": "0.8.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user