early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View 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)

30
externals/vcpkg/ports/libcbor/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,30 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO PJK/libcbor
REF v0.9.0
SHA512 710239f69d770212a82e933e59df1aba0fb3ec516ef6666a366f30a950565a52981b0d46ca7e0eea739f5785d79cc21fc19acd857a4a0b135f4f6aa3ef5fd3b0
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DWITH_TESTS=OFF
-DWITH_EXAMPLES=OFF
-DVCPKG_VERBOSE=ON
-DSANITIZE=OFF
-DCBOR_CUSTOM_ALLOC=ON
)
vcpkg_cmake_build()
vcpkg_cmake_install()
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
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

13
externals/vcpkg/ports/libcbor/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,13 @@
{
"name": "libcbor",
"version": "0.9.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",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}