|
@@ -78,32 +78,32 @@ else
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_GAMEPAD=OFF
|
|
|
endif
|
|
|
|
|
|
-# Only one target platform can be built, assume X11 > Wayland
|
|
|
+# Use GLES if available and desktop GL is not.
|
|
|
+ifeq ($(BR2_PACKAGE_HAS_LIBGL):$(BR2_PACKAGE_HAS_LIBGLES),:y)
|
|
|
+WEBKITGTK_CONF_OPTS += -DENABLE_GLES2=ON
|
|
|
+WEBKITGTK_DEPENDENCIES += libgles
|
|
|
+else
|
|
|
+WEBKITGTK_CONF_OPTS += -DENABLE_GLES2=OFF
|
|
|
+endif
|
|
|
|
|
|
-# GTK3-X11 target gives OpenGL from newer libgtk3 versions
|
|
|
-# Consider this better than EGL + maybe GLESv2 since both can't be built
|
|
|
-# 2D CANVAS acceleration requires OpenGL proper with cairo-gl
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
|
|
|
-WEBKITGTK_CONF_OPTS += \
|
|
|
- -DENABLE_GLES2=OFF \
|
|
|
- -DENABLE_X11_TARGET=ON
|
|
|
+WEBKITGTK_CONF_OPTS += -DENABLE_X11_TARGET=ON
|
|
|
WEBKITGTK_DEPENDENCIES += libgl \
|
|
|
xlib_libXcomposite xlib_libXdamage xlib_libXrender xlib_libXt
|
|
|
-else # !X11
|
|
|
-# GTK3-BROADWAY/WAYLAND needs at least EGL
|
|
|
-WEBKITGTK_DEPENDENCIES += libegl
|
|
|
-# GLESv2 support is optional though
|
|
|
-ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
|
|
-WEBKITGTK_CONF_OPTS += -DENABLE_GLES2=ON
|
|
|
-WEBKITGTK_DEPENDENCIES += libgles
|
|
|
else
|
|
|
-# Disable general OpenGL (shading) if there's no GLESv2
|
|
|
-WEBKITGTK_CONF_OPTS += -DENABLE_GLES2=OFF
|
|
|
+WEBKITGTK_CONF_OPTS += -DENABLE_X11_TARGET=OFF
|
|
|
endif
|
|
|
-# We must explicitly state the wayland target
|
|
|
+
|
|
|
ifeq ($(BR2_PACKAGE_LIBGTK3_WAYLAND),y)
|
|
|
WEBKITGTK_CONF_OPTS += -DENABLE_WAYLAND_TARGET=ON
|
|
|
+WEBKITGTK_DEPENDENCIES += libegl
|
|
|
+else
|
|
|
+WEBKITGTK_CONF_OPTS += -DENABLE_WAYLAND_TARGET=OFF
|
|
|
endif
|
|
|
+
|
|
|
+# If only the GTK Broadway backend is enabled, EGL is still needed.
|
|
|
+ifeq ($(BR2_PACKAGE_LIBGTK3_X11):$(BR2_PACKAGE_LIBGTK3_WAYLAND):$(BR2_PACKAGE_LIBGTK3_BROADWAY),::y)
|
|
|
+WEBKITGTK_DEPENDENCIES += libegl
|
|
|
endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_WPEBACKEND_FDO),y)
|