2010-10-06 Balazs Kelemen <kbalazs@webkit.org>
[WebKit-https.git] / WebKitTools / WebKitTestRunner / qt / WebKitTestRunner.pro
1 TARGET = WebKitTestRunner
2 CONFIG -= app_bundle
3
4 BASEDIR = $$PWD/../
5 isEmpty(OUTPUT_DIR): OUTPUT_DIR = ../../..
6
7 include(../../../WebKit.pri)
8
9 !CONFIG(release, debug|release) {
10     OBJECTS_DIR = obj/debug
11 } else { # Release
12     OBJECTS_DIR = obj/release
13 }
14
15 DEFINES += USE_SYSTEM_MALLOC
16
17 INCLUDEPATH += \
18     $$BASEDIR \
19     $$BASEDIR/../../JavaScriptCore \
20     $$BASEDIR/../../WebKit2 \
21     $$BASEDIR/../../WebKit2/Shared \
22
23 INCLUDEPATH += \
24     $$OUTPUT_DIR/include \
25
26
27 DESTDIR = $$OUTPUT_DIR/bin
28
29 unix:!mac {
30     CONFIG += link_pkgconfig
31     PKGCONFIG += fontconfig
32 }
33
34 QT = core gui network
35
36 HEADERS = \
37     $$BASEDIR/PlatformWebView.h \
38     $$BASEDIR/StringFunctions.h \
39     $$BASEDIR/TestController.h \
40     $$BASEDIR/TestInvocation.h
41
42 SOURCES = \
43     main.cpp \
44     PlatformWebViewQt.cpp \
45     TestControllerQt.cpp \
46     $$BASEDIR/TestController.cpp \
47     $$BASEDIR/TestInvocation.cpp \
48
49 PREFIX_HEADER = $$BASEDIR/WebKitTestRunnerPrefix.h
50 QMAKE_CXXFLAGS += "-include $$PREFIX_HEADER"
51
52 linux-* {
53     # From Creator's src/rpath.pri:
54     # Do the rpath by hand since it's not possible to use ORIGIN in QMAKE_RPATHDIR
55     # this expands to $ORIGIN (after qmake and make), it does NOT read a qmake var.
56     QMAKE_RPATHDIR = \$\$ORIGIN/../lib $$QMAKE_RPATHDIR
57     MY_RPATH = $$join(QMAKE_RPATHDIR, ":")
58
59     QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${MY_RPATH}\'
60     QMAKE_RPATHDIR =
61 } else {
62     QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR
63 }
64
65 include(../../../JavaScriptCore/JavaScriptCore.pri)
66 addJavaScriptCoreLib(../../../JavaScriptCore)