2017-10-01 06:43:10 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Exiv2/exiv2
|
2018-04-12 19:03:17 +08:00
|
|
|
REF c80b1b9d51689692bc865f1a1d16bf7fd2a532c4
|
|
|
|
SHA512 72c3801678424cd738423ea28e03c44f4d2bfd6a7e3c2cea53806b3705eebc5e86a293d3aa2bea51f6f426b9e280a3f7b8883bb4e4c627cc413159d9565033a0
|
2017-10-01 06:43:10 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2018-02-24 15:36:52 +08:00
|
|
|
vcpkg_apply_patches(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
PATCHES "${CMAKE_CURRENT_LIST_DIR}/use-iconv.patch"
|
|
|
|
)
|
|
|
|
|
2018-02-24 15:55:32 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
2017-10-01 06:43:10 +08:00
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2017-12-12 14:14:57 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "share/exiv2/cmake")
|
|
|
|
|
2017-10-01 06:43:10 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
# Clean
|
2018-03-12 14:41:51 +08:00
|
|
|
file(GLOB EXE ${CURRENT_PACKAGES_DIR}/bin/*.exe ${CURRENT_PACKAGES_DIR}/debug/bin/*.exe)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${EXE} ${DEBUG_EXE})
|
2017-10-01 06:43:10 +08:00
|
|
|
|
2018-02-24 14:32:02 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
2017-10-01 06:43:10 +08:00
|
|
|
# Handle copyright
|
|
|
|
file(COPY ${SOURCE_PATH}/ABOUT-NLS DESTINATION ${CURRENT_PACKAGES_DIR}/share/exiv2)
|
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/exiv2/ABOUT-NLS ${CURRENT_PACKAGES_DIR}/share/exiv2/copyright)
|