aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2017-04-27 19:06:48 +0200
committerGerd Hoffmann <kraxel@redhat.com>2017-04-27 19:06:48 +0200
commitec7986f24e1755bb06e6c23ad87c7fd130d10aae (patch)
tree0621419e83b2d50cc52188716edb828ee9512e2e /meson.build
parentcf052f54be886ed1b98623147e4c1e6bb56a1d65 (diff)
downloadfbida-ec7986f24e1755bb06e6c23ad87c7fd130d10aae.tar.gz
meson: add jpeg version detection
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 6 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 8e3cc6a..2d6a8d5 100644
--- a/meson.build
+++ b/meson.build
@@ -49,9 +49,11 @@ if webp_dep.found()
config.set('HAVE_LIBWEBP', true)
endif
-# jpeg transformation support (FIXME: detect version)
-trans_srcs = 'jpeg/62/transupp.c'
-trans_inc = include_directories('jpeg/62')
+# jpeg transformation support
+jpeg_run = run_command('scripts/jpeg-version.sh')
+jpeg_ver = jpeg_run.stdout().strip()
+trans_src = ''.join(['jpeg/', jpeg_ver, '/transupp.c'])
+trans_inc = include_directories(''.join(['jpeg/', jpeg_ver]))
# write configuration
configure_file(output : 'config.h', configuration : config)
@@ -68,7 +70,7 @@ fbi_srcs = [ 'fbi.c', 'fb-gui.c', 'desktop.c',
'parseconfig.c', 'fbiconfig.c',
'vt.c', 'kbd.c', 'fbtools.c', 'drmtools.c',
'dither.c', 'filter.c', 'op.c', 'jpegtools.c',
- trans_srcs, read_srcs ]
+ trans_src, read_srcs ]
executable('fbi',
sources : fbi_srcs,