Changeset 192095 in webkit


Ignore:
Timestamp:
Nov 6, 2015 1:39:30 AM (8 years ago)
Author:
Michael Catanzaro
Message:

[GTK] Re-enable Quartz backend on cmake build system
https://bugs.webkit.org/show_bug.cgi?id=144561

Reviewed by Philippe Normand.

  • Source/cmake/FindGTK3.cmake: Set GTK3_SUPPORTS_QUARTZ based on

the presence of of gtk+-quartz-3.0 module.

  • Source/cmake/OptionsGTK.cmake: Reintroduce the

ENABLE_QUARTZ_TARGET option to the CMake build, for building the
GTK+ Quartz backend on OS X.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r192093 r192095  
     12015-11-06  Philip Chimento  <philip.chimento@gmail.com> and Michael Catanzaro <mcatanzaro@igalia.com>
     2
     3        [GTK] Re-enable Quartz backend on cmake build system
     4        https://bugs.webkit.org/show_bug.cgi?id=144561
     5
     6        Reviewed by Philippe Normand.
     7
     8        * Source/cmake/FindGTK3.cmake: Set GTK3_SUPPORTS_QUARTZ based on
     9        the presence of of gtk+-quartz-3.0 module.
     10        * Source/cmake/OptionsGTK.cmake: Reintroduce the
     11        ENABLE_QUARTZ_TARGET option to the CMake build, for building the
     12        GTK+ Quartz backend on OS X.
     13
    1142015-11-05  Nikos Andronikos  <nikos.andronikos-webkit@cisra.canon.com.au>
    215
  • trunk/Source/cmake/FindGTK3.cmake

    r188929 r192095  
    66#  GTK3_LIBRARIES - link these to use GTK+ 3.
    77#  GTK3_SUPPORTS_GESTURES - GTK+ supports gestures (GTK+ >= 3.14)
     8#  GTK3_SUPPORTS_QUARTZ - GTK+ supports Quartz backend
    89#  GTK3_SUPPORTS_X11 - GTK+ supports X11 backend
    910#  GTK3_SUPPORTS_WAYLAND - GTK+ supports Wayland backend
     
    5051
    5152if (GTK3_VERSION AND VERSION_OK)
     53    pkg_check_modules(GTK3_QUARTZ gtk+-quartz-3.0)
     54    if ("${GTK3_QUARTZ_VERSION}" VERSION_EQUAL "${GTK3_VERSION}")
     55        set(GTK3_SUPPORTS_QUARTZ TRUE)
     56    endif ()
     57
    5258    pkg_check_modules(GTK3_X11 gtk+-x11-3.0)
    5359    if ("${GTK3_X11_VERSION}" VERSION_EQUAL "${GTK3_VERSION}")
  • trunk/Source/cmake/OptionsGTK.cmake

    r191944 r192095  
    7272WEBKIT_OPTION_DEFINE(ENABLE_OPENGL "Whether to use OpenGL." PUBLIC ON)
    7373WEBKIT_OPTION_DEFINE(ENABLE_PLUGIN_PROCESS_GTK2 "Whether to build WebKitPluginProcess2 to load GTK2 based plugins." PUBLIC ON)
     74WEBKIT_OPTION_DEFINE(ENABLE_QUARTZ_TARGET "Whether to enable support for the Quartz windowing target." PUBLIC ${GTK3_SUPPORTS_QUARTZ})
    7475WEBKIT_OPTION_DEFINE(ENABLE_X11_TARGET "Whether to enable support for the X11 windowing target." PUBLIC ${GTK3_SUPPORTS_X11})
    7576WEBKIT_OPTION_DEFINE(ENABLE_WAYLAND_TARGET "Whether to enable support for the Wayland windowing target." PUBLIC ${GTK3_SUPPORTS_WAYLAND})
     
    187188WEBKIT_OPTION_END()
    188189
     190SET_AND_EXPOSE_TO_BUILD(WTF_PLATFORM_QUARTZ ${ENABLE_QUARTZ_TARGET})
    189191SET_AND_EXPOSE_TO_BUILD(WTF_PLATFORM_X11 ${ENABLE_X11_TARGET})
    190192SET_AND_EXPOSE_TO_BUILD(WTF_PLATFORM_WAYLAND ${ENABLE_WAYLAND_TARGET})
     
    391393
    392394    SET_AND_EXPOSE_TO_BUILD(USE_GSTREAMER TRUE)
     395endif ()
     396
     397if (ENABLE_QUARTZ_TARGET)
     398    if (NOT GTK3_SUPPORTS_QUARTZ)
     399        message(FATAL_ERROR "Recompile GTK+ with Quartz backend to use ENABLE_QUARTZ_TARGET")
     400    endif ()
    393401endif ()
    394402
Note: See TracChangeset for help on using the changeset viewer.