Changeset 94075 in webkit


Ignore:
Timestamp:
Aug 30, 2011 6:57:37 AM (13 years ago)
Author:
Ademar Reis
Message:

[Qt] Do not unconditionally use pkg-config in .pro files
https://bugs.webkit.org/show_bug.cgi?id=67055

Reviewed by Andreas Kling.

Original patch from Rohan McGovern <rohan.mcgovern@nokia.com>

Using the first pkg-config in PATH is prone to errors when cross
compiling inside the Qt repository (using Qt's build-system).

This patch protect calls for pkg-config with
!contains(QT_CONFIG, no-pkg-config). no-pkg-config is added to
QT_CONFIG by Qt's 'configure' when cross-compiling on systems
without pkg-config.

The respective change in Qt's configure has been submited already.

No new tests as this is just a build change.

Source/JavaScriptCore:

  • wtf/wtf.pri: protect pkg-config calls

Source/WebCore:

  • features.pri: protect pkg-config calls
Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r94044 r94075  
     12011-08-30  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
     2
     3        [Qt] Do not unconditionally use pkg-config in .pro files
     4        https://bugs.webkit.org/show_bug.cgi?id=67055
     5
     6        Reviewed by Andreas Kling.
     7
     8        Original patch from Rohan McGovern <rohan.mcgovern@nokia.com>
     9
     10        Using the first pkg-config in PATH is prone to errors when cross
     11        compiling inside the Qt repository (using Qt's build-system).
     12
     13        This patch protect calls for pkg-config with
     14        !contains(QT_CONFIG, no-pkg-config). no-pkg-config is added to
     15        QT_CONFIG by Qt's 'configure' when cross-compiling on systems
     16        without pkg-config.
     17
     18        The respective change in Qt's configure has been submited already.
     19
     20        No new tests as this is just a build change.
     21
     22        * wtf/wtf.pri: protect pkg-config calls
     23
    1242011-08-29  Daniel Bates  <dbates@webkit.org>
    225
  • trunk/Source/JavaScriptCore/wtf/wtf.pri

    r91787 r94075  
    4343
    4444linux-*:!contains(DEFINES, USE_QTMULTIMEDIA=1) {
    45     system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): {
     45    !contains(QT_CONFIG, no-pkg-config):system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): {
    4646        DEFINES += ENABLE_GLIB_SUPPORT=1
    4747        PKGCONFIG += glib-2.0 gio-2.0
  • trunk/Source/WebCore/ChangeLog

    r94074 r94075  
     12011-08-30  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
     2
     3        [Qt] Do not unconditionally use pkg-config in .pro files
     4        https://bugs.webkit.org/show_bug.cgi?id=67055
     5
     6        Reviewed by Andreas Kling.
     7
     8        Original patch from Rohan McGovern <rohan.mcgovern@nokia.com>
     9
     10        Using the first pkg-config in PATH is prone to errors when cross
     11        compiling inside the Qt repository (using Qt's build-system).
     12
     13        This patch protect calls for pkg-config with
     14        !contains(QT_CONFIG, no-pkg-config). no-pkg-config is added to
     15        QT_CONFIG by Qt's 'configure' when cross-compiling on systems
     16        without pkg-config.
     17
     18        The respective change in Qt's configure has been submited already.
     19
     20        No new tests as this is just a build change.
     21
     22        * features.pri: protect pkg-config calls
     23
    1242011-08-30  Andreas Kling  <kling@webkit.org>
    225
  • trunk/Source/WebCore/features.pri

    r92830 r94075  
    197197        DEFINES -= WTF_USE_QTKIT=0
    198198    } else: linux-*:!contains(DEFINES, USE_QTMULTIMEDIA=1) {
    199         system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): {
     199        !contains(QT_CONFIG, no-pkg-config):system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): {
    200200            DEFINES -= ENABLE_VIDEO=0
    201201            DEFINES += ENABLE_VIDEO=1
Note: See TracChangeset for help on using the changeset viewer.