summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 4611532..78cb24a 100644
--- a/meson.build
+++ b/meson.build
@@ -23,6 +23,7 @@ gio_dep = dependency('gio-2.0')
adwaita_dep = dependency('libadwaita-1')
gdkpixbuf_dep = dependency('gdk-pixbuf-2.0') # pixbuf loader backend
libexif_dep = dependency('libexif') # EXIF gather (info overlay, M4)
+libjpeg_dep = dependency('libjpeg') # libjpeg-turbo direct JPEG (M6)
# --- Optional backends (feature: auto/disabled/enabled). See meson_options.txt.
gegl_dep = dependency('gegl-0.4', required : get_option('gegl'))
@@ -86,6 +87,11 @@ if heif_dep.found()
ggaze_c_args += '-DHAVE_HEIF'
ggaze_extra_deps += heif_dep
endif
+if libjpeg_dep.found()
+ ggaze_src += files('src/loader/backends/jpeg.c')
+ ggaze_c_args += '-DHAVE_JPEG'
+ ggaze_extra_deps += libjpeg_dep
+endif
ggaze_lib = static_library('ggaze',
ggaze_src,