⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 286131 in webkit


Ignore:
Timestamp:
Nov 23, 2021, 4:20:14 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

[WPE][GTK] Allow enabling JPEG-XL support at build time
https://bugs.webkit.org/show_bug.cgi?id=233325

Reviewed by Michael Catanzaro.

.:

Adds a new USE_JPEGXL build option, disabled by default for release builds and
enabled for developer builds.

  • Source/cmake/OptionsGTK.cmake: Add USE_JPEGXL build option.
  • Source/cmake/OptionsWPE.cmake: Ditto.

LayoutTests:

  • platform/glib/TestExpectations: Unskip JPEG-XL tests for the GTK and WPE ports.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r286114 r286131  
     12021-11-23  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [WPE][GTK] Allow enabling JPEG-XL support at build time
     4        https://bugs.webkit.org/show_bug.cgi?id=233325
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        Adds a new USE_JPEGXL build option, disabled by default for release builds and
     9        enabled for developer builds.
     10
     11        * Source/cmake/OptionsGTK.cmake: Add USE_JPEGXL build option.
     12        * Source/cmake/OptionsWPE.cmake: Ditto.
     13
    1142021-11-22  Alejandro G. Castro  <alex@igalia.com>
    215
  • trunk/LayoutTests/ChangeLog

    r286123 r286131  
     12021-11-23  Adrian Perez de Castro  <aperez@igalia.com>
     2
     3        [WPE][GTK] Allow enabling JPEG-XL support at build time
     4        https://bugs.webkit.org/show_bug.cgi?id=233325
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * platform/glib/TestExpectations: Unskip JPEG-XL tests for the GTK and WPE ports.
     9
    1102021-11-22  Myles C. Maxfield  <mmaxfield@apple.com>
    211
  • trunk/LayoutTests/platform/glib/TestExpectations

    r286089 r286131  
    104104fast/text/emoji-gender-8.html [ Pass ]
    105105fast/text/emoji-gender-9.html [ Pass ]
     106
     107# JPEG-XL tests
     108fast/images/jpegxl-as-image.html [ Pass ]
     109fast/images/jpegxl-image-decoding.html [ Pass ]
    106110
    107111# Some Apple ports don't support RTL scrollbars.
  • trunk/Source/cmake/OptionsGTK.cmake

    r285260 r286131  
    6363WEBKIT_OPTION_DEFINE(USE_AVIF "Whether to enable support for AVIF images." PUBLIC ${ENABLE_EXPERIMENTAL_FEATURES})
    6464WEBKIT_OPTION_DEFINE(USE_GTK4 "Whether to enable usage of GTK4 instead of GTK3." PUBLIC OFF)
     65WEBKIT_OPTION_DEFINE(USE_JPEGXL "Whether to enable support for JPEG-XL images." PUBLIC ${ENABLE_EXPERIMENTAL_FEATURES})
    6566WEBKIT_OPTION_DEFINE(USE_LCMS "Whether to enable support for image color management using libcms2." PUBLIC ON)
    6667WEBKIT_OPTION_DEFINE(USE_LIBHYPHEN "Whether to enable the default automatic hyphenation implementation." PUBLIC ON)
     
    421422endif ()
    422423
     424if (USE_JPEGXL)
     425    find_package(JPEGXL)
     426    if (NOT JPEGXL_FOUND)
     427        message(FATAL_ERROR "libjxl is required for USE_JPEGXL")
     428    endif ()
     429endif ()
     430
    423431if (USE_LIBNOTIFY)
    424432    find_package(LibNotify)
  • trunk/Source/cmake/OptionsWPE.cmake

    r285260 r286131  
    7777WEBKIT_OPTION_DEFINE(ENABLE_WPE_QT_API "Whether to enable support for the Qt5/QML plugin" PUBLIC ${ENABLE_DEVELOPER_MODE})
    7878WEBKIT_OPTION_DEFINE(USE_AVIF "Whether to enable support for AVIF images." PUBLIC ${ENABLE_EXPERIMENTAL_FEATURES})
     79WEBKIT_OPTION_DEFINE(USE_JPEGXL "Whether to enable support for JPEG-XL images." PUBLIC ${ENABLE_EXPERIMENTAL_FEATURES})
    7980WEBKIT_OPTION_DEFINE(USE_LCMS "Whether to enable support for image color management using libcms2." PUBLIC ON)
    8081WEBKIT_OPTION_DEFINE(USE_OPENJPEG "Whether to enable support for JPEG2000 images." PUBLIC ON)
     
    170171endif ()
    171172
     173if (USE_JPEGXL)
     174    find_package(JPEGXL)
     175    if (NOT JPEGXL_FOUND)
     176        message(FATAL_ERROR "libjxl is required for USE_JPEGXL")
     177    endif ()
     178endif ()
     179
    172180if (USE_OPENJPEG)
    173181    find_package(OpenJPEG 2.2.0)
Note: See TracChangeset for help on using the changeset viewer.