One example: I don't want my students to either change compiler og targets, so I set both boolean options to false in
Wizard.AddCompilerPage(_T(""), _T("gcc*"), false, false);
but then neither debug nor release target are created, so SetupProject() never calls SetupTarget(). Ideally, I don't want to call AddCompilerPage at all, but simply set the compiler to gcc and activate Debug, Release and possibly Profiling targets.
* Added three new script functions for wizard scripts: SetCompilerDefault, SetDebugTargetDefaults and SetReleaseTargetDefaults. To be used when no compiler page is added to the wizard.
Example usage:
// no need for Wizard.AddCompilerPage(...) now
Wizard.SetCompilerDefault(_T("gcc"));
Wizard.SetDebugTargetDefaults(true, _T("Debug"), _T("bin/Debug/"), _T("obj/Debug/"));
Wizard.SetReleaseTargetDefaults(false, _T("Release"), _T("bin/Release/"), _T("obj/Release/"));
I'd also like to turn off the "Pause when execution ends" option, but cannot see how to do that.
// pass 'true' for pausing after execution, 'false' for not pausing
// note that this affects console executables only
target.SetUseConsoleRunner(bool);
Any hints and pointers to documentation would be greatly appreciated.
http://wiki.codeblocks.org/index.php?title=Scripting_Code::Blocks
Most everything is documented there, apart from the latest additions. These will get added too eventually.