mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
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
This commit is contained in:
parent
cf34d51318
commit
8305cb2995
2 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ Notes: This dependency is entirely optional, the video4linux plugin
|
||||||
|
|
||||||
Package: JPEG library
|
Package: JPEG library
|
||||||
Plugins: jpeg (jpegenc, jpegdec, smokeenc, smokedec)
|
Plugins: jpeg (jpegenc, jpegdec, smokeenc, smokedec)
|
||||||
DebianPackage: libjpeg-dev
|
DebianPackage: libjpeg62-turbo-dev
|
||||||
URL: http://www.libjpeg-turbo.org/
|
URL: http://www.libjpeg-turbo.org/
|
||||||
or http://www.ijg.org/ for the IJG version
|
or http://www.ijg.org/ for the IJG version
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ jpeg_sources = [
|
||||||
'gstjpegdec.c',
|
'gstjpegdec.c',
|
||||||
]
|
]
|
||||||
|
|
||||||
jpeglib = cc.find_library('jpeg', required : get_option('jpeg'))
|
jpeglib = dependency('libjpeg', required : get_option('jpeg'))
|
||||||
|
|
||||||
if jpeglib.found()
|
if jpeglib.found()
|
||||||
gstjpeg = library('gstjpeg',
|
gstjpeg = library('gstjpeg',
|
||||||
|
|
Loading…
Reference in a new issue