User forums > Using Code::Blocks
rebuiding entire workspace from the command line
gilado:
Using Microsoft Visual Studio you can rebuild all projects in a workspace by typing at the command line
msdev myworkspace.dsw /MAKE ALL
is there a similar feature in codeblocks?
killerbot:
would be interesting feature, for automatic (nightly builds).
With MS VC 2005, it even improved, it is a special build exe, so no gui which is been hidden.
Lieven
etko:
Yes something command like make but understanding C::B project files would be cool.
takeshimiya:
It's already there in SVN HEAD. :D
Examples of use:
--- Code: ---codeblocks.exe --build --target="Release" c:\some\where\a\project.cbp
--- End code ---
Builds the target release of the specified project.
--- Code: ---codeblocks.exe --personality=MyBuild --rebuild c:\some\where\a\project.cbp > build.log
--- End code ---
Rebuilds all the targets of the specified project, using the specified personality, and redirecting the build log to a file.
As for having a special build exe so no GUI is hidden, as it's not an easy task, I guess it will be available in Code::Blocks Studio 2007 or so :P
mandrav:
Just want to add that it works with workspaces the same way. And if you give a --target argument for a workspace, only this target is built for all projects in the workspace.
Navigation
[0] Message Index
[#] Next page
Go to full version