Changeset 91771 in webkit


Ignore:
Timestamp:
Jul 26, 2011 12:14:38 PM (13 years ago)
Author:
alexis.menard@openbossa.org
Message:

[Qt] Disable video support on linux if the dependencies are not found.

If we can't find the necessary dependencies to build the GStreamer media player
we disable the video support. This is related to http://trac.webkit.org/changeset/91752.

Reviewed by Holger Freyther.

No new tests, it's a build fix.

  • features.pri:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r91770 r91771  
     12011-07-26  Alexis Menard  <alexis.menard@openbossa.org>
     2
     3        [Qt] Disable video support on linux if the dependencies are not found.
     4
     5        If we can't find the necessary dependencies to build the GStreamer media player
     6        we disable the video support. This is related to http://trac.webkit.org/changeset/91752.
     7
     8        Reviewed by Holger Freyther.
     9
     10        No new tests, it's a build fix.
     11
     12        * features.pri:
     13
    1142011-07-26  Evan Martin  <evan@chromium.org>
    215
  • trunk/Source/WebCore/features.pri

    r91752 r91771  
    191191        DEFINES -= WTF_USE_QTKIT=0
    192192    } else: linux-*:!contains(DEFINES, USE_QTMULTIMEDIA=1) {
    193         DEFINES -= ENABLE_VIDEO=0
    194         DEFINES += ENABLE_VIDEO=1
    195         DEFINES += WTF_USE_GSTREAMER=1
    196         DEFINES -= WTF_USE_GSTREAMER=0
     193        system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): {
     194            DEFINES -= ENABLE_VIDEO=0
     195            DEFINES += ENABLE_VIDEO=1
     196            DEFINES += WTF_USE_GSTREAMER=1
     197            DEFINES -= WTF_USE_GSTREAMER=0
     198        } else {
     199            message("Disabling video due the lack of GLib/Gio/GStreamer.")
     200            DEFINES -= ENABLE_VIDEO=1
     201            DEFINES += ENABLE_VIDEO=0
     202        }
    197203    } else: contains(MOBILITY_CONFIG, multimedia) {
    198204        DEFINES -= ENABLE_VIDEO=0
Note: See TracChangeset for help on using the changeset viewer.