diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-25 23:03:16 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-04-25 23:03:16 +0200 |
commit | 141e22f0514d635b5c35bb4e97e9fff413fbde73 (patch) | |
tree | a650066c266a012824235b3bf56d27952d3099d2 /meson.build | |
parent | 79f752f99c93b83adbb7fdcf8c120c66e76ce401 (diff) | |
download | fbida-141e22f0514d635b5c35bb4e97e9fff413fbde73.tar.gz |
meson: add webp
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meson.build b/meson.build index d277a13..6d1f7f7 100644 --- a/meson.build +++ b/meson.build @@ -19,6 +19,7 @@ epoxy_dep = dependency('epoxy') exif_dep = dependency('libexif') png_dep = dependency('libpng') tiff_dep = dependency('libtiff-4') +webp_dep = dependency('libwebp', required : false) # other library deps cc = meson.get_compiler('c') @@ -30,7 +31,13 @@ read_srcs = [ 'readers.c', 'rd/read-ppm.c', 'rd/read-bmp.c', 'rd/read-jpeg.c', 'rd/read-png.c', 'rd/read-tiff.c' ] write_srcs = [ 'writers.c', 'wr/write-ppm.c', 'wr/write-ps.c', 'wr/write-jpeg.c', 'wr/write-png.c', 'wr/write-tiff.c' ] -image_deps = [ jpeg_dep, png_dep, tiff_dep ] +image_deps = [ jpeg_dep, png_dep, tiff_dep, + webp_dep ] + +if webp_dep.found() + read_srcs += 'rd/read-webp.c' + config.set('HAVE_LIBWEBP', true) +endif # jpeg transformation support (FIXME: detect version) trans_srcs = 'jpeg/62/transupp.c' |