2007-07-22 Holger Hans Peter Freyther <zecke@selfish.org>
[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:LIBS += -L$$OUTPUT_DIR/lib -lQtWebKit
12 gdk-port:CONFIG += link_pkgconfig
13 gdk-port:PKGCONFIG += cairo gdk-2.0 gtk+-2.0 libcurl
14 gdk-port:DEFINES += BUILDING_GDK__=1 BUILDING_CAIRO__
15 gdk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGdk $$system(icu-config --ldflags) -ljpeg -lpng
16 gdk-port:QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
17
18 DEFINES += USE_SYSTEM_MALLOC
19 CONFIG(release) {
20     DEFINES += NDEBUG
21 }
22
23 BASE_DIR = $$PWD
24 qt-port:INCLUDEPATH += \
25     $$PWD/WebKitQt/Api
26 gdk-port:INCLUDEPATH += \
27     $$BASE_DIR/WebCore/platform/gdk \
28     $$BASE_DIR/WebCore/platform/network/curl \
29     $$BASE_DIR/WebCore/platform/graphics/cairo \
30     $$BASE_DIR/WebCore/loader/gdk \
31     $$BASE_DIR/WebCore/page/gdk \
32     $$BASE_DIR/WebKit/gtk/Api \
33     $$BASE_DIR/WebKit/gtk/WebCoreSupport
34 INCLUDEPATH += \
35     $$BASE_DIR/JavaScriptCore/ \
36     $$BASE_DIR/JavaScriptCore/kjs \
37     $$BASE_DIR/JavaScriptCore/bindings \
38     $$BASE_DIR/JavaScriptCore/bindings/c \
39     $$BASE_DIR/JavaScriptCore/wtf \
40     $$BASE_DIR/JavaScriptCore/ForwardingHeaders \
41     $$BASE_DIR/WebCore \
42     $$BASE_DIR/WebCore/ForwardingHeaders \
43     $$BASE_DIR/WebCore/platform \
44     $$BASE_DIR/WebCore/platform/network \
45     $$BASE_DIR/WebCore/platform/graphics \
46     $$BASE_DIR/WebCore/loader \
47     $$BASE_DIR/WebCore/page \
48     $$BASE_DIR/WebCore/css \
49     $$BASE_DIR/WebCore/dom \
50     $$BASE_DIR/WebCore/bridge \
51     $$BASE_DIR/WebCore/editing \
52     $$BASE_DIR/WebCore/rendering \
53     $$BASE_DIR/WebCore/history \
54     $$BASE_DIR/WebCore/xml \
55     $$BASE_DIR/WebCore/html
56
57
58 macx {
59         INCLUDEPATH += /usr/include/libxml2
60         LIBS += -lxml2 -lxslt
61 }