mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 12:53:02 +08:00
[ graphicsmagick ] Add Webp support feature (#22061)
* [graphicsmagick] add support to WebP format * [graphicsmagick] port version update
This commit is contained in:
parent
2dc795b4e5
commit
fc5cf19727
@ -40,6 +40,7 @@ string(REPLACE "#undef HasTTF" "#define HasTTF" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HAVE_FT2BUILD_H" "#define HAVE_FT2BUILD_H" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasZLIB" "#define HasZLIB" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasJBIG" "#define HasJBIG" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef HasWEBP" "#define HasWEBP" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef QuantumDepth" "#define QuantumDepth 16" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef restrict" "#define restrict" CONFIG_H "${CONFIG_H}")
|
||||
string(REPLACE "#undef size_t" "/* #undef size_t */" CONFIG_H "${CONFIG_H}")
|
||||
@ -82,14 +83,14 @@ add_library(graphicsmagick coders/art.c coders/avs.c
|
||||
coders/tiff.c coders/tile.c coders/tim.c coders/topol.c
|
||||
coders/ttf.c coders/txt.c coders/uil.c coders/url.c
|
||||
coders/uyvy.c coders/vicar.c coders/vid.c coders/viff.c
|
||||
coders/wbmp.c coders/wmf.c coders/wpg.c
|
||||
coders/wbmp.c coders/webp.c coders/wmf.c coders/wpg.c
|
||||
coders/x.c coders/xbm.c coders/xc.c coders/xcf.c
|
||||
coders/xpm.c coders/xtrn.c coders/xwd.c coders/yuv.c
|
||||
filters/analyze.c
|
||||
magick/analyze.c magick/animate.c magick/annotate.c magick/attribute.c
|
||||
magick/average.c magick/bit_stream.c magick/blob.c magick/cdl.c
|
||||
magick/channel.c magick/color.c magick/colormap.c magick/colorspace.c
|
||||
magick/color_lookup.c magick/command.c magick/compare.c magick/composite.c
|
||||
magick/channel.c magick/color.c magick/color_lookup.c magick/colormap.c
|
||||
magick/colorspace.c magick/command.c magick/compare.c magick/composite.c
|
||||
magick/compress.c magick/confirm_access.c magick/constitute.c magick/decorate.c
|
||||
magick/delegate.c magick/deprecate.c magick/describe.c magick/display.c magick/draw.c
|
||||
magick/effect.c magick/enhance.c magick/enum_strings.c magick/error.c magick/export.c
|
||||
@ -122,6 +123,7 @@ TARGET_LINK_LIBRARIES(graphicsmagick PRIVATE
|
||||
PNG::PNG
|
||||
TIFF::TIFF
|
||||
Freetype::Freetype
|
||||
WebP::webp WebP::webpdemux WebP::libwebpmux WebP::webpdecoder
|
||||
)
|
||||
target_include_directories(graphicsmagick INTERFACE $<INSTALL_INTERFACE:include>)
|
||||
|
||||
@ -143,6 +145,7 @@ find_package(JPEG REQUIRED)
|
||||
find_package(PNG REQUIRED)
|
||||
find_package(TIFF REQUIRED)
|
||||
find_package(Freetype REQUIRED)
|
||||
find_package(WebP CONFIG REQUIRED)
|
||||
|
||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/unofficial-graphicsmagick-config.cmake "
|
||||
include(CMakeFindDependencyMacro)
|
||||
@ -152,6 +155,7 @@ find_dependency(JPEG)
|
||||
find_dependency(PNG)
|
||||
find_dependency(TIFF)
|
||||
find_dependency(Freetype)
|
||||
find_dependency(WebP)
|
||||
|
||||
include(\${CMAKE_CURRENT_LIST_DIR}/unofficial-graphicsmagick-targets.cmake)
|
||||
")
|
||||
@ -248,7 +252,7 @@ if (INSTALL_HEADERS)
|
||||
install(FILES magick/version.h DESTINATION include/magick)
|
||||
install(FILES magick/widget.h DESTINATION include/magick)
|
||||
install(FILES magick/xwindow.h DESTINATION include/magick)
|
||||
|
||||
|
||||
install(FILES Magick++/lib/Magick++.h DESTINATION include)
|
||||
|
||||
install(FILES Magick++/lib/Magick++/Blob.h DESTINATION include/Magick++)
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "graphicsmagick",
|
||||
"version": "1.3.37",
|
||||
"port-version": 1,
|
||||
"description": "Image processing library",
|
||||
"homepage": "https://sourceforge.net/projects/graphicsmagick/",
|
||||
"dependencies": [
|
||||
@ -8,6 +9,7 @@
|
||||
"freetype",
|
||||
"libjpeg-turbo",
|
||||
"libpng",
|
||||
"libwebp",
|
||||
"tiff",
|
||||
"zlib"
|
||||
]
|
||||
|
@ -2558,7 +2558,7 @@
|
||||
},
|
||||
"graphicsmagick": {
|
||||
"baseline": "1.3.37",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"graphite2": {
|
||||
"baseline": "1.3.14",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "c6ed21bf630e77483e7df659e7fd65eeefc6b543",
|
||||
"version": "1.3.37",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "4b45ceaa24dce170b8bf9ae142f628162a32e448",
|
||||
"version": "1.3.37",
|
||||
|
Loading…
Reference in New Issue
Block a user