2020-09-15 18:15:36 +00:00
|
|
|
if get_option('qt5').disabled()
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
2018-07-25 02:05:05 +00:00
|
|
|
if x11_dep.found()
|
2016-08-27 10:22:11 +00:00
|
|
|
if gtk_x11_dep.found()
|
|
|
|
executable('gtk-videooverlay', 'gtk-videooverlay.c',
|
|
|
|
c_args : gst_plugins_base_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
2022-03-25 19:00:20 +00:00
|
|
|
dependencies : [gst_dep, video_dep, libm, x11_dep, gtk_x11_dep],
|
2016-08-27 10:22:11 +00:00
|
|
|
install: false)
|
|
|
|
endif
|
|
|
|
|
2017-05-21 08:37:14 +00:00
|
|
|
if have_cxx # check for C++ support
|
2016-08-27 10:22:11 +00:00
|
|
|
qt5_mod = import('qt5')
|
2021-01-26 13:05:48 +00:00
|
|
|
qt5widgets_dep = dependency('qt5', modules : ['Core', 'Gui', 'Widgets'],
|
2018-07-25 02:05:05 +00:00
|
|
|
required: get_option('examples'))
|
2016-09-05 22:55:58 +00:00
|
|
|
|
2020-03-30 19:16:29 +00:00
|
|
|
if qt5widgets_dep.found() and qt5_mod.has_tools(required: get_option('examples'))
|
2016-08-27 10:22:11 +00:00
|
|
|
executable('qt-videooverlay', 'qt-videooverlay.cpp',
|
|
|
|
cpp_args : gst_plugins_base_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
2022-03-25 19:00:20 +00:00
|
|
|
dependencies : [gst_dep, video_dep, libm, x11_dep, qt5widgets_dep],
|
2016-08-27 10:22:11 +00:00
|
|
|
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],
|
2022-03-25 19:00:20 +00:00
|
|
|
dependencies : [gst_dep, video_dep, libm, x11_dep, qt5widgets_dep],
|
2016-08-27 10:22:11 +00:00
|
|
|
install: false)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
endif
|
2019-07-06 08:02:27 +00:00
|
|
|
|
|
|
|
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,
|
|
|
|
)
|
2020-12-20 13:35:45 +00:00
|
|
|
|
|
|
|
executable('win32-videooverlay-playbin', 'win32-videooverlay-playbin.c',
|
|
|
|
c_args : gst_plugins_base_args,
|
|
|
|
include_directories : [configinc, libsinc],
|
|
|
|
dependencies : [gst_dep, video_dep],
|
|
|
|
install: false,
|
|
|
|
)
|
2019-07-06 08:02:27 +00:00
|
|
|
endif
|