Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

Getting the compiler ID of a non-standard compiler.

(1/1)

Piece_o_Ham:
I am working on a new project wizard script, and I would like one of my build targets to use a compiler that doesn't come with Code::Blocks. I looked at this page: http://wiki.codeblocks.org/index.php?title=Project_file#Compiler, and I noticed that all of the compilers have an ID assigned to them. But all of the functions (that I know of) that are used for handling compilers only accept a compiler ID. So what I am wondering, is how I can set a build target's compiler to a non standard compiler?

oBFusCATed:
Do you want to hard code it or do you want to allow the user to choose from a set of compilers?

Piece_o_Ham:

--- Quote from: oBFusCATed on March 12, 2014, 08:41:43 am ---Do you want to hard code it or do you want to allow the user to choose from a set of compilers?

--- End quote ---

I suppose that it would be better if the user could select the appropriate compiler since it's not built in. I could put a message on the top that says "Please select the {insert compiler name} compiler". But the only built in compiler page that I can see has the "Generate Debug target" and "Generate Release target" options. Is there a way that I could disable these?

And also, if there ever comes a time where I would want to have the option of hard-coding the compiler, would that even be possible?

oBFusCATed:
Hm, I don't know if it is possible to make changes to the look of that page.
It might be best to inspect the source of the script wizard plugin to see what is possible and what might be done to improve it.

Navigation

[0] Message Index

Go to full version