Skip to content

Commit

Permalink
[tinyexif] update to master (#23102)
Browse files Browse the repository at this point in the history
* [tinyexif] update to master

* update version
  • Loading branch information
JonLiu1993 authored Feb 16, 2022
1 parent 18e6e88 commit fe63cf7
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 14 deletions.
17 changes: 8 additions & 9 deletions ports/tinyexif/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO cdcseacave/TinyEXIF
REF c57a5fec1a847ec0e7b482b2da72e1f04fc2e147
SHA512 a968e79b4b7a6f5f189328a8dc493da5c0d568526b5dca46b9bfc0cf85295fb348bd0b38828fedbb7b6e4467fc8932d0d7b435b4acbfe662e954cbed1d0ea914
REF 6e56015f56ee0f387f1b8c76e50eb35ac60372da #2022-02-15
SHA512 46f55a163cfed2d8fadd7ac0425b190c59136252e5f60d945f6655d0a6df20ea08f272d25c66e76df4c8c0340f654cef875da12627b8bef88f8f6e875fc1bf48
HEAD_REF master
)

string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC_LIBS)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_STATIC_LIBS=${BUILD_STATIC_LIBS}
-DBUILD_DEMO=OFF
)

vcpkg_install_cmake()
vcpkg_cmake_install()

vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/TinyEXIF)
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/TinyEXIF)

vcpkg_copy_pdbs()

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

# Handle copyright
file(INSTALL ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/tinyexif RENAME copyright)
file(INSTALL "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
13 changes: 10 additions & 3 deletions ports/tinyexif/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
{
"name": "tinyexif",
"version-string": "1.0.2",
"port-version": 7,
"version-date": "2022-02-15",
"description": "tiny ISO-compliant C++ EXIF and XMP parsing library for JPEG images",
"homepage": "https://github.com/cdcseacave/TinyEXIF",
"dependencies": [
"tinyxml2"
"tinyxml2",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 2 additions & 2 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -6873,8 +6873,8 @@
"port-version": 1
},
"tinyexif": {
"baseline": "1.0.2",
"port-version": 7
"baseline": "2022-02-15",
"port-version": 0
},
"tinyexpr": {
"baseline": "2020-09-25",
Expand Down
5 changes: 5 additions & 0 deletions versions/t-/tinyexif.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "50ad94147ea76f0e34a0e2afdcd92d83ad0102b1",
"version-date": "2022-02-15",
"port-version": 0
},
{
"git-tree": "350cf76237d8fc38f67cba9766e25b2f68d50d64",
"version-string": "1.0.2",
Expand Down

0 comments on commit fe63cf7

Please sign in to comment.