meson: Make qml/qml6 plugins use the right qt detection method

Otherwise they can pick up the wrong qt and cause two different Qt
instances to be used in the same program.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9046>
This commit is contained in:
Nirbheek Chauhan 2025-05-21 20:23:47 +05:30 committed by GStreamer Marge Bot
parent 331a381c66
commit 0ba85c84a1
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ if not qt5qml_dep.found()
endif
qt5qml_example_deps = dependency('qt5', modules : ['Core', 'Gui', 'Widgets', 'Qml', 'Quick'],
required: get_option('examples'))
method: qt5_method, required: get_option('examples'))
if not qt5qml_example_deps.found()
subdir_done()

View File

@ -8,7 +8,7 @@ if not qt6qml_dep.found()
endif
qt6qml_example_deps = dependency('qt6', modules : ['Core', 'Gui', 'Widgets', 'Qml', 'Quick'],
required: get_option('examples'))
method: qt6_method, required: get_option('examples'))
if not qt6qml_example_deps.found()
subdir_done()