Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions ports/libcbor/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO PJK/libcbor
REF v0.8.0
SHA512 694d2d3a78d80072f96e0afb73590ca1f3572e41d2117330ef4313ed06271743b048d3ba3259c6ffe9a802d5e441379d0e54787d1d42fed08dc81ac4f06c6dbc
REF v0.9.0
SHA512 710239f69d770212a82e933e59df1aba0fb3ec516ef6666a366f30a950565a52981b0d46ca7e0eea739f5785d79cc21fc19acd857a4a0b135f4f6aa3ef5fd3b0
HEAD_REF master
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DWITH_TESTS=OFF
-DWITH_EXAMPLES=OFF
-DVCPKG_VERBOSE=ON
)
-DSANITIZE=OFF
-DCBOR_CUSTOM_ALLOC=ON
)

vcpkg_build_cmake()
vcpkg_install_cmake()
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})
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)
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
12 changes: 9 additions & 3 deletions ports/libcbor/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{
"name": "libcbor",
"version": "0.8.0",
"port-version": 1,
"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"
"homepage": "https://github.com/PJK/libcbor",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
]
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -3437,8 +3437,8 @@
"port-version": 2
},
"libcbor": {
"baseline": "0.8.0",
"port-version": 1
"baseline": "0.9.0",
"port-version": 0
},
"libcds": {
"baseline": "2.3.3",
Expand Down
5 changes: 5 additions & 0 deletions versions/l-/libcbor.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5e881ce93b52a9b16f4c03e4bed79c661def7631",
"version": "0.9.0",
"port-version": 0
},
{
"git-tree": "02d970a2dac8b0abb941a5b445f7e14afc9c1e49",
"version": "0.8.0",
Expand Down