Changeset 156328 in webkit


Ignore:
Timestamp:
Sep 24, 2013 6:14:37 AM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[GTK] Enable the Wayland target if GTK+ dependency is found
https://bugs.webkit.org/show_bug.cgi?id=121704

Reviewed by Gustavo Noronha Silva.

The Wayland target should be enabled by default if the GTK+ dependency is of version 3.9.14 or later.

  • Source/autotools/FindDependencies.m4: If the Wayland target was not strictly disabled, the GTK+ dependency

is tested if it can provide the Wayland GDK backend, and that the version of that backend matches the version
of the master GTK+ dependency for which we already tested. If found, the target is enabled, otherwise we either
warn or error out, depending on whether the build target was set to auto or completely disabled through configuration.

  • Source/autotools/ReadCommandLineArguments.m4: Switch the default Wayland target status to 'auto', meaning

it will be disabled if the GTK+ dependency is not found.

  • Source/autotools/Versions.m4: Require GTK+ 3.9.14 for the Wayland target only.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r156271 r156328  
     12013-09-24  Zan Dobersek  <zdobersek@igalia.com>
     2
     3        [GTK] Enable the Wayland target if GTK+ dependency is found
     4        https://bugs.webkit.org/show_bug.cgi?id=121704
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        The Wayland target should be enabled by default if the GTK+ dependency is of version 3.9.14 or later.
     9
     10        * Source/autotools/FindDependencies.m4: If the Wayland target was not strictly disabled, the GTK+ dependency
     11        is tested if it can provide the Wayland GDK backend, and that the version of that backend matches the version
     12        of the master GTK+ dependency for which we already tested. If found, the target is enabled, otherwise we either
     13        warn or error out, depending on whether the build target was set to auto or completely disabled through configuration.
     14        * Source/autotools/ReadCommandLineArguments.m4: Switch the default Wayland target status to 'auto', meaning
     15        it will be disabled if the GTK+ dependency is not found.
     16        * Source/autotools/Versions.m4: Require GTK+ 3.9.14 for the Wayland target only.
     17
    1182013-09-23  Zan Dobersek  <zdobersek@igalia.com>
    219
  • trunk/Source/autotools/FindDependencies.m4

    r156271 r156328  
    202202fi
    203203
    204 if test "$enable_wayland_target" = "yes"; then
    205     # The GTK+ Wayland target dependency should match the version of the master GTK+ dependency.
    206     PKG_CHECK_MODULES(GTK_WAYLAND, gtk+-wayland-$GTK_API_VERSION = $GTK_ACTUAL_VERSION)
     204if test "$enable_wayland_target" != "no"; then
     205     # The GTK+ Wayland target dependency should match the version of the master GTK+ dependency.
     206    PKG_CHECK_MODULES([GTK_WAYLAND], [
     207        gtk+-wayland-$GTK_API_VERSION = $GTK_ACTUAL_VERSION
     208        gtk+-wayland-$GTK_API_VERSION >= gtk3_wayland_required_version
     209    ], [enable_wayland_target=yes], [
     210        if test "$enable_wayland_target" = "yes"; then
     211            AC_MSG_ERROR([GTK+ Wayland dependency (gtk+-wayland-$GTK_API_VERSION >= gtk3_wayland_required_version) not found.])
     212        else
     213            AC_MSG_WARN([GTK+ Wayland dependency (gtk+-wayland-$GTK_API_VERSION >= gtk3_wayland_required_version) not found, disabling the Wayland target.])
     214            enable_wayland_target=no
     215        fi
     216    ])
    207217fi
    208218
  • trunk/Source/autotools/ReadCommandLineArguments.m4

    r156271 r156328  
    5959AC_MSG_RESULT([$with_gtk])
    6060
    61 default_build_targets="x11=yes wayland=no win32=no quartz=no directfb=no"
     61default_build_targets="x11=yes wayland=auto win32=no quartz=no directfb=no"
    6262build_targets=""
    6363
  • trunk/Source/autotools/Versions.m4

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