Signal-iOS/ThirdParty/libwebp.podspec.json
Evan Hahn e3fa7848e5 Upgrade libwebp to v1.2.3
This upgrades `libwebp` (a subdependency of `YYImage`) from v1.0.2 to its
latest version, v1.2.3.

As of this writing, the [libwebp pod does not have v1.2.3][0], so I
modified [the v1.2.1 podspec][1] and vendored it into the project. You
may wish to [compare the v1.2.1 podspec with my version][2]. In the long
term, I will try to get this change submitted upstream.

I tested this with a variety of stickers (usually sent as WebP), [WebP's
alpha test images][2], and [a test WebP image from the Desktop app][3].

[0]: 11f1b72927/Specs/1/9/2/libwebp
[1]: b04c376a0d/Specs/1/9/2/libwebp/1.2.1/libwebp.podspec.json
[2]: https://gist.github.com/EvanHahn-Signal/c87c301d2d7359df961bb85dd531a91c
[3]: https://developers.google.com/speed/webp/gallery2#webp_links
[4]: 412f07d2a2/fixtures/512x515-thumbs-up-lincoln.webp
2022-08-01 15:55:52 -05:00

84 lines
1.8 KiB
JSON

{
"name": "libwebp",
"version": "1.2.3",
"summary": "Library to encode and decode images in WebP format.",
"homepage": "https://developers.google.com/speed/webp/",
"authors": "Google Inc.",
"license": {
"type": "BSD",
"file": "COPYING"
},
"source": {
"git": "https://github.com/webmproject/libwebp.git",
"tag": "v1.2.3"
},
"compiler_flags": "-D_THREAD_SAFE",
"requires_arc": false,
"platforms": {
"osx": "10.10",
"ios": "9.0",
"tvos": "9.0",
"watchos": "2.0"
},
"pod_target_xcconfig": {
"USER_HEADER_SEARCH_PATHS": "$(inherited) ${PODS_ROOT}/libwebp/ ${PODS_TARGET_SRCROOT}/"
},
"preserve_paths": "src",
"default_subspecs": [
"webp",
"demux",
"mux"
],
"prepare_command": "sed -i.bak 's/<inttypes.h>/<stdint.h>/g' './src/webp/types.h'",
"subspecs": [
{
"name": "webp",
"source_files": [
"src/webp/decode.h",
"src/webp/encode.h",
"src/webp/types.h",
"src/webp/mux_types.h",
"src/webp/format_constants.h",
"src/utils/*.{h,c}",
"src/dsp/*.{h,c}",
"src/dec/*.{h,c}",
"src/enc/*.{h,c}",
"sharpyuv/*.{h,c}"
],
"public_header_files": [
"src/webp/decode.h",
"src/webp/encode.h",
"src/webp/types.h",
"src/webp/mux_types.h",
"src/webp/format_constants.h"
]
},
{
"name": "demux",
"dependencies": {
"libwebp/webp": [
]
},
"source_files": [
"src/demux/*.{h,c}",
"src/webp/demux.h"
],
"public_header_files": "src/webp/demux.h"
},
{
"name": "mux",
"dependencies": {
"libwebp/demux": [
]
},
"source_files": [
"src/mux/*.{h,c}",
"src/webp/mux.h"
],
"public_header_files": "src/webp/mux.h"
}
]
}