Changeset 183491 in webkit
- Timestamp:
- Apr 28, 2015 11:01:57 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r183456 r183491 1 2015-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 1 13 2015-04-28 Michael Catanzaro <mcatanzaro@igalia.com> 2 14 -
trunk/Source/cmake/OptionsGTK.cmake
r183456 r183491 12 12 CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT2 42 0 5) 13 13 CALCULATE_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.")19 14 20 15 # These are shared variables, but we special case their definition so that we can use the … … 57 52 endif () 58 53 59 if (ENABLE_X11_TARGET)60 # With cmake 3.2.x we have to explicitly ask for X11 otherwise the X11_X11_LIB61 # variable won't be set thus the X11 linker flags won't be added and the build62 # will fail.63 find_package(X11 REQUIRED)64 endif ()65 66 if (ENABLE_WAYLAND_TARGET)67 find_package(Wayland REQUIRED)68 endif ()69 70 54 WEBKIT_OPTION_BEGIN() 71 55 72 56 WEBKIT_OPTION_DEFINE(ENABLE_GLES2 "Whether to enable OpenGL ES 2.0." PUBLIC OFF) 57 WEBKIT_OPTION_DEFINE(ENABLE_GTKDOC "Whether or not to use generate gtkdoc." PUBLIC OFF) 58 WEBKIT_OPTION_DEFINE(ENABLE_INTROSPECTION "Whether to enable GObject introspection." PUBLIC ON) 73 59 WEBKIT_OPTION_DEFINE(ENABLE_OPENGL "Whether to use OpenGL." PUBLIC ON) 74 60 WEBKIT_OPTION_DEFINE(ENABLE_PLUGIN_PROCESS_GTK2 "Whether to build WebKitPluginProcess2 to load GTK2 based plugins." PUBLIC ON) 61 WEBKIT_OPTION_DEFINE(ENABLE_X11_TARGET "Whether to enable support for the X11 windowing target." PUBLIC ON) 62 WEBKIT_OPTION_DEFINE(ENABLE_WAYLAND_TARGET "Whether to enable support for the Wayland windowing target." PUBLIC OFF) 75 63 76 64 WEBKIT_OPTION_DEFINE(USE_GSTREAMER_GL "Whether to enable support for GStreamer GL" PRIVATE OFF) … … 79 67 # FIXME: Can we use cairo-glesv2 to avoid this conflict? 80 68 WEBKIT_OPTION_CONFLICT(ENABLE_ACCELERATED_2D_CANVAS ENABLE_GLES2) 69 70 # FIXME: Should be possible to build with support for both X11 and Wayland. 71 WEBKIT_OPTION_CONFLICT(ENABLE_WAYLAND_TARGET ENABLE_X11_TARGET) 81 72 82 73 WEBKIT_OPTION_DEPEND(ENABLE_3D_TRANSFORMS ENABLE_OPENGL) … … 150 141 # can't check ENABLE_X11_TARGET at this point because we don't know whether it's enabled until 151 142 # 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.154 143 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ACCELERATED_2D_CANVAS PUBLIC ${CAIRO_GL_FOUND}) 155 144 … … 258 247 add_definitions(-DWEBKITGTK_API_VERSION_STRING="${WEBKITGTK_API_VERSION}") 259 248 249 if (ENABLE_X11_TARGET) 250 find_package(X11 REQUIRED) 251 endif () 252 253 if (ENABLE_WAYLAND_TARGET) 254 find_package(Wayland REQUIRED) 255 endif () 256 260 257 if (ENABLE_OPENGL) 261 258 # ENABLE_OPENGL is true if either WTF_USE_OPENGL or ENABLE_GLES2 is true.
Note: See TracChangeset
for help on using the changeset viewer.