2020-05-01 08:21:19 +08:00
|
|
|
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
|
|
|
|
|
2023-02-13 23:40:51 +08:00
|
|
|
set(LIB_VERSION 20221124)
|
2020-05-01 08:21:19 +08:00
|
|
|
set(LIB_FILENAME libqcow-alpha-${LIB_VERSION}.tar.gz)
|
|
|
|
|
|
|
|
# Release distribution file contains configured sources, while the source code in the repository does not.
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://github.com/libyal/libqcow/releases/download/${LIB_VERSION}/${LIB_FILENAME}"
|
|
|
|
FILENAME "${LIB_FILENAME}"
|
2023-02-13 23:40:51 +08:00
|
|
|
SHA512 5e48491ec8951473b8791fd6058d35b2d3c00b0206d4ca4fc69b6d42c26ba0a775efe41974989a3965a6a17f4361dd01f874aadef08fe5d80be75d9e6aea6450
|
2020-05-01 08:21:19 +08:00
|
|
|
)
|
|
|
|
|
2023-02-13 23:40:51 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2020-05-01 08:21:19 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2023-02-13 23:40:51 +08:00
|
|
|
SOURCE_BASE ${LIB_VERSION}
|
2020-05-01 08:21:19 +08:00
|
|
|
PATCHES macos_fixes.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/Config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
|
|
|
|
2023-02-13 23:40:51 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-05-01 08:21:19 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
)
|
2023-02-13 23:40:51 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-05-01 08:21:19 +08:00
|
|
|
|
2023-02-13 23:40:51 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/libqcow")
|
2020-05-01 08:21:19 +08:00
|
|
|
|
2020-05-08 14:35:09 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2020-05-01 08:21:19 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
|
|
|
|
# License and man
|
2023-02-13 23:40:51 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|