2017-12-09 16:24:19 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cdcseacave/TinyEXIF
|
2024-09-09 02:50:50 +08:00
|
|
|
REF ccd676f1b91d59da40b4f9c1edda4408fb65e62e #2024-09-03
|
|
|
|
SHA512 3e0017372ca98c9746833c73b27d598b947e169e9b27b55f3d2229da61edc1fa2b3929435c647a618558bed7ff3e124358eb615a565704f96635f2345cfd557a
|
2017-12-09 16:24:19 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)
|
|
|
|
|
2022-02-17 01:55:30 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-12-09 16:24:19 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
|
|
|
|
-DBUILD_DEMO=OFF
|
|
|
|
)
|
|
|
|
|
2022-02-17 01:55:30 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-12-09 16:24:19 +08:00
|
|
|
|
2022-02-17 01:55:30 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/TinyEXIF)
|
2017-12-09 16:24:19 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2022-02-17 01:55:30 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-12-09 16:24:19 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-02-17 01:55:30 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|