forked from qt-creator/qt-creator
Code deduplication.
The 'include(deployment.pri)' is now removed in a central place.
This commit is contained in:
@@ -280,6 +280,8 @@ QByteArray AbstractMobileApp::generateProFile(QString *errorMessage) const
|
|||||||
}
|
}
|
||||||
if (foldersCount > 0)
|
if (foldersCount > 0)
|
||||||
out << "DEPLOYMENTFOLDERS = " << folders.join(QLatin1String(" ")) << endl;
|
out << "DEPLOYMENTFOLDERS = " << folders.join(QLatin1String(" ")) << endl;
|
||||||
|
} else if (line.contains(QLatin1String("# INCLUDE_DEPLOYMENT_PRI"))) {
|
||||||
|
in.readLine(); // eats 'include(deployment.pri)'
|
||||||
} else {
|
} else {
|
||||||
handleCurrentProFileTemplateLine(line, in, out, commentOutNextLine);
|
handleCurrentProFileTemplateLine(line, in, out, commentOutNextLine);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,13 +149,11 @@ void Html5App::handleCurrentProFileTemplateLine(const QString &line,
|
|||||||
QTextStream &proFileTemplate, QTextStream &proFile,
|
QTextStream &proFileTemplate, QTextStream &proFile,
|
||||||
bool &commentOutNextLine) const
|
bool &commentOutNextLine) const
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(proFileTemplate)
|
||||||
Q_UNUSED(proFile)
|
Q_UNUSED(proFile)
|
||||||
if (line.contains(QLatin1String("# INCLUDE_DEPLOYMENT_PRI"))) {
|
if (line.contains(QLatin1String("# TOUCH_OPTIMIZED_NAVIGATION")))
|
||||||
proFileTemplate.readLine(); // eats 'include(deployment.pri)'
|
|
||||||
} else if (line.contains(QLatin1String("# TOUCH_OPTIMIZED_NAVIGATION"))) {
|
|
||||||
commentOutNextLine = !m_touchOptimizedNavigationEnabled;
|
commentOutNextLine = !m_touchOptimizedNavigationEnabled;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef CREATORLESSTEST
|
#ifndef CREATORLESSTEST
|
||||||
Core::GeneratedFiles Html5App::generateFiles(QString *errorMessage) const
|
Core::GeneratedFiles Html5App::generateFiles(QString *errorMessage) const
|
||||||
|
|||||||
@@ -243,8 +243,6 @@ void QtQuickApp::handleCurrentProFileTemplateLine(const QString &line,
|
|||||||
}
|
}
|
||||||
|
|
||||||
proFile << endl;
|
proFile << endl;
|
||||||
} else if (line.contains(QLatin1String("# INCLUDE_DEPLOYMENT_PRI"))) {
|
|
||||||
proFileTemplate.readLine(); // eats 'include(deployment.pri)'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user