Changeset 250298 in webkit


Ignore:
Timestamp:
Sep 24, 2019 7:58:49 AM (5 years ago)
Author:
Adrian Perez de Castro
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.

Location:
trunk/Source/ThirdParty/ANGLE
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/ThirdParty/ANGLE/ChangeLog

    r249892 r250298  
     12019-09-24  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [GTK] ANGLE's eglplatform.h is build broken with -DENABLE_X11_PLATFORM=OFF
     4        https://bugs.webkit.org/show_bug.cgi?id=198621
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        * PlatformGTK.cmake: Define WL_EGL_PLATFORM to prefer Wayland type
     9        definitions with ENABLE_WAYLAND_TARGET=ON and ENABLE_X11_TARGET=OFF
     10        to avoid ANGLE's eglplatform.h from trying to include the X11 headers.
     11
    1122019-09-16  James Darpinian  <jdarpinian@chromium.org>
    213
  • trunk/Source/ThirdParty/ANGLE/PlatformGTK.cmake

    r245278 r250298  
    11# Enable GLSL compiler output.
    22list(APPEND ANGLE_DEFINITIONS ANGLE_ENABLE_GLSL)
     3
     4# NOTE: When both Wayland and X11 are enabled, ANGLE_USE_X11 will be
     5# defined and the X11 type definitions will be used for code involving
     6# both. That works because types for both Wayland and X11 have the same
     7# sizes and the code in WebKit casts the values to the proper types as
     8# needed.
     9
     10if (ENABLE_WAYLAND_TARGET AND NOT ENABLE_X11_TARGET)
     11    list(APPEND ANGLE_DEFINITIONS WL_EGL_PLATFORM)
     12elseif (NOT ENABLE_X11_TARGET)
     13    # Allow building ANGLE on platforms which may not provide X11 headers.
     14    list(APPEND ANGLE_DEFINITIONS USE_SYSTEM_EGL)
     15endif ()
Note: See TracChangeset for help on using the changeset viewer.