meson: add build files for the qml plugin
[platform/upstream/gstreamer.git] / tests / examples / qt / qmlsink / meson.build
1 sources = [
2   'main.cpp',
3 ]
4
5 if have_cxx and build_gstgl and gstgl_dep.found()
6   qt5_mod = import('qt5')
7   qt5qml_deps = dependency('qt5', modules : ['Core', 'Gui', 'Widgets', 'Qml', 'Quick'], required: false)
8
9   # FIXME Add a way to get that information out of the qt5 module
10   moc = find_program('moc-qt5', required : false)
11   if qt5qml_deps.found() and moc.found()
12     qt_preprocessed = qt5_mod.preprocess(qresources : 'qmlsink.qrc')
13     executable('qmlsink', sources, qt_preprocessed,
14         dependencies : [gst_dep, qt5qml_deps],
15         c_args : gst_plugins_good_args,
16         include_directories : [configinc],
17         install: false)
18   endif
19 endif