gtk4: Only require GTK 4.6 if GL support is enabled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1007>
This commit is contained in:
Sebastian Dröge 2022-12-12 13:46:57 +02:00
parent 54741b7cc4
commit 65efdc8c81

View file

@ -9,7 +9,7 @@ rust-version = "1.63"
description = "GStreamer GTK 4 Sink element and Paintable widget"
[dependencies]
gtk = { package = "gtk4", git = "https://github.com/gtk-rs/gtk4-rs", features = ["v4_6"] }
gtk = { package = "gtk4", git = "https://github.com/gtk-rs/gtk4-rs" }
gdk_wayland = { package = "gdk4-wayland", git = "https://github.com/gtk-rs/gtk4-rs", features = ["v4_4"], optional = true}
gdk_x11 = { package = "gdk4-x11", git = "https://github.com/gtk-rs/gtk4-rs", features = ["v4_4"], optional = true}
@ -36,9 +36,9 @@ gst-plugin-version-helper = { path="../../version-helper" }
[features]
default = []
static = []
wayland = ["gdk_wayland", "gst_gl", "gst_gl_wayland"]
x11glx = ["gdk_x11", "gst_gl", "gst_gl_x11"]
x11egl = ["gdk_x11", "gst_gl", "gst_gl_egl"]
wayland = ["gtk/v4_6", "gdk_wayland", "gst_gl", "gst_gl_wayland"]
x11glx = ["gtk/v4_6", "gdk_x11", "gst_gl", "gst_gl_x11"]
x11egl = ["gtk/v4_6", "gdk_x11", "gst_gl", "gst_gl_egl"]
capi = []
doc = ["gst/v1_18"]