Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

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

(1/1)

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:

--- Code: --- <Environment>
<Variable name="WX_CFG" value="" />
</Environment>

--- End code ---
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.

oBFusCATed:
Then you'll have to read this: http://wiki.codeblocks.org/index.php?title=Script_bindings

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

--- End quote ---
Thanks for point to this reference, I will read it soon. :)

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

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

--- End code ---

Navigation

[0] Message Index

Go to full version