Bugfix for Bug 96685
Vladimir Reshetnikov
zepplock at vova.org
Mon Jan 10 21:41:45 UTC 2005
I recently filed a bug#96685.
Now I have a fix for it.
The code in (./buildtools/custommakefiles) void
CustomProjectPart::populateProject()
should be:
---------------start code here --------------------
QApplication::setOverrideCursor(Qt::waitCursor);
QValueStack<QString> s;
int prefixlen = m_projectDirectory.length()+1;
s.push(m_projectDirectory);
QDir dir;
do {
dir.setPath(s.pop());
kdDebug(9025) << "Examining: " << dir.path() << endl;
const QFileInfoList *dirEntries = dir.entryInfoList();
if ( dirEntries )
{
QPtrListIterator<QFileInfo> it(*dirEntries);
for (; it.current(); ++it) {
QString fileName = it.current()->fileName();
QString path = it.current()->absFilePath();
if (fileName == "." || fileName == ".."){
continue;
}
if (it.current()->isDir()) {
kdDebug(9025) << "Pushing: " << path << endl;
s.push(path);
continue;
}
if ((!fileName.endsWith("~"))
&& ((fileName.endsWith(".java"))
|| (fileName.endsWith(".h"))
|| (fileName.endsWith(".H"))
|| (fileName.endsWith(".hh"))
|| (fileName.endsWith(".hxx"))
|| (fileName.endsWith(".hpp"))
|| (fileName.endsWith(".c"))
|| (fileName.endsWith(".C"))
|| (fileName.endsWith(".cc"))
|| (fileName.endsWith(".cpp"))
|| (fileName.endsWith(".c++"))
|| (fileName.endsWith(".cxx"))
||
(fileName.startsWith("Makefile")))) //Makefile, Makefile.am,
Makefile.in
{
kdDebug(9025) << "Adding: " << path << endl;
m_sourceFiles.append(path.mid(prefixlen));
}
}
}
} while (!s.isEmpty());
QApplication::restoreOverrideCursor();
---------------end code here --------------------
I'd like to be a contributor to KDevelop project. Let me know what's a
procedure. I have some ideas about improving CustomMakeFiles Wizard.
Vladimir Reshetnikov.
More information about the KDevelop-devel
mailing list