2018-04-05 06:05:12 +00:00
|
|
|
sources = [
|
|
|
|
'main.cpp',
|
|
|
|
]
|
|
|
|
|
|
|
|
if have_cxx and build_gstgl and gstgl_dep.found()
|
|
|
|
qt5_mod = import('qt5')
|
2018-07-25 02:05:28 +00:00
|
|
|
qt5qml_deps = dependency('qt5', modules : ['Core', 'Gui', 'Widgets', 'Qml', 'Quick'],
|
|
|
|
required: get_option('examples'))
|
2018-04-05 06:05:12 +00:00
|
|
|
|
|
|
|
# FIXME Add a way to get that information out of the qt5 module
|
2018-07-25 02:05:28 +00:00
|
|
|
moc = find_program('moc-qt5', 'moc', required : get_option('examples'))
|
2018-04-05 06:05:12 +00:00
|
|
|
if qt5qml_deps.found() and moc.found()
|
|
|
|
qt_preprocessed = qt5_mod.preprocess(qresources : 'qmlsink.qrc')
|
|
|
|
executable('qmlsink', sources, qt_preprocessed,
|
|
|
|
dependencies : [gst_dep, qt5qml_deps],
|
|
|
|
c_args : gst_plugins_good_args,
|
|
|
|
include_directories : [configinc],
|
|
|
|
install: false)
|
|
|
|
endif
|
|
|
|
endif
|