summaryrefslogtreecommitdiffstats
path: root/meta/packages/webkit/files/WebKit.pri
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openedhand.com>2008-01-30 21:12:28 +0000
committerMarcin Juszkiewicz <hrw@openedhand.com>2008-01-30 21:12:28 +0000
commit6324a8e01afdc7b19cc8b091503d78d8c75b0167 (patch)
tree6d4f7b0bca1651f74d4640a82b7aa0f76f7a6cfc /meta/packages/webkit/files/WebKit.pri
parent5d57d6e1b2d3fa8ad11f798803d5d6d49f9af1c0 (diff)
downloadpoky-6324a8e01afdc7b19cc8b091503d78d8c75b0167.tar.gz
webkit-gtk: merge with OE
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3639 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/webkit/files/WebKit.pri')
-rw-r--r--meta/packages/webkit/files/WebKit.pri50
1 files changed, 41 insertions, 9 deletions
diff --git a/meta/packages/webkit/files/WebKit.pri b/meta/packages/webkit/files/WebKit.pri
index 514023de57..640fa34174 100644
--- a/meta/packages/webkit/files/WebKit.pri
+++ b/meta/packages/webkit/files/WebKit.pri
@@ -11,12 +11,47 @@ qt-port:DEFINES += BUILDING_QT__=1
11qt-port:!building-libs { 11qt-port:!building-libs {
12 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR 12 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
13 LIBS += -lQtWebKit 13 LIBS += -lQtWebKit
14 DEPENDPATH += $$PWD/WebKit/qt/Api
15}
16
17gtk-port:!building-libs {
18 QMAKE_LIBDIR = $$OUTPUT_DIR/lib $$QMAKE_LIBDIR
19 LIBS += -lWebKitGtk
20 DEPENDPATH += $$PWD/WebKit/gtk/WebView $$PWD/WebKit/gtk/WebCoreSupport
21}
22
23gtk-port {
24 CONFIG += link_pkgconfig
25
26 DEFINES += BUILDING_CAIRO__=1 BUILDING_GTK__=1
27
28 # We use FreeType directly with Cairo
29 PKGCONFIG += cairo-ft
30
31 directfb: PKGCONFIG += cairo-directfb gtk+-directfb-2.0
32 else: PKGCONFIG += cairo gtk+-2.0
33
34 # Set a CONFIG flag for the GTK+ target (x11, quartz, win32, directfb)
35 CONFIG += $$system(pkg-config --variable=target $$PKGCONFIG)
36
37 # We use the curl http backend on all platforms
38 PKGCONFIG += libcurl
39
40 LIBS += -lWebKitGtk -ljpeg -lpng
41
42 QMAKE_CXXFLAGS += $$system(icu-config --cppflags)
43 QMAKE_LIBS += $$system(icu-config --ldflags)
44
45 # This set of warnings is borrowed from the Mac build
46 QMAKE_CXXFLAGS += -Wall -W -Wcast-align -Wchar-subscripts -Wformat-security -Wmissing-format-attribute -Wpointer-arith -Wwrite-strings -Wno-format-y2k -Wno-unused-parameter -Wundef
47
48 # These flags are based on optimization experience from the Mac port:
49 # Helps code size significantly and speed a little
50 QMAKE_CXXFLAGS += -fno-exceptions -fno-rtti
51
52 DEPENDPATH += $$PWD/JavaScriptCore/API
53 INCLUDEPATH += $$PWD
14} 54}
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 55
21DEFINES += USE_SYSTEM_MALLOC 56DEFINES += USE_SYSTEM_MALLOC
22CONFIG(release) { 57CONFIG(release) {
@@ -32,11 +67,8 @@ gtk-port:INCLUDEPATH += \
32 $$BASE_DIR/WebCore/platform/graphics/cairo \ 67 $$BASE_DIR/WebCore/platform/graphics/cairo \
33 $$BASE_DIR/WebCore/loader/gtk \ 68 $$BASE_DIR/WebCore/loader/gtk \
34 $$BASE_DIR/WebCore/page/gtk \ 69 $$BASE_DIR/WebCore/page/gtk \
35 $$BASE_DIR/WebKit/gtk/Api \
36 $$BASE_DIR/WebKit/gtk/WebView \ 70 $$BASE_DIR/WebKit/gtk/WebView \
37 $$BASE_DIR/WebKit/gtk/WebCoreSupport \ 71 $$BASE_DIR/WebKit/gtk/WebCoreSupport
38 $$BASE_DIR/JavaScriptCore/ForwardingHeaders \
39 $$BASE_DIR
40INCLUDEPATH += \ 72INCLUDEPATH += \
41 $$BASE_DIR/JavaScriptCore/ \ 73 $$BASE_DIR/JavaScriptCore/ \
42 $$BASE_DIR/JavaScriptCore/kjs \ 74 $$BASE_DIR/JavaScriptCore/kjs \