Bug #14331 2008-08-05 20:20

ultima

Build commands with multiple dependent projects

In a workspace with multiple projects with project dependencies, the Build/Rebuild/Clean commands could are not practical.

If you have large projects A, B, C, with A depending on B, B depending on C (eg. B & C are libraries), you would want the following behaviour: After changing a single source file in B, you want to be able to build only the changed source in B and than relink project A. This is currently impossible in CodeBlocks.

Currently your only solution is to issue a Rebuild on A, which cleans A, B and C and completely rebuilds all of them. If you issue Build on A, changed source in B gets rebuilt but A is not relinked. Clean, Build doesn't work either, becasue a Clean on A automatically cleans B and C. 'A' only gets relinked if you change a source file in it or issue a complete Rebuild of the whole workspace.

Recommended solution:

1) Change the Clean command to only clean the project it is issued on, not every other project it depends on.

2) Change the Build command so that it relinks project A even if no source of A has changed, given that B or C changed.

Category
Application::WrongBehaviour
Group
 
Status
Open
Close date
 
Assigned to