[exiv2] Adding platform restrictions to Dependencies libiconv (#27370)

* [exiv2] Adding platform restrictions to Dependencies libiconv

* Add license
This commit is contained in:
Cheney Wang 2022-10-25 08:04:03 +08:00 committed by GitHub
parent cbb1604614
commit bdb2ab9ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 7 deletions

View File

@ -1,14 +1,18 @@
_find_package(${ARGS})
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
find_package(Iconv REQUIRED)
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
find_package(Iconv REQUIRED)
endif()
if(@EXIV2_ENABLE_NLS@)
find_package(Intl REQUIRED)
endif()
if(TARGET exiv2lib)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
Iconv::Iconv
)
if(NOT @VCPKG_TARGET_IS_WINDOWS@)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES
Iconv::Iconv
)
endif()
if(@EXIV2_ENABLE_NLS@)
set_property(TARGET exiv2lib APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${Intl_LIBRARIES})
endif()

View File

@ -1,12 +1,16 @@
{
"name": "exiv2",
"version": "0.27.5",
"port-version": 1,
"port-version": 2,
"description": "Image metadata library and tools",
"homepage": "https://www.exiv2.org",
"license": "GPL-2.0",
"supports": "!uwp",
"dependencies": [
"libiconv",
{
"name": "libiconv",
"platform": "!windows"
},
{
"name": "vcpkg-cmake",
"host": true

View File

@ -2190,7 +2190,7 @@
},
"exiv2": {
"baseline": "0.27.5",
"port-version": 1
"port-version": 2
},
"expat": {
"baseline": "2.4.9",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "99378f0a1c25d699a1b56f337dbe1a4289dd20fa",
"version": "0.27.5",
"port-version": 2
},
{
"git-tree": "5e7341b739d7b05fbb40492158b01b8fa9fcdb74",
"version": "0.27.5",