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