gstreamer/tests/examples/qt/qmlsink/meson.build
Matthew Waters ca67a460ee meson: add build files for the qml plugin
Tested on linux with X11/wayland and semi-tested on Windows.

Windows crashes on item destruction however this is better than nothing.

Fix up some win32 build issues on the way with mismatched {} and
G_STMT_{START,END}
2018-04-15 23:49:57 +10:00

19 lines
657 B
Meson

sources = [
'main.cpp',
]
if have_cxx and build_gstgl and gstgl_dep.found()
qt5_mod = import('qt5')
qt5qml_deps = dependency('qt5', modules : ['Core', 'Gui', 'Widgets', 'Qml', 'Quick'], required: false)
# FIXME Add a way to get that information out of the qt5 module
moc = find_program('moc-qt5', required : false)
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