gstreamer/ext/jpeg/meson.build
Tim-Philipp Müller 8305cb2995 meson: find libjpeg via pkg-config
This effectively (but optionally) requires libjpeg-turbo which
ships with a .pc file and is what pretty much everyone these days
uses anyway for libjpeg, so shouldn't be a problem hopefully.

https://bugzilla.gnome.org/show_bug.cgi?id=796947
2018-08-18 21:01:52 +01:00

20 lines
536 B
Meson

jpeg_sources = [
'gstjpeg.c',
'gstjpegenc.c',
'gstjpegdec.c',
]
jpeglib = dependency('libjpeg', required : get_option('jpeg'))
if jpeglib.found()
gstjpeg = library('gstjpeg',
jpeg_sources,
c_args : gst_plugins_good_args,
link_args : noseh_link_args,
include_directories : [configinc, libsinc],
dependencies : [gst_dep, gstbase_dep, gstvideo_dep, jpeglib, libm],
install : true,
install_dir : plugins_install_dir,
)
pkgconfig.generate(gstjpeg, install_dir : plugins_pkgconfig_install_dir)
endif