News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Is it possible to export the Compiler options-> Custom variables in scirpt?

Started by ollydbg, April 28, 2013, 03:28:25 AM

Previous topic - Next topic

ollydbg

Hi, I'm asking to export the property of project build options -> Custom variables manipulation functions in scripts. I'm checking this file: sdk\scripting\bindings\scriptbindings.cpp, but I don't see it was exported.

The reason is that I would like to create a project wizard for OpenCV, but I'd like to add some custom variables in the project, it is much like the things in cbp files like:

<Environment>
<Variable name="WX_CFG" value="" />
</Environment>

I'd like to add some custom variables like "CV_CFG", and I need to set it's value in script wizard. Is it possible? Is it simple? I'm unfamilar with script bindings, thanks.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ollydbg

Quote from: oBFusCATed on April 28, 2013, 04:23:11 AM
Then you'll have to read this: http://wiki.codeblocks.org/index.php?title=Script_bindings
Thanks for point to this reference, I will read it soon. :)

EDIT:
Oh, it looks like those functions are already exposed, they are:

               func(&CompileOptionsBase::SetVar, "SetVar").
               func(&CompileOptionsBase::GetVar, "GetVar").
               func(&CompileOptionsBase::UnsetVar, "UnsetVar").
               func(&CompileOptionsBase::UnsetAllVars, "UnsetAllVars");


If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.