forked from qt-creator/qt-creator
AutotoolsPM: Do some cleanup
Change-Id: Ic6bfc288a6bbecae788eb730c365e07e7ea687f4 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -445,16 +445,16 @@ bool MakefileParser::maybeParseCPPFlag(const QString &term)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static QStringList extensions()
|
||||||
|
{
|
||||||
|
static const QStringList extList = {".c", ".cpp", ".cc", ".cxx", ".ccg"};
|
||||||
|
return extList;
|
||||||
|
}
|
||||||
|
|
||||||
void MakefileParser::addAllSources()
|
void MakefileParser::addAllSources()
|
||||||
{
|
{
|
||||||
QStringList extensions;
|
const QFileInfo info(m_makefile);
|
||||||
extensions << QLatin1String(".c")
|
m_outputData.m_sources.append(directorySources(info.absolutePath(), extensions()));
|
||||||
<< QLatin1String(".cpp")
|
|
||||||
<< QLatin1String(".cc")
|
|
||||||
<< QLatin1String(".cxx")
|
|
||||||
<< QLatin1String(".ccg");
|
|
||||||
QFileInfo info(m_makefile);
|
|
||||||
m_outputData.m_sources.append(directorySources(info.absolutePath(), extensions));
|
|
||||||
m_outputData.m_sources.removeDuplicates();
|
m_outputData.m_sources.removeDuplicates();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user