meson: unbreak when libjpeg isn't found
ld: error: undefined symbol: jpeg_destroy_compress >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(tjDestroy) ld: error: undefined symbol: jpeg_destroy_decompress >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(tjDestroy) ld: error: undefined symbol: jpeg_std_error >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(_tjInitCompress) >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(_tjInitDecompress) ld: error: undefined symbol: jpeg_CreateCompress >>> referenced by turbojpeg.c >>> wlvncc.p/src_turbojpeg.c.o:(_tjInitCompress) [...]pull/15/head
parent
81c9d8452c
commit
ca6036f4cf
|
@ -80,7 +80,6 @@ sources = [
|
|||
'src/rfbproto.c',
|
||||
'src/sockets.c',
|
||||
'src/vncviewer.c',
|
||||
'src/turbojpeg.c',
|
||||
]
|
||||
|
||||
dependencies = [
|
||||
|
@ -133,6 +132,7 @@ if sasl.found()
|
|||
endif
|
||||
|
||||
if libjpeg.found()
|
||||
sources += 'src/turbojpeg.c'
|
||||
dependencies += libjpeg
|
||||
config.set('LIBVNCSERVER_HAVE_LIBJPEG', true)
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue