forked from qt-creator/qt-creator
add groundwork for supporting -t and -tp qmake options
Change-Id: Ibb1aafdaeaf8ee53bb11436d2f2ca8ccbf0ffc3c Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
This commit is contained in:
@@ -816,8 +816,22 @@ void QMakeEvaluator::visitProVariable(
|
||||
void QMakeEvaluator::setTemplate()
|
||||
{
|
||||
ProStringList &values = valuesRef(statics.strTEMPLATE);
|
||||
if (values.isEmpty())
|
||||
values.append(ProString("app", NoHash));
|
||||
if (!m_option->user_template.isEmpty()) {
|
||||
// Don't allow override
|
||||
values = ProStringList(ProString(m_option->user_template, NoHash));
|
||||
} else {
|
||||
if (values.isEmpty())
|
||||
values.append(ProString("app", NoHash));
|
||||
else
|
||||
values.erase(values.begin() + 1, values.end());
|
||||
}
|
||||
if (!m_option->user_template_prefix.isEmpty()) {
|
||||
QString val = values.first().toQString(m_tmp1);
|
||||
if (!val.startsWith(m_option->user_template_prefix)) {
|
||||
val.prepend(m_option->user_template_prefix);
|
||||
values = ProStringList(ProString(val, NoHash));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void QMakeEvaluator::loadDefaults()
|
||||
|
||||
Reference in New Issue
Block a user