meson: add option for tracing; align messages

This commit is contained in:
Moses Turner 2021-09-27 22:47:06 -05:00 committed by Jakob Bornecrantz
parent d61a695f13
commit 1c99e8edb5
3 changed files with 37 additions and 24 deletions

View file

@ -37,6 +37,7 @@ add_project_arguments(cpp.get_supported_arguments([
#
build_tracking = false
build_tracing = false
v4l2_required = false
hidapi_required = false
@ -104,6 +105,12 @@ if get_option('tracking').enabled() or get_option('tracking').auto()
build_tracking = opencv.found()
endif
if get_option('tracing')
build_tracing = percetto.found()
endif
# TODO: make these behave well when not present
x11 = dependency('x11', required: get_option('xlib'))
x11_xcb = dependency('x11-xcb', required: get_option('xlib'))
@ -309,6 +316,12 @@ else
message(' tracking: no')
endif
if build_tracing
message(' tracing: yes')
else
message(' tracing: no')
endif
if get_option('steamvr_plugin')
message('steamvr plugin: yes')
else

View file

@ -16,7 +16,7 @@ if libbsd.found() and not get_option('libbsd').disabled()
aux_util_deps += libbsd
endif
if percetto.found()
if build_tracing
aux_util_deps += percetto
endif

View file

@ -119,7 +119,7 @@ if build_wayland_direct
have_conf.set('XRT_HAVE_WAYLAND_DIRECT', true)
endif
if percetto.found()
if build_tracing
have_conf.set('XRT_HAVE_PERCETTO', true)
endif