build/meson: Allow disabling tracking

The tracking code uses ifdefs with XRT_HAVE_OPENCV.
This commit is contained in:
Christoph Haag 2021-03-24 18:04:32 +01:00
parent dad5c6d5d8
commit aab94e7add
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ option('gui',
option('tracking',
type: 'feature',
value: 'auto',
description: 'Enable tracking support')
description: 'Enable camera tracking support (disabling this will disable OpenCV support)')
option('install-active-runtime',
type: 'boolean',

View file

@ -48,7 +48,7 @@ if libuvc.found()
have_conf.set('XRT_HAVE_LIBUVC', true)
endif
if opencv.found()
if opencv.found() and build_tracking
have_conf.set('XRT_HAVE_OPENCV', true)
endif