early-access version 2853
This commit is contained in:
9
externals/vcpkg/ports/tinycbor/CMakeLists.txt
vendored
Executable file
9
externals/vcpkg/ports/tinycbor/CMakeLists.txt
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
project(tinycbor C)
|
||||
|
||||
file(GLOB sources src/cbor*.c)
|
||||
list(FILTER sources EXCLUDE REGEX "cbortojson.c$")
|
||||
add_library(tinycbor ${sources})
|
||||
|
||||
install(TARGETS tinycbor)
|
||||
install(FILES src/cbor.h src/cborjson.h src/tinycbor-version.h DESTINATION include/tinycbor)
|
||||
20
externals/vcpkg/ports/tinycbor/portfile.cmake
vendored
Executable file
20
externals/vcpkg/ports/tinycbor/portfile.cmake
vendored
Executable file
@@ -0,0 +1,20 @@
|
||||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO intel/tinycbor
|
||||
REF v0.6.0
|
||||
SHA512 af1ed05c03d3aed56e35fdcaad3235992f96b5043b594c0246e600e4b1f085df78c5345beaac8758c2b5db2952ab83997019de5940857eecb81d84b6fb642093
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
# Remove duplicated include headers
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
14
externals/vcpkg/ports/tinycbor/vcpkg.json
vendored
Executable file
14
externals/vcpkg/ports/tinycbor/vcpkg.json
vendored
Executable file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "tinycbor",
|
||||
"version-semver": "0.6.0",
|
||||
"port-version": 1,
|
||||
"description": "Concise Binary Object Representation (CBOR) Library",
|
||||
"homepage": "https://github.com/intel/tinycbor",
|
||||
"license": "MIT",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user