mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-27 11:32:51 +00:00
meson: qmlgl plugin iOS definitions
Tested with cross-ios-arm64 and cross-ios-x86, since those two are the only archs shipped with the official Qt binaries.
This commit is contained in:
parent
0de89c0dbe
commit
d677e635fc
1 changed files with 8 additions and 2 deletions
|
@ -18,7 +18,7 @@ moc_headers = [
|
|||
if have_cxx and build_gstgl
|
||||
qt5_mod = import('qt5')
|
||||
qt5qml_dep = dependency('qt5', modules : ['Core', 'Gui', 'Qml', 'Quick'],
|
||||
required: get_option('qt5'))
|
||||
required: get_option('qt5'), static: host_machine.system() == 'ios')
|
||||
|
||||
# FIXME Add a way to get that information out of the qt5 module
|
||||
moc = find_program('moc-qt5', 'moc', required : get_option('qt5'))
|
||||
|
@ -121,7 +121,6 @@ if have_cxx and build_gstgl
|
|||
endif
|
||||
endif
|
||||
|
||||
# FIXME: iOS definitions
|
||||
if gst_gl_have_window_cocoa and gst_gl_have_platform_cgl
|
||||
# FIXME: automagic
|
||||
qt5macextras = dependency('qt5', modules : ['MacExtras'], required : false)
|
||||
|
@ -132,6 +131,13 @@ if have_cxx and build_gstgl
|
|||
endif
|
||||
endif
|
||||
|
||||
if gst_gl_have_window_eagl and gst_gl_have_platform_eagl
|
||||
if host_machine.system() == 'ios'
|
||||
qt_defines += ['-DHAVE_QT_IOS']
|
||||
have_qt_windowing = true
|
||||
endif
|
||||
endif
|
||||
|
||||
if have_qt_windowing
|
||||
# Build it!
|
||||
moc_files = qt5_mod.preprocess(moc_headers : moc_headers)
|
||||
|
|
Loading…
Reference in a new issue