Bug 87981 - Project Level Build Targets
Summary: Project Level Build Targets
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-14 15:43 EST by Maneesh Mehra CLA
Modified: 2020-09-04 15:18 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maneesh Mehra CLA 2005-03-14 15:43:54 EST
Hi:

I am trying to create a startup CDT project for the entire team (that will
be checked-in in our source VOBs). I would like to include symbolic
references to all the needed sources in this project. The need for this
project is quite simple. When a new person comes along, they will create
their own project and refer this project in their Project's reference list.

The problem that I am trying to solve is centered around specifying build
targets for this shared project.We have a very different building mechanism.
We use clearcase all throughout and use clearmake for our builds. We have
smart makefile(s) in each folder that we build. By smart build files I mean
that our build files dynamically build the list of folders that are needed
to be built. In addition, clearmake makes sure that it does not have to
build things unecessarily and is able to wink-in derived objects from the
VOB. Each folder in our source VOB contains a copy of this makefile. Assume
that the folder hierarchy is like:

folder1
    makefile
    folder2
        makefile
        folder3
            makefile

With our makefiles, if we issue a command like "clearmake -f makefile
PASS_MAKE_INCLUDES" in folder2, it builds files in folder2 only and not in
folder1 or folder3. Also, the build command names themselves are common
across the board for all folders. So PASS_MAKE_INCLUDES only builds the
include files for a given folder. Likewise, PASS_MAKE_LIBRARIES builds only
the libraries in a given folder. So, I would like to specify a build target
just once at the top level (i.e., folder1 in this case) and want it to
cascade down to all folders underneath folder1. However, in CDT, I would
have to specify the same build targets again and again for each folder in
the hierarchy. Is there a way so that build targets can be specified at the
project level ? This will also help any new folders inherit the
project-level build targets and will help us the pain of making sure that
they are being built correctly.
Comment 1 Chris Recoskie CLA 2009-05-07 14:46:42 EDT
Is there a makefile in each of your folders?  If so, then you could just make each folder its own project.
Comment 2 Andrew Gvozdev CLA 2009-05-07 15:22:43 EDT
I think this request is valid (for non-managed build) and pretty typical in C world. Making its own project for each folder does not scale well for projects having hundred folders or so.
Comment 3 Maneesh Mehra CLA 2009-05-07 18:43:46 EDT
I am glad someone is looking at this after such a long time :-)
Comment 4 Chris Recoskie CLA 2009-05-26 14:34:27 EDT
It's an interesting thought.  Triaging as valid, although I'm not sure when anyone will have the time to look at it.

If we get support for nested projects in Eclipse, this might get handled that way instead though.