Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Today's updates: 30 Nov 2005
mandrav:
Not much time today, so not many updates.
Added command-line options for batch builds.
--hidden: do not show the C::B window.
--build: build the project/workspace.
--rebuild: clean and then build the project/workspace.
The project/workspace is specified last in the command-line.
This feature is best used with personalities. Because we just want to batch-build a project/workspace, we don't need to load other plugins than the compiler. What a perfect job for a new personality ;).
Small HOWTO:
Launch C::B using the command-line option --personality:
--- Code: ---codeblocks.exe --personality="Build"
--- End code ---
When C::B starts, it will start like it was just installed.
Uncheck the "Show tips at startup".
Go to "Plugins->Manage plugins" and uncheck all plugins except the compiler.
Close C::B.
A new configuration file named "Build.conf" will be saved in your config folder.
Now, if you want to batch-build a project/workspace, launch C::B with the following command-line:
--- Code: ---codeblocks.exe --hidden --build c:\some\where\a\project.cbp
or
codeblocks.exe --hidden --rebuild c:\some\where\a\project.cbp
--- End code ---
Now you can start those unattended nightly builds :)
(not quite; no build log is saved yet :P).
mandrav:
Oh, backup your default.conf file first. I haven't tested the fix to ConfigManager exhaustively yet...
EDIT: I found where this little bug was and is fixed now :)
killerbot:
Super !!
Some questions :
if you specify a workspace : all projects in the workspace are build ?
Which target is build for the project ??
eg : project : 4 targets : gnu (debug ), gnu (release), MSVC (debug), MSvc(release)
rickg22:
Question. If you specify -batch, is the "plain and simple" personality loaded (i.e. no plugins loaded unless specified otherwise)? Is the compiler output shown in stdout?
mandrav:
--- Quote from: killerbot on November 30, 2005, 04:02:46 pm ---if you specify a workspace : all projects in the workspace are build ?
Which target is build for the project ??
eg : project : 4 targets : gnu (debug ), gnu (release), MSVC (debug), MSvc(release)
--- End quote ---
This is a work-in-progress. Currently it builds the whole workspace. I will add support for specifying targets though.
--- Quote from: rickg22 on November 30, 2005, 04:04:38 pm ---Question. If you specify -batch, is the "plain and simple" personality loaded (i.e. no plugins loaded unless specified otherwise)? Is the compiler output shown in stdout?
--- End quote ---
There is no "-batch" option.
We create a new personality for this reason: to make the IDE as light as possible.
And no output yet, as mentioned above. I will have to adapt messagemanager for this. Probably later tonight :).
Navigation
[0] Message Index
[#] Next page
Go to full version