From 141e22f0514d635b5c35bb4e97e9fff413fbde73 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 25 Apr 2017 23:03:16 +0200 Subject: meson: add webp --- meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'meson.build') 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' -- cgit