diff options
author | Benjamin Otte <otte@redhat.com> | 2021-03-31 19:50:18 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-03-31 20:22:04 +0200 |
commit | 4f6254460d50f5c790b4e9d1b4e507bf20455444 (patch) | |
tree | 3adc7392ca890cc27e92e58b0530a13ffadab0fd /meson.build | |
parent | f3e8a95849884aaf86e3313e97db332a31e94cb0 (diff) | |
download | gdk-pixbuf-4f6254460d50f5c790b4e9d1b4e507bf20455444.tar.gz |
build: Add a libjpeg fallback wrapotte/jpeg-fallback
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 7880577dc..27b2ea84e 100644 --- a/meson.build +++ b/meson.build @@ -315,6 +315,11 @@ if get_option('jpeg') and not native_windows_loaders # so look for it as well when jpeg.lib cannot be found jpeg_dep = cc.find_library('libjpeg', required: false) endif + + if not jpeg_dep.found() + jpeg_dep = dependency('libjpeg', required: false, fallback: 'libjpeg') + endif + if jpeg_dep.found() and cc.has_function('jpeg_destroy_decompress', dependencies: jpeg_dep) enabled_loaders += 'jpeg' loaders_deps += jpeg_dep |