From: Rohan McGovern Date: Tue, 20 Sep 2011 22:26:20 +0000 (+1000) Subject: Fixed compile of QtHelp on mac when frameworks are in use X-Git-Tag: accepted/tizen/20131212.181521~457 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28d2e38c3e62aef3e5a9c6906aedb9aedda9b70f;p=platform%2Fupstream%2Fqttools.git Fixed compile of QtHelp on mac when frameworks are in use Removed the incorrect assumption that QtCLucene is never a framework. Note that this logic still doesn't match exactly what is in qtAddLibrary or qtAddModule in qt_functions.prf, therefore the build may still fail in some exotic setups. Change-Id: If032c0c4ac6031b5bb28033996a8773ecdb077e9 Reviewed-on: http://codereview.qt-project.org/5264 Reviewed-by: Qt Sanity Bot Reviewed-by: Toby Tomkins --- diff --git a/src/assistant/help/help.pro b/src/assistant/help/help.pro index 4bff944..76b4b94 100644 --- a/src/assistant/help/help.pro +++ b/src/assistant/help/help.pro @@ -17,15 +17,22 @@ HEADERS += qthelpversion.h DEFINES -= QT_ASCII_CAST_WARNINGS -qclucene = QtCLucene$${QT_LIBINFIX} -if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { - mac:qclucene = $${qclucene}_debug - win32:qclucene = $${qclucene}d +mac:CONFIG(qt_framework, qt_framework|qt_no_framework) { + qclucene = -framework QtCLucene$${QT_LIBINFIX} +} +else { + qclucene = QtCLucene$${QT_LIBINFIX} + if(!debug_and_release|build_pass):CONFIG(debug, debug|release) { + mac:qclucene = $${qclucene}_debug + win32:qclucene = $${qclucene}d + } + linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene + unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES += QtCore QtNetwork QtSql + qclucene = -l$$qclucene + LIBS_PRIVATE += -L$$QT.clucene.libs } -linux-lsb-g++:LIBS_PRIVATE += --lsb-shared-libs=$$qclucene -unix|win32-g++*:QMAKE_PKGCONFIG_REQUIRES += QtCore QtNetwork QtSql -LIBS_PRIVATE += -L$$QT.clucene.libs -l$$qclucene +LIBS_PRIVATE += $$qclucene RESOURCES += helpsystem.qrc SOURCES += qhelpenginecore.cpp \ qhelpengine.cpp \