2017-06-19 00:52:32 +08:00
|
|
|
include(vcpkg_common_functions)
|
2018-01-24 00:23:45 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nih-at/libzip
|
2018-04-12 19:03:17 +08:00
|
|
|
REF rel-1-5-1
|
|
|
|
SHA512 778f438f6354f030656baa5497b3154ad8fb764011d2a6925136f32e06dc0dcd1ed93fe05dbf7be619004a68cdabe5e34a83b988c1501ed67e9cfa4fa540350f
|
2018-08-08 19:15:13 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES cmake_dont_build_more_than_needed.patch
|
2017-06-19 00:52:32 +08:00
|
|
|
)
|
|
|
|
|
2018-01-24 00:23:45 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
2017-06-19 00:52:32 +08:00
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-08-08 19:15:13 +08:00
|
|
|
# Remove include directories from lib
|
2017-06-19 00:52:32 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib/libzip ${CURRENT_PACKAGES_DIR}/debug/lib/libzip)
|
|
|
|
|
|
|
|
# Remove debug include
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Copy copright information
|
2018-08-08 19:15:13 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libzip RENAME copyright)
|
2017-06-19 00:52:32 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|