2007-05-06 Erik Bunce <kde@bunce.us>
[WebKit-https.git] / WebKit.pri
1 # Include file to make it easy to include WebKit into Qt projects
2
3
4 isEmpty(OUTPUT_DIR):OUTPUT_DIR=$$PWD/WebKitBuild/Release
5
6 !gdk-port:CONFIG += qt-port
7 qt-port:DEFINES += BUILDING_QT__=1
8 qt-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitQt
9 gdk-port:CONFIG += link_pkgconfig
10 gdk-port:PKGCONFIG += cairo gdk-2.0 gtk+-2.0
11 gdk-port:DEFINES += BUILDING_GDK__=1 BUILDING_CAIRO__
12 gdk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGdk
13
14 DEFINES += USE_SYSTEM_MALLOC
15 CONFIG(release) {
16     DEFINES += NDEBUG
17 }
18
19 BASE_DIR = $$PWD
20 qt-port:INCLUDEPATH += \
21     $$PWD/WebKitQt/Api
22 gdk-port:INCLUDEPATH += \
23     $$BASE_DIR/WebCore/platform/gdk \
24     $$BASE_DIR/WebCore/platform/network/gdk \
25     $$BASE_DIR/WebCore/platform/graphics/cairo \
26     $$BASE_DIR/WebCore/loader/gdk \
27     $$BASE_DIR/WebCore/page/gdk
28 INCLUDEPATH += \
29     $$BASE_DIR/JavaScriptCore/ \
30     $$BASE_DIR/JavaScriptCore/kjs \
31     $$BASE_DIR/JavaScriptCore/bindings \
32     $$BASE_DIR/JavaScriptCore/bindings/c \
33     $$BASE_DIR/JavaScriptCore/wtf \
34     $$BASE_DIR/WebCore \
35     $$BASE_DIR/WebCore/ForwardingHeaders \
36     $$BASE_DIR/WebCore/platform \
37     $$BASE_DIR/WebCore/platform/network \
38     $$BASE_DIR/WebCore/platform/graphics \
39     $$BASE_DIR/WebCore/loader \
40     $$BASE_DIR/WebCore/page \
41     $$BASE_DIR/WebCore/css \
42     $$BASE_DIR/WebCore/dom \
43     $$BASE_DIR/WebCore/bridge \
44     $$BASE_DIR/WebCore/editing \
45     $$BASE_DIR/WebCore/rendering \
46     $$BASE_DIR/WebCore/history \
47     $$BASE_DIR/WebCore/xml \
48     $$BASE_DIR/WebCore/html
49
50
51 macx {
52         INCLUDEPATH += /usr/include/libxml2
53         LIBS += -lxml2 -lxslt
54 }