2017-12-09 16:24:19 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cdcseacave/TinyEXIF
|
2022-02-17 01:55:30 +08:00
|
|
|
REF 6e56015f56ee0f387f1b8c76e50eb35ac60372da #2022-02-15
|
|
|
|
SHA512 46f55a163cfed2d8fadd7ac0425b190c59136252e5f60d945f6655d0a6df20ea08f272d25c66e76df4c8c0340f654cef875da12627b8bef88f8f6e875fc1bf48
|
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)
|