Ensure QtLauncher and DumpRenderTree are linked against the uninstalled QtWebKit...
[WebKit-https.git] / WebKit.pri
1 # Include file to make it easy to include WebKit into Qt projects
2
3
4 isEmpty(OUTPUT_DIR) {
5     CONFIG(release):OUTPUT_DIR=$$PWD/WebKitBuild/Release
6     CONFIG(debug):OUTPUT_DIR=$$PWD/WebKitBuild/Debug
7 }
8
9 !gdk-port:CONFIG += qt-port
10 qt-port:DEFINES += BUILDING_QT__=1
11 qt-port:!building-libs {
12     QMAKE_LFLAGS = -L$$OUTPUT_DIR/lib $$QMAKE_LFLAGS
13     LIBS += -lQtWebKit
14 }
15 gdk-port:CONFIG += link_pkgconfig
16 gdk-port:PKGCONFIG += cairo gdk-2.0 gtk+-2.0 libcurl
17 gdk-port:DEFINES += BUILDING_GDK__=1 BUILDING_CAIRO__
18 gdk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGdk $$system(icu-config --ldflags) -ljpeg -lpng
19 gdk-port:QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
20
21 DEFINES += USE_SYSTEM_MALLOC
22 CONFIG(release) {
23     DEFINES += NDEBUG
24 }
25
26 BASE_DIR = $$PWD
27 qt-port:INCLUDEPATH += \
28     $$PWD/WebKitQt/Api
29 gdk-port:INCLUDEPATH += \
30     $$BASE_DIR/WebCore/platform/gdk \
31     $$BASE_DIR/WebCore/platform/network/curl \
32     $$BASE_DIR/WebCore/platform/graphics/cairo \
33     $$BASE_DIR/WebCore/loader/gdk \
34     $$BASE_DIR/WebCore/page/gdk \
35     $$BASE_DIR/WebKit/gtk/Api \
36     $$BASE_DIR/WebKit/gtk/WebCoreSupport
37 INCLUDEPATH += \
38     $$BASE_DIR/JavaScriptCore/ \
39     $$BASE_DIR/JavaScriptCore/kjs \
40     $$BASE_DIR/JavaScriptCore/bindings \
41     $$BASE_DIR/JavaScriptCore/bindings/c \
42     $$BASE_DIR/JavaScriptCore/wtf \
43     $$BASE_DIR/JavaScriptCore/ForwardingHeaders \
44     $$BASE_DIR/WebCore \
45     $$BASE_DIR/WebCore/ForwardingHeaders \
46     $$BASE_DIR/WebCore/platform \
47     $$BASE_DIR/WebCore/platform/network \
48     $$BASE_DIR/WebCore/platform/graphics \
49     $$BASE_DIR/WebCore/loader \
50     $$BASE_DIR/WebCore/page \
51     $$BASE_DIR/WebCore/css \
52     $$BASE_DIR/WebCore/dom \
53     $$BASE_DIR/WebCore/bridge \
54     $$BASE_DIR/WebCore/editing \
55     $$BASE_DIR/WebCore/rendering \
56     $$BASE_DIR/WebCore/history \
57     $$BASE_DIR/WebCore/xml \
58     $$BASE_DIR/WebCore/html
59
60
61 macx {
62         INCLUDEPATH += /usr/include/libxml2
63         LIBS += -lxml2 -lxslt
64 }