summaryrefslogtreecommitdiffstats
path: root/meta/packages/webkit/files/WebKit.pri
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/webkit/files/WebKit.pri')
-rw-r--r--meta/packages/webkit/files/WebKit.pri64
1 files changed, 64 insertions, 0 deletions
diff --git a/meta/packages/webkit/files/WebKit.pri b/meta/packages/webkit/files/WebKit.pri
new file mode 100644
index 0000000000..0c47afe7fd
--- /dev/null
+++ b/meta/packages/webkit/files/WebKit.pri
@@ -0,0 +1,64 @@
1# Include file to make it easy to include WebKit into Qt projects
2
3
4isEmpty(OUTPUT_DIR) {
5 CONFIG(release):OUTPUT_DIR=$$PWD/WebKitBuild/Release
6 CONFIG(debug):OUTPUT_DIR=$$PWD/WebKitBuild/Debug
7}
8
9!gtk-port:CONFIG += qt-port
10qt-port:DEFINES += BUILDING_QT__=1
11qt-port:!building-libs {
12 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
13 LIBS += -lQtWebKit
14}
15gtk-port:CONFIG += link_pkgconfig
16gtk-port:PKGCONFIG += cairo cairo-ft gdk-2.0 gtk+-2.0 libcurl
17gtk-port:DEFINES += BUILDING_GTK__=1 BUILDING_CAIRO__
18gtk-port:LIBS += -L$$OUTPUT_DIR/lib -lWebKitGtk $$system(icu-config --ldflags) -ljpeg -lpng
19gtk-port:QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
20
21DEFINES += USE_SYSTEM_MALLOC
22CONFIG(release) {
23 DEFINES += NDEBUG
24}
25
26BASE_DIR = $$PWD
27qt-port:INCLUDEPATH += \
28 $$PWD/WebKit/qt/Api
29gtk-port:INCLUDEPATH += \
30 $$BASE_DIR/WebCore/platform/gtk \
31 $$BASE_DIR/WebCore/platform/network/curl \
32 $$BASE_DIR/WebCore/platform/graphics/cairo \
33 $$BASE_DIR/WebCore/loader/gtk \
34 $$BASE_DIR/WebCore/page/gtk \
35 $$BASE_DIR/WebKit/gtk/Api \
36 $$BASE_DIR/WebKit/gtk/WebCoreSupport
37INCLUDEPATH += \
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
61macx {
62 INCLUDEPATH += /usr/include/libxml2
63 LIBS += -lxml2 -lxslt
64}