2021-03-30 00:25:14 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO PJK/libcbor
|
2023-03-15 02:59:55 +08:00
|
|
|
REF "v${VERSION}"
|
2024-03-08 14:36:36 +08:00
|
|
|
SHA512 c14aaa55c0c82e09b9eb2cc6847951d1bac8a081a247776c507d5450367da5717b1056bad09fb0f0178311de8754e8f89c060e0fc0f400fafdc42de441421e66
|
2021-03-30 00:25:14 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-04-29 07:10:18 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2021-03-30 00:25:14 +08:00
|
|
|
-DWITH_TESTS=OFF
|
|
|
|
-DWITH_EXAMPLES=OFF
|
|
|
|
-DVCPKG_VERBOSE=ON
|
2022-04-29 07:10:18 +08:00
|
|
|
-DSANITIZE=OFF
|
|
|
|
-DCBOR_CUSTOM_ALLOC=ON
|
|
|
|
)
|
2021-03-30 00:25:14 +08:00
|
|
|
|
2022-04-29 07:10:18 +08:00
|
|
|
vcpkg_cmake_build()
|
|
|
|
vcpkg_cmake_install()
|
2024-03-08 14:36:36 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
|
2021-03-30 00:25:14 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
# Add Cmake Packagefile
|
2022-04-29 07:10:18 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/LibCborConfig.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2021-03-30 00:25:14 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-15 02:59:55 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
|