Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Projects with source above in tree.
Projects with source above in tree. [message #204224] Tue, 06 November 2007 23:11 Go to next message
Eclipse UserFriend
Originally posted by: slide.o.mix+eclipse.gmail.com

At my work, we have a large set of "common" code that is used by every
application. The problem is, I don't want to have to go to the top level
of the source to include all of the files that I might want to look at
and possibly change. I would like to be able to add certain specific
files to my project, but they are above or parallel to my application in
the directory structure like below:


common_api
|
- logging
|
- database
myapplication


What is the best way to handle something like this? I would like my
project to rebuild if I change something in the common area, but I don't
want to include ALL of the common area as I perhaps will only change the
"database" portiong.

Any ideas?

Thanks!

slide
Re: Projects with source above in tree. [message #204241 is a reply to message #204224] Wed, 07 November 2007 00:55 Go to previous message
Eclipse UserFriend
Originally posted by: ronbermejo.yahoo.com

Hello slide!

Slide wrote:

> At my work, we have a large set of "common" code that is used by every
> application. The problem is, I don't want to have to go to the top level
> of the source to include all of the files that I might want to look at
> and possibly change. I would like to be able to add certain specific
> files to my project, but they are above or parallel to my application in
> the directory structure like below:


> common_api
> |
> - logging
> |
> - database
> myapplication

> What is the best way to handle something like this? I would like my
> project to rebuild if I change something in the common area, but I don't
> want to include ALL of the common area as I perhaps will only change the
> "database" portiong.

> Any ideas?

The ability to add/exclude files from anywhere in the filesystem is still
a work in progress (https://bugs.eclipse.org/bugs/show_bug.cgi?id=205300)
... so I guess you have the following options for now:

1. Create a folder inside 'myapplication' that is a link to the desired
'common_api' folder

You can do this by New->Folder..., then click the "Advanced>>" button, and
enable the 'Link to folder in the filesystem' option.

2. Create 2 projects, 'common_api' (shared or static lib) and
'myapplication' (exe)

Then you could link myapplication to the library produced by common_api
project.

However, be aware of this current limitation in 4.0.1 (w/c should be
addressed by 4.0.2):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205113

Meaning, you would have to manually force a rebuild of 'myapplication'
whenever 'common_api' changes.

Hth!
Ron
Previous Topic:Debugger Log
Next Topic:Flymake for CDT
Goto Forum:
  


Current Time: Tue May 06 21:03:59 EDT 2025

Powered by FUDForum. Page generated in 0.03215 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top