Build scripts (as in the Squirrel scripts, that are added by project->properties->build scripts->add) are currently executed an apparently arbitrary and large number of times, both before and after the build.
To reproduce, create a simple script containing
function SetBuildOptions(base) { ShowMessage(_T("This pops up too many times.")); }
and attach it to a project which has pre/post build steps etc. On the project I'm testing, the script is executed 8 times, even for an already built project for which there's nothing to be done.
The wiki seems to suggest that the build script is run once, at the start of the build process. As it is currently, the build scripts feature is not actually useful for anything except setting compiler options.
Where do you put the script code?
For me, I can only open the build option dialog, and see "pre/post" edit control. What is the code snippet you put in those edit controls?
This is not in the build options. It's in the project properties. As I said in the first sentence of the above report, we're talking about Squirrel build scripts, added by
project->properties->build scripts->add
: