mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 11:25:26 +00:00
meson: add option for tracing; align messages
This commit is contained in:
parent
d61a695f13
commit
1c99e8edb5
13
meson.build
13
meson.build
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue