build: use pkg-config to find libjpeg in meson

Signed-off-by: Greg V <greg@unrelenting.technology>
dev
Greg V 6 years ago committed by Pekka Paalanen
parent f0ba93c194
commit 3eaa57a73d
  1. 6
      shared/meson.build

@ -43,7 +43,11 @@ if dep_pango.found() and dep_pangocairo.found() and dep_glib.found()
endif
if get_option('image-jpeg')
deps_cairo_shared += cc.find_library('jpeg')
dep_libjpeg = dependency('libjpeg', required: false)
if not dep_libjpeg.found()
dep_libjpeg = cc.find_library('jpeg')
endif
deps_cairo_shared += dep_libjpeg
config_h.set('HAVE_JPEG', '1')
endif

Loading…
Cancel
Save