mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-03 12:28:07 +00:00
meson: Add GStreamer recording support
This commit is contained in:
parent
70263a6b16
commit
760e8dd3ad
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue