make it possible to pass configure zlib lib name
Change-Id: I82fde11436261dab51393b35dfbf2a753df58ec9 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>bb10
parent
07a978d3d4
commit
17c89d157a
|
|
@ -1,7 +1,10 @@
|
|||
# zlib dependency satisfied by bundled 3rd party zlib or system zlib
|
||||
contains(QT_CONFIG, system-zlib) {
|
||||
if(unix|win32-g++*):LIBS_PRIVATE += -lz
|
||||
else: LIBS += zdll.lib
|
||||
else {
|
||||
isEmpty(ZLIB_LIBS): LIBS += zdll.lib
|
||||
else: LIBS += $$ZLIB_LIBS
|
||||
}
|
||||
} else {
|
||||
INCLUDEPATH += $$PWD/zlib
|
||||
}
|
||||
|
|
|
|||
|
|
@ -968,6 +968,8 @@ void Configure::parseCmdLine()
|
|||
dbusPath = QDir::fromNativeSeparators(configCmdLine.at(i));
|
||||
} else if (configCmdLine.at(i).startsWith("MYSQL_PATH=")) {
|
||||
mysqlPath = QDir::fromNativeSeparators(configCmdLine.at(i));
|
||||
} else if (configCmdLine.at(i).startsWith("ZLIB_LIBS=")) {
|
||||
zlibLibs = QDir::fromNativeSeparators(configCmdLine.at(i));
|
||||
}
|
||||
|
||||
else if ((configCmdLine.at(i) == "-override-version") || (configCmdLine.at(i) == "-version-override")){
|
||||
|
|
@ -2563,9 +2565,10 @@ void Configure::generateOutputVars()
|
|||
qmakeVars += dbusPath;
|
||||
if (dictionary[ "SQL_MYSQL" ] != "no" && !mysqlPath.isEmpty())
|
||||
qmakeVars += mysqlPath;
|
||||
|
||||
if (!psqlLibs.isEmpty())
|
||||
qmakeVars += QString("QT_LFLAGS_PSQL=") + psqlLibs.section("=", 1);
|
||||
if (!zlibLibs.isEmpty())
|
||||
qmakeVars += zlibLibs;
|
||||
|
||||
{
|
||||
QStringList lflagsTDS;
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ private:
|
|||
QString dbusPath;
|
||||
QString mysqlPath;
|
||||
QString psqlLibs;
|
||||
QString zlibLibs;
|
||||
QString sybase;
|
||||
QString sybaseLibs;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue