diff options
author | Benjamin Otte <otte@redhat.com> | 2021-03-31 19:50:18 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2021-04-07 16:19:32 +0200 |
commit | 790cf31a7c48fc6bfd3729c5a2d868fdb5bec820 (patch) | |
tree | e9461c7c06ce6504666cc93c8975ea033a7ae5a2 /meson.build | |
parent | c4953f0398e1f86b3723171a89c6c468365ef174 (diff) | |
download | gdk-pixbuf-790cf31a7c48fc6bfd3729c5a2d868fdb5bec820.tar.gz |
build: Add a libjpeg fallback wrap
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 93fde6629..df1800df3 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 |