Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Qt] Use correct define names for HAVE(FOO) style optional dependencies
Reviewed by Simon Hausmann.

Canonical link: https://commits.webkit.org/97525@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@109887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
torarnv committed Mar 6, 2012
1 parent 41c7326 commit 7f2b524
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 11 deletions.
13 changes: 13 additions & 0 deletions Tools/ChangeLog
@@ -1,3 +1,16 @@
2012-03-06 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>

[Qt] Use correct define names for HAVE(FOO) style optional dependencies

Reviewed by Simon Hausmann.

* DumpRenderTree/qt/DumpRenderTree.pro:
* DumpRenderTree/qt/QtInitializeTestFonts.cpp:
(WebKit::initializeTestFonts):
* QtTestBrowser/QtTestBrowser.pro:
* WebKitTestRunner/InjectedBundle/Target.pri:
* qmake/mkspecs/features/features.prf:

2012-03-06 Kristóf Kosztyó <kkristof@inf.u-szeged.hu>

[Qt] Create EWS to build WebKit2
Expand Down
2 changes: 1 addition & 1 deletion Tools/DumpRenderTree/qt/DumpRenderTree.pro
Expand Up @@ -23,7 +23,7 @@ QT = core gui network testlib
macx: QT += xml
haveQt(5): QT += widgets printsupport

contains(DEFINES, HAVE_FONTCONFIG=1): PKGCONFIG += fontconfig
contains(DEFINES, WTF_HAVE_FONTCONFIG=1): PKGCONFIG += fontconfig

HEADERS += \
$$PWD/../WorkQueue.h \
Expand Down
6 changes: 4 additions & 2 deletions Tools/DumpRenderTree/qt/QtInitializeTestFonts.cpp
Expand Up @@ -26,9 +26,11 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include "config.h"

#include "QtInitializeTestFonts.h"

#if defined(HAVE_FONTCONFIG) && HAVE_FONTCONFIG
#if HAVE(FONTCONFIG)
#include <QByteArray>
#include <QDir>
#include <fontconfig/fontconfig.h>
Expand All @@ -38,7 +40,7 @@ namespace WebKit {

void initializeTestFonts()
{
#if defined(HAVE_FONTCONFIG) && HAVE_FONTCONFIG
#if HAVE(FONTCONFIG)
static int numFonts = -1;

FcInit();
Expand Down
2 changes: 1 addition & 1 deletion Tools/QtTestBrowser/QtTestBrowser.pro
Expand Up @@ -50,7 +50,7 @@ QT += network
macx:QT += xml
haveQt(5): QT += printsupport widgets

contains(DEFINES, HAVE_FONTCONFIG=1): PKGCONFIG += fontconfig
contains(DEFINES, WTF_HAVE_FONTCONFIG=1): PKGCONFIG += fontconfig

contains(QT_CONFIG, opengl) {
QT += opengl
Expand Down
2 changes: 1 addition & 1 deletion Tools/WebKitTestRunner/InjectedBundle/Target.pri
Expand Up @@ -58,7 +58,7 @@ WEBKIT += wtf javascriptcore webcore

CONFIG += plugin qtwebkit rpath

contains(DEFINES, HAVE_FONTCONFIG=1): PKGCONFIG += fontconfig
contains(DEFINES, WTF_HAVE_FONTCONFIG=1): PKGCONFIG += fontconfig

INCLUDEPATH += \
$$PWD/.. \
Expand Down
16 changes: 10 additions & 6 deletions Tools/qmake/mkspecs/features/features.prf
Expand Up @@ -46,11 +46,15 @@ isEmpty(HAVE_QRAWFONT) {
}

# We need fontconfig to set up the test fonts for DumpRenderTree and WebKitTestRunner.
haveQt(5):contains(config_test_fontconfig, yes):!mac {
DEFINES += HAVE_FONTCONFIG=1
}
haveQt(4):unix:!mac:!embedded {
DEFINES += HAVE_FONTCONFIG=1
haveQt(5) {
contains(config_test_fontconfig, yes):!mac {
DEFINES += WTF_HAVE_FONTCONFIG=1
}
} else {
# Qt 4
unix:!mac:!embedded {
DEFINES += WTF_HAVE_FONTCONFIG=1
}
}

# Feature defines: for web-facing features only
Expand Down Expand Up @@ -136,7 +140,7 @@ haveQt(4):unix:!mac:!embedded {
}

# QStyle detection
haveQt(4)|!isEmpty(QT.widgets.name): DEFINES += HAVE_QSTYLE=1
haveQt(4)|!isEmpty(QT.widgets.name): DEFINES += WTF_HAVE_QSTYLE=1

# WebGL support
contains(QT_CONFIG, opengl):!win32-* {
Expand Down

0 comments on commit 7f2b524

Please sign in to comment.