Changeset 155899 in webkit


Ignore:
Timestamp:
Sep 16, 2013 2:01:16 PM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK][2.2] Enable the Wayland target by default if the GTK+ Wayland dependency is available
https://bugs.webkit.org/show_bug.cgi?id=121414

Reviewed by Martin Robinson.

  • Source/autotools/FindDependencies.m4: If the Wayland target is not strictly disabled, also check that the GTK+ Wayland

package (gtk+-wayland-3.0) has a recent-enough version. If the dependency could not be satisfied, either a warning or an
error is printed out, depending if the Wayland target was required or just optional.

  • Source/autotools/PrintBuildConfiguration.m4: Add a new macro, AM_APPEND_TO_DESRIPTION, that's helpful when producing

a description string that can contain multiple items that should be nicely formatted when listed in that string. This is
then used when creating the description for all the enabled targets, so for instance 'x11, wayland' string would be displayed
if both the X11 and Wayland targets are enabled.

  • Source/autotools/ReadCommandLineArguments.m4: The --with-target configuration options should default to 'x11,wayland' if

not given, with the Wayland target in that case not being a hard requirement (i.e. it should be disabled if the dependencies
for the Wayland target could not be found).

  • Source/autotools/Versions.m4: The GTK+ Wayland dependency should be of version 3.9.14 or greater (the 3.10 release series).
Location:
releases/WebKitGTK/webkit-2.2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.2/ChangeLog

    r155864 r155899  
     12013-09-16  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK][2.2] Enable the Wayland target by default if the GTK+ Wayland dependency is available
     4        https://bugs.webkit.org/show_bug.cgi?id=121414
     5
     6        Reviewed by Martin Robinson.
     7
     8        * Source/autotools/FindDependencies.m4: If the Wayland target is not strictly disabled, also check that the GTK+ Wayland
     9        package (gtk+-wayland-3.0) has a recent-enough version. If the dependency could not be satisfied, either a warning or an
     10        error is printed out, depending if the Wayland target was required or just optional.
     11        * Source/autotools/PrintBuildConfiguration.m4: Add a new macro, AM_APPEND_TO_DESRIPTION, that's helpful when producing
     12        a description string that can contain multiple items that should be nicely formatted when listed in that string. This is
     13        then used when creating the description for all the enabled targets, so for instance 'x11, wayland' string would be displayed
     14        if both the X11 and Wayland targets are enabled.
     15        * Source/autotools/ReadCommandLineArguments.m4: The --with-target configuration options should default to 'x11,wayland' if
     16        not given, with the Wayland target in that case not being a hard requirement (i.e. it should be disabled if the dependencies
     17        for the Wayland target could not be found).
     18        * Source/autotools/Versions.m4: The GTK+ Wayland dependency should be of version 3.9.14 or greater (the 3.10 release series).
     19
    1202013-09-11  Mario Sanchez Prada  <mario.prada@samsung.com>
    221
  • releases/WebKitGTK/webkit-2.2/Source/autotools/FindDependencies.m4

    r155864 r155899  
    197197fi
    198198
    199 if test "$with_wayland_target" = "yes"; then
     199if test "$with_wayland_target" != "no"; then
    200200    # The GTK+ Wayland target dependency should match the version of the master GTK+ dependency.
    201     PKG_CHECK_MODULES(GTK_WAYLAND, gtk+-wayland-$GTK_API_VERSION = $GTK_ACTUAL_VERSION)
     201    PKG_CHECK_MODULES([GTK_WAYLAND], [
     202        gtk+-wayland-$GTK_API_VERSION = $GTK_ACTUAL_VERSION
     203        gtk+-wayland-$GTK_API_VERSION >= gtk3_wayland_required_version
     204    ], [with_wayland_target=yes], [
     205        if test "$with_wayland_target" = "yes"; then
     206            AC_MSG_ERROR([GTK+ Wayland dependency (gtk+-wayland-$GTK_API_VERSION >= gtk3_wayland_required_version) not found.])
     207        else
     208            AC_MSG_WARN([GTK+ Wayland dependency (gtk+-wayland-$GTK_API_VERSION >= gtk3_wayland_required_version) not found, disabling the Wayland target.])
     209            with_wayland_target=no
     210        fi
     211    ])
    202212fi
    203213
  • releases/WebKitGTK/webkit-2.2/Source/autotools/PrintBuildConfiguration.m4

    r155332 r155899  
     1dnl AM_APPEND_TO_DESCRIPTION
     2dnl Appends the given string to the description variable,
     3dnl using a separator if the description variable is not empty.
     4dnl
     5dnl Usage:
     6dnl AM_APPEND_TO_DESCRIPTION([DESCRIPTION], [STRING])
     7AC_DEFUN([AM_APPEND_TO_DESCRIPTION], [
     8  if test "$$1" != ""; then
     9    $1="${$1}, "
     10  fi
     11
     12  $1="${$1}$2"
     13]) dnl AM_APPEND_TO_DESCRIPTION
     14
     15
     16target_description=""
     17if test "$with_x11_target" = "yes"; then
     18    AM_APPEND_TO_DESCRIPTION(target_description, "x11")
     19fi
     20if test "$with_wayland_target" = "yes"; then
     21    AM_APPEND_TO_DESCRIPTION(target_description, "wayland")
     22fi
     23if test "$with_target" = "win32"; then
     24    AM_APPEND_TO_DESCRIPTION(target_description, "win32")
     25fi
     26if test "$with_target" = "quartz"; then
     27    AM_APPEND_TO_DESCRIPTION(target_description, "quartz")
     28fi
     29if test "$with_target" = "directfb"; then
     30    AM_APPEND_TO_DESCRIPTION(target_description, "directfb")
     31fi
     32
    133AC_OUTPUT
    234
     
    3466GTK+ configuration:
    3567 GTK+ version                                             : $with_gtk
    36  GDK targets                                              : $with_target
     68 GDK targets                                              : $target_description
    3769 Introspection support                                    : $enable_introspection
    3870 Generate documentation                                   : $enable_gtk_doc
  • releases/WebKitGTK/webkit-2.2/Source/autotools/ReadCommandLineArguments.m4

    r155332 r155899  
    5555        esac
    5656    ],
    57     [with_target="x11"])
     57    [with_target="x11,wayland"; with_wayland_target="auto"])
    5858AC_MSG_RESULT([$with_target])
    5959
     
    6363if test "$with_target" = "x11,wayland"; then
    6464    with_x11_target=yes
    65     with_wayland_target=yes
     65    if test "$with_wayland_target" != "auto"; then
     66        with_wayland_target=yes
     67    fi
    6668elif test "$with_target" = "x11"; then
    6769    with_x11_target=yes
  • releases/WebKitGTK/webkit-2.2/Source/autotools/Versions.m4

    r155864 r155899  
    1818m4_define([gtk2_required_version], [2.24.10])
    1919m4_define([gtk3_required_version], [3.6.0])
     20+m4_define([gtk3_wayland_required_version], [3.9.14])
    2021
    2122m4_define([atspi2_required_version], [2.5.3])
Note: See TracChangeset for help on using the changeset viewer.