2007-07-14 Mark Rowe <mrowe@apple.com>
[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 INCLUDEPATH += \
33     $$BASE_DIR/JavaScriptCore/ \
34     $$BASE_DIR/JavaScriptCore/kjs \
35     $$BASE_DIR/JavaScriptCore/bindings \
36     $$BASE_DIR/JavaScriptCore/bindings/c \
37     $$BASE_DIR/JavaScriptCore/wtf \
38     $$BASE_DIR/JavaScriptCore/ForwardingHeaders \
39     $$BASE_DIR/WebCore \
40     $$BASE_DIR/WebCore/ForwardingHeaders \
41     $$BASE_DIR/WebCore/platform \
42     $$BASE_DIR/WebCore/platform/network \
43     $$BASE_DIR/WebCore/platform/graphics \
44     $$BASE_DIR/WebCore/loader \
45     $$BASE_DIR/WebCore/page \
46     $$BASE_DIR/WebCore/css \
47     $$BASE_DIR/WebCore/dom \
48     $$BASE_DIR/WebCore/bridge \
49     $$BASE_DIR/WebCore/editing \
50     $$BASE_DIR/WebCore/rendering \
51     $$BASE_DIR/WebCore/history \
52     $$BASE_DIR/WebCore/xml \
53     $$BASE_DIR/WebCore/html
54
55
56 macx {
57         INCLUDEPATH += /usr/include/libxml2
58         LIBS += -lxml2 -lxslt
59 }