meson: Re-arrange config header code

This commit is contained in:
Ryan Pavlik 2020-07-17 13:49:34 -05:00
parent 19efff937e
commit 4a22851e4a

View file

@ -27,6 +27,16 @@ xrt_config_drivers = declare_dependency(
#
have_conf = configuration_data()
if build_egl
have_conf.set('XRT_HAVE_EGL', true)
endif
if avcodec.found()
have_conf.set('XRT_HAVE_FFMPEG', true)
endif
if libjpeg.found()
have_conf.set('XRT_HAVE_JPEG', true)
endif
if udev.found()
have_conf.set('XRT_HAVE_LIBUDEV', true)
endif
@ -35,20 +45,12 @@ if libusb.found()
have_conf.set('XRT_HAVE_LIBUSB', true)
endif
if opencv.found()
have_conf.set('XRT_HAVE_OPENCV', true)
endif
if libjpeg.found()
have_conf.set('XRT_HAVE_JPEG', true)
endif
if libuvc.found()
have_conf.set('XRT_HAVE_LIBUVC', true)
endif
if avcodec.found()
have_conf.set('XRT_HAVE_FFMPEG', true)
if opencv.found()
have_conf.set('XRT_HAVE_OPENCV', true)
endif
if sdl2.found()