Title: [250298] trunk/Source/ThirdParty/ANGLE
Revision
250298
Author
[email protected]
Date
2019-09-24 07:58:49 -0700 (Tue, 24 Sep 2019)

Log Message

[GTK] ANGLE's eglplatform.h is build broken with -DENABLE_X11_PLATFORM=OFF
https://bugs.webkit.org/show_bug.cgi?id=198621

Reviewed by Carlos Garcia Campos.

* PlatformGTK.cmake: Define WL_EGL_PLATFORM to prefer Wayland type
definitions with ENABLE_WAYLAND_TARGET=ON and ENABLE_X11_TARGET=OFF
to avoid ANGLE's eglplatform.h from trying to include the X11 headers.

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/ANGLE/ChangeLog (250297 => 250298)


--- trunk/Source/ThirdParty/ANGLE/ChangeLog	2019-09-24 14:39:57 UTC (rev 250297)
+++ trunk/Source/ThirdParty/ANGLE/ChangeLog	2019-09-24 14:58:49 UTC (rev 250298)
@@ -1,3 +1,14 @@
+2019-09-24  Adrian Perez de Castro  <[email protected]>
+
+        [GTK] ANGLE's eglplatform.h is build broken with -DENABLE_X11_PLATFORM=OFF
+        https://bugs.webkit.org/show_bug.cgi?id=198621
+
+        Reviewed by Carlos Garcia Campos.
+
+        * PlatformGTK.cmake: Define WL_EGL_PLATFORM to prefer Wayland type
+        definitions with ENABLE_WAYLAND_TARGET=ON and ENABLE_X11_TARGET=OFF
+        to avoid ANGLE's eglplatform.h from trying to include the X11 headers.
+
 2019-09-16  James Darpinian  <[email protected]>
 
         Remove commit.h copying build steps

Modified: trunk/Source/ThirdParty/ANGLE/PlatformGTK.cmake (250297 => 250298)


--- trunk/Source/ThirdParty/ANGLE/PlatformGTK.cmake	2019-09-24 14:39:57 UTC (rev 250297)
+++ trunk/Source/ThirdParty/ANGLE/PlatformGTK.cmake	2019-09-24 14:58:49 UTC (rev 250298)
@@ -1,2 +1,15 @@
 # Enable GLSL compiler output.
 list(APPEND ANGLE_DEFINITIONS ANGLE_ENABLE_GLSL)
+
+# NOTE: When both Wayland and X11 are enabled, ANGLE_USE_X11 will be
+# defined and the X11 type definitions will be used for code involving
+# both. That works because types for both Wayland and X11 have the same
+# sizes and the code in WebKit casts the values to the proper types as
+# needed.
+
+if (ENABLE_WAYLAND_TARGET AND NOT ENABLE_X11_TARGET)
+    list(APPEND ANGLE_DEFINITIONS WL_EGL_PLATFORM)
+elseif (NOT ENABLE_X11_TARGET)
+    # Allow building ANGLE on platforms which may not provide X11 headers.
+    list(APPEND ANGLE_DEFINITIONS USE_SYSTEM_EGL)
+endif ()
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to