Commit 2c1c89fa authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Oswald Buddenhagen
Browse files

Qt4PM: Parse object extension and objects dir



Task-number: QTCREATORBUG-106

Change-Id: I01682bbcf19dbe26cc8325fa9ed5999b7f2fe15e
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@nokia.com>
parent 70bda7c3
......@@ -1424,6 +1424,25 @@ QStringList Qt4ProFileNode::symbianCapabilities() const
return result;
}
QString Qt4ProFileNode::objectExtension() const
{
if (m_varValues[ObjectExt].isEmpty()) {
#ifdef Q_OS_WIN
return QLatin1String(".obj");
#else
return QLatin1String(".o");
#endif
}
return m_varValues[ObjectExt].first();
}
QString Qt4ProFileNode::objectsDirectory() const
{
if (m_varValues[ObjectsDir].isEmpty())
return buildDir();
return m_varValues[ObjectsDir].first();
}
QByteArray Qt4ProFileNode::cxxDefines() const
{
QByteArray result;
......@@ -1883,6 +1902,8 @@ void Qt4ProFileNode::applyEvaluate(EvalResult evalResult, bool async)
newVarValues[Makefile] = m_readerExact->values(QLatin1String("MAKEFILE"));
newVarValues[SymbianCapabilities] = m_readerExact->values(QLatin1String("TARGET.CAPABILITY"));
newVarValues[QtVar] = m_readerExact->values(QLatin1String("QT"));
newVarValues[ObjectExt] = m_readerExact->values(QLatin1String("QMAKE_EXT_OBJ"));
newVarValues[ObjectsDir] = m_readerExact->values(QLatin1String("OBJECTS_DIR"));
m_isDeployable = false;
if (m_projectType == ApplicationTemplate) {
......
......@@ -95,7 +95,9 @@ enum Qt4Variable {
QtVar,
QmlImportPathVar,
Makefile,
SymbianCapabilities
SymbianCapabilities,
ObjectExt,
ObjectsDir
};
// Import base classes into namespace
......@@ -358,6 +360,8 @@ public:
QString makefile() const;
QStringList symbianCapabilities() const;
QString objectExtension() const;
QString objectsDirectory() const;
QByteArray cxxDefines() const;
bool isDeployable() const;
QString resolvedMkspecPath() const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment