How can I get C::B to use the definition of such environment variables when building from command line?First of all, make sure the plugin is actually active in batch build. Usually it is not.
Follow up question1: I have tried to suppress the "Batch build" dialog that pops up (it is useful sometimes), but it seems to come always. Shouldn't --log-to-file suppress it and send the same output to file? I can't get it to work.
Follow up question 2: When I specify the workspace file, will all projects be built or just the one which is marked as 'active' ?
Usage:
MSDEV [myprj.dsp|mywksp.dsw] - load project/workspace
[<filename>] - load source file
/? - display usage information
/EX <macroname> - execute a VBScript macro
/OUT <filename> - redirect command line output to a file
/USEENV - ignore tools.options.directories settings
/MAKE [<target>] [...] - build specified target(s)
[<project> - <platform> <configname>]
[[<project>|ALL] - [DEBUG|RELEASE|ALL]]
/CLEAN - delete intermediate files but don't build
/REBUILD - clean and build
/NORECURSE - don't build dependent projects
Command line builds:
devenv solutionfile.sln /build [ solutionconfig ] [ /project projectnameorfile [ /projectconfig name ] ]
Available command line switches:
/Log Logs IDE activity to the specified file for troubleshooting.
/ResetSettings Restores the IDE's default settings, optionally resets to
the specified VSSettings file.
/SafeMode Launches the IDE in safe mode loading minimal windows.
svn checkout https://svn.berlios.de/svnroot/repos/codeblocks/branches/codeblocks_console [path_to_local_repo]
run codeblocks --help from a console to see the possible parameters.
You can specify a target with --target= .
The normal C::B does not work without a running xserver, but there is an experimental branch I started about a year (or so) ago, that is able to create a pure console-version of C::B.
It does not load any plugins, but the compiler-plugin, because all the plugins need an xserver (at the moment).
If I find the time, I continue working on the branch.
As far as I can tell, that is not possible from the command line now, you have to open the C::B IDE GUI to do it.That is wrong. The command line parameters work with workspaces just fine.
As far as I can tell, that is not possible from the command line now, you have to open the C::B IDE GUI to do it.That is wrong. The command line parameters work with workspaces just fine.
BTW: You may want to setup "virtual targets" to bundle the targets across projects within a workspace you want to build in batch mode. This allows you to build "sub-parts" of projects in a WS as desired.
It seems I am not getting through with my message, but nevermind, I'll leave it there. Thanks for reading anyway.I'd say it seems you don't understand. Have a look at the build batch file for Code::Blocks in SVN. There we do what you want to do. I told you how, but it seems I am not getting through.