[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop-devel
Subject: Re: Automake behaviour question
From: raggi () cli ! di ! unipi ! it
Date: 2003-03-31 8:44:31
[Download RAW message or body]
Hi!
Scrive Alexander Dymo <cloudtemple@mksat.net>:
> Hello, I wonder why in autosubprojectview.cpp line 293 the
> following lines exists? Why are all available headers in dir
> automatically included for PROGRAMS targets in the list view?
>
> // TODO: only if in a c++ project
> kdDebug(9020) << "-------------> path = " << (item->path) << endl;
> QDir dir( item->path );
> sourceList += dir.entryList( "*.h;*.H;*.hh;*.hxx;*.hpp;*.tcc", QDir::Files
> );
i've added it, because, *for now*, cppsupportpart needs to know all headers
and sources file of a project.. the point is that you can write an automake
project without enumerating headers!! for instance
yourproject_SOURCES = file1.cpp file2.cpp .. and fileN.cpp
but, cppsupport *must* parse all headers before parsing the .cpp files,
because usually headers contains the declarations :(
anyway, i'm working on a clean solution for it using the method
Driver::setResolveDependencesEnabled().. take a look at
cppsupportpart/main.cpp for an example on how to use this new feature of the
Driver... or if you want to test it inside kdevelop you can uncomment
m_driver.setResolveDependencesEnabled(true) in backgroundparser.cpp
ciao robe
-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
_______________________________________________
Kdevelop-devel mailing list
Kdevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic