• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1sources = [
2  'main.cpp',
3]
4
5if 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'],
8                           required: get_option('examples'))
9
10  # FIXME Add a way to get that information out of the qt5 module
11  moc = find_program('moc-qt5', 'moc', required : get_option('examples'))
12  if qt5qml_deps.found() and moc.found()
13    qt_preprocessed = qt5_mod.preprocess(qresources : 'qmlsink.qrc')
14    executable('qmlsink', sources, qt_preprocessed,
15        dependencies : [gst_dep, qt5qml_deps],
16        c_args : gst_plugins_good_args,
17        include_directories : [configinc],
18        install: false)
19  endif
20endif
21