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

View file

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

View file

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