meson: Allow percetto to be used with meson

You may need to specify --libdir=$installdir/lib when installing percetto,
otherwise it gets installed on $installdir/lib/x86_64-linux-gnu by default and
meson might not look for the appropriate pkgconfig in there.
This commit is contained in:
Mateo de Mayo 2021-09-27 21:34:14 -03:00 committed by Jakob Bornecrantz
parent f9d0bfb80a
commit d61a695f13
3 changed files with 9 additions and 0 deletions

View file

@ -79,6 +79,7 @@ gst_app = dependency('gstreamer-app-1.0', required: false)
gst_video= dependency('gstreamer-video-1.0', required: false)
depthai = dependency('depthai', method: 'cmake', modules : ['depthai::core', 'depthai::opencv', 'XLink'], required: false)
onnxruntime = dependency('libonnxruntime', required: false)
percetto = dependency('percetto', required: false)
gst_found = gst.found() and gst_app.found() and gst_video.found()

View file

@ -16,6 +16,10 @@ if libbsd.found() and not get_option('libbsd').disabled()
aux_util_deps += libbsd
endif
if percetto.found()
aux_util_deps += percetto
endif
lib_aux_util = static_library(
'aux_util',
files(

View file

@ -119,6 +119,10 @@ if build_wayland_direct
have_conf.set('XRT_HAVE_WAYLAND_DIRECT', true)
endif
if percetto.found()
have_conf.set('XRT_HAVE_PERCETTO', true)
endif
xrt_config_have_h = configure_file(
output: 'xrt_config_have.h',
configuration: have_conf,