Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ProfesorX on October 04, 2006, 02:04:06 am

Title: Feature Request: Default Running Project In Workspace And Build Target
Post by: ProfesorX on October 04, 2006, 02:04:06 am
First i wish to thank to all the developer team who mades possible for us to have this wonderful open source IDE :D

I think it would be nice to have a "Default Running Project for a workspace", useful when you have several project who are "only dependencies" of one project in the same workspace, so we don't need to change the active project, and later having to save because some change have been made to the workspace

Also, when changing the build target, make that change to all the projects in the workspace, and not only on the current project, because is very frustrating having to change manually the build target from "debug" to "release" and viceversa, if you have 20 or more projects inside a workspace.
Title: Re: Feature Request: Default Running Project In Workspace And Build Target
Post by: nfz on October 04, 2006, 06:00:57 am
If you are using a nightly build you can do this already.  You can setup project dependencies for the main project so that only the main project needs to be active and if you hit build then all dependency projects are checked to see if they need to be built too.  What ever build target is active for the main project is also used for the dependecy projects.  Just make sure you use the same build target names and make note that target names are case sensitive.  If you have "Debug" target set for the build of your main project but one of the dependecies target name is "debug" then Code::Blocks will complain that it can't find "Debug" target for that dependecy project.
Title: Re: Feature Request: Default Running Project In Workspace And Build Target
Post by: nfz on October 04, 2006, 06:35:48 am
Here is a good reference: Using Project Dependencies (http://wiki.codeblocks.org/index.php?title=The_build_process_of_Code::Blocks#Using_project_dependencies)