Hi,
I have figured out how to build a C::B workspace containing several inter-dependent projects from the command line:
$ codeblocks --build --target=GCC_Release prototype.workspace
It looks like it simply is building ALL projects in the workspace, fair enough.
Sometimes, I would like to build only an "Active" project in the workspace, including the projects it depends on, as specified in the workspace file. But there seems to be no command line option for that? I mean, something like below (suggested option in green)
$ codeblocks --build --project=prototype_app.cbp --target=GCC_Release prototype.workspace
This would build only the projects that prototype_app depends on, as specified in the given workspace file, plus build prototype_app itself of course. It is exactly the same concept at building the "active" project in the GUI IDE, but I have found no way to say what the "active" project is from the command line, hence the above suggestion.
The above is very different from simply building the project file directly:
$ codeblocks --build --target=GCC_Release prototype_app.cbp
because this will not build the dependencies of the prototype_app project, since the dependencies are only described in the .workspace file.
I am exploring this because I want to build using C::B command line on the Raspberry PI, the IDE is too slow on PI to be practical. However, building from command line is less painful, but access to some additional functionality that already exists when building from withing the GUI IDE would be nice to have.
Is this perhaps already possible in some other way?