mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
3a53ec066b
User can set the target WIN32 video element via "videosink" command line option. Default is glimagesink.
42 lines
1.7 KiB
Meson
42 lines
1.7 KiB
Meson
if x11_dep.found()
|
|
if gtk_x11_dep.found()
|
|
executable('gtk-videooverlay', 'gtk-videooverlay.c',
|
|
c_args : gst_plugins_base_args,
|
|
include_directories: [configinc, libsinc],
|
|
dependencies : [glib_deps, gst_dep, video_dep, libm, x11_dep, gtk_x11_dep],
|
|
install: false)
|
|
endif
|
|
|
|
if have_cxx # check for C++ support
|
|
qt5_mod = import('qt5')
|
|
qt5widgets_dep = dependency('qt5', modules : ['Gui', 'Widgets'],
|
|
required: get_option('examples'))
|
|
|
|
# FIXME Add a way to get that information out of the qt5 module
|
|
moc = find_program('moc-qt5', required : get_option('examples'))
|
|
if qt5widgets_dep.found() and moc.found()
|
|
executable('qt-videooverlay', 'qt-videooverlay.cpp',
|
|
cpp_args : gst_plugins_base_args,
|
|
include_directories: [configinc, libsinc],
|
|
dependencies : [glib_deps, gst_dep, video_dep, libm, x11_dep, qt5widgets_dep],
|
|
install: false)
|
|
|
|
# FIXME: this doesn't work properly yet, no moc_qtgv-videooverlay.cpp generated
|
|
moc_files = qt5_mod.preprocess(moc_headers : 'qtgv-videooverlay.h')#moc_sources : 'qtgv-videooverlay.cpp')
|
|
executable('qtgv-videooverlay', 'qtgv-videooverlay.cpp', moc_files,
|
|
cpp_args : gst_plugins_base_args,
|
|
include_directories: [configinc, libsinc],
|
|
dependencies : [glib_deps, gst_dep, video_dep, libm, x11_dep, qt5widgets_dep],
|
|
install: false)
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
if host_system == 'windows'
|
|
executable('win32-videooverlay', 'win32-videooverlay.c',
|
|
c_args : gst_plugins_base_args,
|
|
include_directories : [configinc, libsinc],
|
|
dependencies : [gst_dep, video_dep],
|
|
install: false,
|
|
)
|
|
endif
|