mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-18 15:15:37 +00:00
meson: Only enable gtk4 examples when gtk4 is found
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1604>
This commit is contained in:
parent
3b6832724f
commit
3e4330686f
1 changed files with 27 additions and 26 deletions
53
meson.build
53
meson.build
|
@ -208,32 +208,6 @@ plugins = {
|
||||||
'quinn': {'library': 'libgstquinn'},
|
'quinn': {'library': 'libgstquinn'},
|
||||||
}
|
}
|
||||||
|
|
||||||
if get_option('examples').allowed()
|
|
||||||
plugins += {
|
|
||||||
'fallbackswitch': {
|
|
||||||
'library': 'libgstfallbackswitch',
|
|
||||||
'examples': ['gtk-fallbackswitch'],
|
|
||||||
'features': ['gtk', 'gio', 'gst-plugin-gtk4'],
|
|
||||||
},
|
|
||||||
'livesync': {
|
|
||||||
'library': 'libgstlivesync',
|
|
||||||
'examples': ['gtk-livesync'],
|
|
||||||
'features': ['gtk', 'gio', 'gst-plugin-gtk4'],
|
|
||||||
},
|
|
||||||
'togglerecord': {
|
|
||||||
'library': 'libgsttogglerecord',
|
|
||||||
'examples': ['gtk-recording'],
|
|
||||||
'features': ['gtk', 'gio', 'gst-plugin-gtk4'],
|
|
||||||
},
|
|
||||||
}
|
|
||||||
else
|
|
||||||
plugins += {
|
|
||||||
'fallbackswitch': { 'library': 'libgstfallbackswitch'},
|
|
||||||
'livesync': { 'library': 'libgstlivesync'},
|
|
||||||
'togglerecord': { 'library': 'libgsttogglerecord'},
|
|
||||||
}
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Won't build on platforms where it bundles the sources because of:
|
# Won't build on platforms where it bundles the sources because of:
|
||||||
# https://github.com/qnighy/libwebp-sys2-rs/issues/12
|
# https://github.com/qnighy/libwebp-sys2-rs/issues/12
|
||||||
# the fix is:
|
# the fix is:
|
||||||
|
@ -332,6 +306,33 @@ if get_option('gtk4').allowed()
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
examples_opt = get_option('examples')
|
||||||
|
if examples_opt.allowed() and 'gtk4' in plugins
|
||||||
|
plugins += {
|
||||||
|
'fallbackswitch': {
|
||||||
|
'library': 'libgstfallbackswitch',
|
||||||
|
'examples': ['gtk-fallbackswitch'],
|
||||||
|
'features': ['gtk', 'gio', 'gst-plugin-gtk4'],
|
||||||
|
},
|
||||||
|
'livesync': {
|
||||||
|
'library': 'libgstlivesync',
|
||||||
|
'examples': ['gtk-livesync'],
|
||||||
|
'features': ['gtk', 'gio', 'gst-plugin-gtk4'],
|
||||||
|
},
|
||||||
|
'togglerecord': {
|
||||||
|
'library': 'libgsttogglerecord',
|
||||||
|
'examples': ['gtk-recording'],
|
||||||
|
'features': ['gtk', 'gio', 'gst-plugin-gtk4'],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
else
|
||||||
|
plugins += {
|
||||||
|
'fallbackswitch': { 'library': 'libgstfallbackswitch'},
|
||||||
|
'livesync': { 'library': 'libgstlivesync'},
|
||||||
|
'togglerecord': { 'library': 'libgsttogglerecord'},
|
||||||
|
}
|
||||||
|
endif
|
||||||
|
|
||||||
# Process plugins list
|
# Process plugins list
|
||||||
|
|
||||||
default_library = get_option('default_library')
|
default_library = get_option('default_library')
|
||||||
|
|
Loading…
Reference in a new issue