replace qmake_version() with a simple string literal
Change-Id: I12e715aab23e01267e8a1434a3a965276c1a6182 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
parent
8400896cfe
commit
1d999dadeb
@ -2241,7 +2241,7 @@ MakefileGenerator::writeHeader(QTextStream &t)
|
||||
{
|
||||
t << "#############################################################################" << endl;
|
||||
t << "# Makefile for building: " << escapeFilePath(var("TARGET")) << endl;
|
||||
t << "# Generated by qmake (" << qmake_version() << ") (Qt " << QT_VERSION_STR << ") on: ";
|
||||
t << "# Generated by qmake (" QMAKE_VERSION_STR ") (Qt " QT_VERSION_STR ") on: ";
|
||||
t << QDateTime::currentDateTime().toString() << endl;
|
||||
t << "# Project: " << fileFixify(project->projectFile()) << endl;
|
||||
t << "# Template: " << var("TEMPLATE") << endl;
|
||||
|
@ -345,7 +345,7 @@ bool
|
||||
ProjectGenerator::writeMakefile(QTextStream &t)
|
||||
{
|
||||
t << "######################################################################" << endl;
|
||||
t << "# Automatically generated by qmake (" << qmake_version() << ") " << QDateTime::currentDateTime().toString() << endl;
|
||||
t << "# Automatically generated by qmake (" QMAKE_VERSION_STR ") " << QDateTime::currentDateTime().toString() << endl;
|
||||
t << "######################################################################" << endl << endl;
|
||||
if (!Option::globals->precmds.isEmpty())
|
||||
t << Option::globals->precmds << endl;
|
||||
|
@ -1296,7 +1296,7 @@ UnixMakefileGenerator::writeLibtoolFile()
|
||||
|
||||
QTextStream t(&ft);
|
||||
t << "# " << lname << " - a libtool library file\n";
|
||||
t << "# Generated by qmake/libtool (" << qmake_version() << ") (Qt "
|
||||
t << "# Generated by qmake/libtool (" QMAKE_VERSION_STR ") (Qt "
|
||||
<< QT_VERSION_STR << ") on: " << QDateTime::currentDateTime().toString();
|
||||
t << "\n";
|
||||
|
||||
|
@ -222,7 +222,7 @@ Option::parseCommandLine(QStringList &args)
|
||||
fprintf(stdout,
|
||||
"QMake version %s\n"
|
||||
"Using Qt version %s in %s\n",
|
||||
qmake_version(), QT_VERSION_STR,
|
||||
QMAKE_VERSION_STR, QT_VERSION_STR,
|
||||
QLibraryInfo::location(QLibraryInfo::LibrariesPath).toLatin1().constData());
|
||||
#ifdef QMAKE_OPENSOURCE_VERSION
|
||||
fprintf(stdout, "QMake is Open Source software from Nokia Corporation and/or its subsidiary(-ies).\n");
|
||||
@ -560,21 +560,6 @@ Option::fixString(QString string, uchar flags)
|
||||
return string;
|
||||
}
|
||||
|
||||
const char *qmake_version()
|
||||
{
|
||||
static char *ret = NULL;
|
||||
if(ret)
|
||||
return ret;
|
||||
ret = (char *)malloc(15);
|
||||
qmakeAddCacheClear(qmakeFreeCacheClear, (void**)&ret);
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||
sprintf_s(ret, 15, "%d.%02d%c", QMAKE_VERSION_MAJOR, QMAKE_VERSION_MINOR, 'a' + QMAKE_VERSION_PATCH);
|
||||
#else
|
||||
sprintf(ret, "%d.%02d%c", QMAKE_VERSION_MAJOR, QMAKE_VERSION_MINOR, 'a' + QMAKE_VERSION_PATCH);
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
void debug_msg_internal(int level, const char *fmt, ...)
|
||||
{
|
||||
if(Option::debug_level < level)
|
||||
|
@ -53,10 +53,7 @@
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
#define QMAKE_VERSION_MAJOR 2
|
||||
#define QMAKE_VERSION_MINOR 1
|
||||
#define QMAKE_VERSION_PATCH 0
|
||||
const char *qmake_version();
|
||||
#define QMAKE_VERSION_STR "2.01a"
|
||||
|
||||
QString qmake_getpwd();
|
||||
bool qmake_setpwd(const QString &p);
|
||||
|
@ -85,7 +85,7 @@ QMakeProperty::QMakeProperty() : settings(0)
|
||||
}
|
||||
m_values[ProKey(name)] = val;
|
||||
}
|
||||
m_values["QMAKE_VERSION"] = ProString(qmake_version());
|
||||
m_values["QMAKE_VERSION"] = ProString(QMAKE_VERSION_STR);
|
||||
#ifdef QT_VERSION_STR
|
||||
m_values["QT_VERSION"] = ProString(QT_VERSION_STR);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user