meson: Add GStreamer recording support

This commit is contained in:
Jan Schmidt 2021-11-19 03:24:55 +11:00
parent 70263a6b16
commit 760e8dd3ad
4 changed files with 45 additions and 0 deletions
meson.build
src/xrt
auxiliary
include/xrt
state_trackers/gui

View file

@ -387,3 +387,9 @@ if not get_option('libbsd').disabled() and libbsd.found()
else
message(' libbsd: no')
endif
if gst_found
message(' GStreamer: yes')
else
message(' GStreamer: no')
endif

View file

@ -293,4 +293,35 @@ aux_vk = declare_dependency(
all_aux = [aux_util, aux_os, aux_math, aux_tracking, aux_generated_bindings, aux_vive]
# GStreamer library.
if gst_found
lib_aux_gstreamer = static_library(
'aux_gstreamer',
files(
'gstreamer/gst_internal.h',
'gstreamer/gst_sink.h',
'gstreamer/gst_sink.c',
'gstreamer/gst_pipeline.h',
'gstreamer/gst_pipeline.c',
),
include_directories: [
xrt_include,
],
dependencies: [
aux_math,
aux_os,
gst,
gst_app,
gst_video,
],
)
aux_gstreamer = declare_dependency(
include_directories: aux_include,
link_with: lib_aux_gstreamer,
)
all_aux += aux_gstreamer
endif
aux = declare_dependency(dependencies: all_aux)

View file

@ -122,6 +122,10 @@ if build_tracing
have_conf.set('XRT_HAVE_PERCETTO', true)
endif
if gst_found
have_conf.set('XRT_HAVE_GST', true)
endif
xrt_config_have_h = configure_file(
output: 'xrt_config_have.h',
configuration: have_conf,

View file

@ -52,6 +52,10 @@ if 'depthai' in drivers
gui_deps += [drv_depthai]
endif
if gst_found
gui_deps += [aux_gstreamer]
endif
lib_st_gui = static_library(
'st_gui',
files(gui_sources),