Organizing Code

Ralf Nolden Ralf.Nolden at post.rwth-aachen.de
Wed Feb 2 16:52:20 GMT 2000


Pascal Francq wrote:
> 
> Hello,
> 
> I develop for the moment several applications using some common portion of
> code. Actually, each application is a KDevelop project, and each project has a
> local copy of the common sources (I am using CVS). It is the only I found to
> debug these common source.
> On the other hand, each time I found a bug in an application, I have to commit
> it in cvs and to update it in each project. Is there an other way to do that by
> sharing for example code between several projects?
> --
If you're using the same code on several projects there are several
ways: the one to copy it to cvs and the other apps (hard way), the other
to create a project and deselect "Modify Makefiles" in the project
options. (first add your sources you use in each app and create the new
project as one of the apps)
Then add *all* files for *all* other projects into the same project and
edit the Makefile.am by hand for each target. Make should then build all
targets, but of course running does only start the one you created the
project for. But as you're targeting on debugging, jbb has a nice
solution to execute another binary than the project one with the
internal debugger ;-)
A bit more work, but it should do it. You could copy the Makefile.am
contents for the other binaries from their project Makefile.am's into
the one you want to work with. 

What did I mean ?@!";*

;-)

Hope this helped,

Ralf






More information about the KDevelop mailing list