diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/WebCore/ChangeLog | 18 | ||||
-rw-r--r-- | Source/WebCore/Target.pri | 2 | ||||
-rw-r--r-- | Source/WebCore/WebCore.pri | 22 |
3 files changed, 30 insertions, 12 deletions
diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index d812c3aba..26ecec61b 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,21 @@ +2012-12-12 Simon Hausmann <simon.hausmann@digia.com> + + [Qt] Fix linkage against SQLite + https://bugs.webkit.org/show_bug.cgi?id=104781 + + Reviewed by Csaba Osztrogonác. + + Detect SQLite either through pkg-config, from the SQLITE3SRCDIR + environment variable or from qtbase via a qt5.git build. Bail out early + with an error message if neither option applies. + + This removes the usage of $$QT.core.sources and the dependency on Qt's + system-sqlite configure setting. We should always favour a system + library over a copy in Qt. + + * Target.pri: + * WebCore.pri: + 2012-12-11 Zeno Albisser <zeno@webkit.org> [Qt][Mac] Fix transparency for WebGL content. diff --git a/Source/WebCore/Target.pri b/Source/WebCore/Target.pri index 4535a46bf..fc9a8959e 100644 --- a/Source/WebCore/Target.pri +++ b/Source/WebCore/Target.pri @@ -4054,7 +4054,7 @@ use?(WEBP) { SOURCES += platform/image-decoders/webp/WEBPImageDecoder.cpp } -!system-sqlite:exists( $${SQLITE3SRCDIR}/sqlite3.c ) { +!have?(sqlite3):exists($${SQLITE3SRCDIR}/sqlite3.c) { # Build sqlite3 into WebCore from source # somewhat copied from $$QT_SOURCE_TREE/src/plugins/sqldrivers/sqlite/sqlite.pro SOURCES += $${SQLITE3SRCDIR}/sqlite3.c diff --git a/Source/WebCore/WebCore.pri b/Source/WebCore/WebCore.pri index 5192a1a51..d0dd7cf71 100644 --- a/Source/WebCore/WebCore.pri +++ b/Source/WebCore/WebCore.pri @@ -231,18 +231,18 @@ use?(GRAPHICS_SURFACE) { } } -SQLITE3SRCDIR = $$(SQLITE3SRCDIR) -isEmpty(SQLITE3SRCDIR) { - isEmpty(_QMAKE_SUPER_CACHE_): \ - error("Set $SQLITE3SRCDIR or build WebKit under qt5.git.") - SQLITE3SRCDIR = ../../../qtbase/src/3rdparty/sqlite/ -} -!system-sqlite:exists( $${SQLITE3SRCDIR}/sqlite3.c ) { - INCLUDEPATH += $${SQLITE3SRCDIR} - DEFINES += SQLITE_CORE SQLITE_OMIT_LOAD_EXTENSION SQLITE_OMIT_COMPLETE +have?(sqlite3) { + PKGCONFIG += sqlite3 } else { - INCLUDEPATH += $${SQLITE3SRCDIR} - LIBS += -lsqlite3 + SQLITE3SRCDIR = $$(SQLITE3SRCDIR) + isEmpty(SQLITE3SRCDIR): SQLITE3SRCDIR = ../../../qtbase/src/3rdparty/sqlite/ + exists($${SQLITE3SRCDIR}/sqlite3.c) { + INCLUDEPATH += $${SQLITE3SRCDIR} + DEFINES += SQLITE_CORE SQLITE_OMIT_LOAD_EXTENSION SQLITE_OMIT_COMPLETE + } else { + INCLUDEPATH += $${SQLITE3SRCDIR} + LIBS += -lsqlite3 + } } use?(libjpeg): LIBS += -ljpeg |