1 # -------------------------------------------------------------------
2 # This file contains shared rules used both when building WTF itself
3 # and for targets that depend in some way on WTF.
5 # See 'Tools/qmake/README' for an overview of the build system
6 # -------------------------------------------------------------------
10 SOURCE_DIR = $${ROOT_WEBKIT_DIR}/Source/WTF
11 OLD_SOURCE_DIR = $${ROOT_WEBKIT_DIR}/Source/JavaScriptCore/wtf
16 $$OLD_SOURCE_DIR/gobject \
18 $$OLD_SOURCE_DIR/unicode
22 # Mac OS does ship libicu but not the associated header files.
23 # Therefore WebKit provides adequate header files.
24 INCLUDEPATH += $${ROOT_WEBKIT_DIR}/Source/WTF/icu
27 contains(QT_CONFIG,icu) {
28 unix: LIBS += $$system(icu-config --ldflags-searchpath --ldflags-libsonly)
31 error("To build QtWebKit with Qt 5 you need ICU")
37 !haveQt(5): error("To build QtWebKit+V8 you need to use Qt 5")
38 DEFINES *= WTF_USE_V8=1
39 INCLUDEPATH += $${ROOT_WEBKIT_DIR}/Source/WebKit/qt/v8/ForwardingHeaders
40 QT += v8-private declarative
43 linux-*:!contains(DEFINES, USE_QTMULTIMEDIA=1) {
44 !contains(QT_CONFIG, no-pkg-config):system(pkg-config --exists glib-2.0 gio-2.0 gstreamer-0.10): {
45 DEFINES += ENABLE_GLIB_SUPPORT=1
46 PKGCONFIG += glib-2.0 gio-2.0