Changeset 183491 in webkit


Ignore:
Timestamp:
Apr 28, 2015 11:01:57 AM (9 years ago)
Author:
Michael Catanzaro
Message:

[GTK] Make all options actually options
https://bugs.webkit.org/show_bug.cgi?id=144106

Reviewed by Martin Robinson.

Use WEBKIT_OPTION_DEFINE to set ENABLE_GTKDOC, ENABLE_INTROSPECTION, ENABLE_X11_TARGET, and
ENABLE_WAYLAND_TARGET.

  • Source/cmake/OptionsGTK.cmake:
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r183456 r183491  
     12015-04-28  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Make all options actually options
     4        https://bugs.webkit.org/show_bug.cgi?id=144106
     5
     6        Reviewed by Martin Robinson.
     7
     8        Use WEBKIT_OPTION_DEFINE to set ENABLE_GTKDOC, ENABLE_INTROSPECTION, ENABLE_X11_TARGET, and
     9        ENABLE_WAYLAND_TARGET.
     10
     11        * Source/cmake/OptionsGTK.cmake:
     12
    1132015-04-28  Michael Catanzaro <mcatanzaro@igalia.com>
    214
  • trunk/Source/cmake/OptionsGTK.cmake

    r183456 r183491  
    1212CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT2 42 0 5)
    1313CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(JAVASCRIPTCORE 19 3 1)
    14 
    15 set(ENABLE_GTKDOC OFF CACHE BOOL "Whether or not to use generate gtkdoc.")
    16 set(ENABLE_X11_TARGET ON CACHE BOOL "Whether to enable support for the X11 windowing target.")
    17 set(ENABLE_WAYLAND_TARGET OFF CACHE BOOL "Whether to enable support for the Wayland windowing target.")
    18 set(ENABLE_INTROSPECTION ON CACHE BOOL "Whether to enable GObject introspection.")
    1914
    2015# These are shared variables, but we special case their definition so that we can use the
     
    5752endif ()
    5853
    59 if (ENABLE_X11_TARGET)
    60     # With cmake 3.2.x we have to explicitly ask for X11 otherwise the X11_X11_LIB
    61     # variable won't be set thus the X11 linker flags won't be added and the build
    62     # will fail.
    63     find_package(X11 REQUIRED)
    64 endif ()
    65 
    66 if (ENABLE_WAYLAND_TARGET)
    67     find_package(Wayland REQUIRED)
    68 endif ()
    69 
    7054WEBKIT_OPTION_BEGIN()
    7155
    7256WEBKIT_OPTION_DEFINE(ENABLE_GLES2 "Whether to enable OpenGL ES 2.0." PUBLIC OFF)
     57WEBKIT_OPTION_DEFINE(ENABLE_GTKDOC "Whether or not to use generate gtkdoc." PUBLIC OFF)
     58WEBKIT_OPTION_DEFINE(ENABLE_INTROSPECTION "Whether to enable GObject introspection." PUBLIC ON)
    7359WEBKIT_OPTION_DEFINE(ENABLE_OPENGL "Whether to use OpenGL." PUBLIC ON)
    7460WEBKIT_OPTION_DEFINE(ENABLE_PLUGIN_PROCESS_GTK2 "Whether to build WebKitPluginProcess2 to load GTK2 based plugins." PUBLIC ON)
     61WEBKIT_OPTION_DEFINE(ENABLE_X11_TARGET "Whether to enable support for the X11 windowing target." PUBLIC ON)
     62WEBKIT_OPTION_DEFINE(ENABLE_WAYLAND_TARGET "Whether to enable support for the Wayland windowing target." PUBLIC OFF)
    7563
    7664WEBKIT_OPTION_DEFINE(USE_GSTREAMER_GL "Whether to enable support for GStreamer GL" PRIVATE OFF)
     
    7967# FIXME: Can we use cairo-glesv2 to avoid this conflict?
    8068WEBKIT_OPTION_CONFLICT(ENABLE_ACCELERATED_2D_CANVAS ENABLE_GLES2)
     69
     70# FIXME: Should be possible to build with support for both X11 and Wayland.
     71WEBKIT_OPTION_CONFLICT(ENABLE_WAYLAND_TARGET ENABLE_X11_TARGET)
    8172
    8273WEBKIT_OPTION_DEPEND(ENABLE_3D_TRANSFORMS ENABLE_OPENGL)
     
    150141# can't check ENABLE_X11_TARGET at this point because we don't know whether it's enabled until
    151142# WEBKIT_OPTION_END has been called, and at that point it's too late to change default values.
    152 #
    153 # FIXME The above is not quite true yet because ENABLE_X11_TARGET is not yet an option, bug #144106.
    154143WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS PUBLIC ${CAIRO_GL_FOUND})
    155144
     
    258247add_definitions(-DWEBKITGTK_API_VERSION_STRING="${WEBKITGTK_API_VERSION}")
    259248
     249if (ENABLE_X11_TARGET)
     250    find_package(X11 REQUIRED)
     251endif ()
     252
     253if (ENABLE_WAYLAND_TARGET)
     254    find_package(Wayland REQUIRED)
     255endif ()
     256
    260257if (ENABLE_OPENGL)
    261258    # ENABLE_OPENGL is true if either WTF_USE_OPENGL or ENABLE_GLES2 is true.
Note: See TracChangeset for help on using the changeset viewer.