mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 21:21:12 +00:00
b004464ac6
They are part of gst_dep already and we have to make sure to always have gst_dep. The order in dependencies matters, because it is also the order in which Meson will set -I args. We want gstreamer's config.h to take precedence over glib's private config.h when it's a subproject. While at it, remove useless fallback args for gmodule/gio dependencies, only gstreamer core needs it. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2031>
51 lines
1.8 KiB
Meson
51 lines
1.8 KiB
Meson
if get_option('qt5').disabled()
|
|
subdir_done()
|
|
endif
|
|
|
|
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 : [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 : ['Core', 'Gui', 'Widgets'],
|
|
required: get_option('examples'))
|
|
|
|
if qt5widgets_dep.found() and qt5_mod.has_tools(required: get_option('examples'))
|
|
executable('qt-videooverlay', 'qt-videooverlay.cpp',
|
|
cpp_args : gst_plugins_base_args,
|
|
include_directories: [configinc, libsinc],
|
|
dependencies : [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 : [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,
|
|
)
|
|
|
|
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,
|
|
)
|
|
endif
|