Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: Piece_o_Ham on March 12, 2014, 04:06:52 am

Title: Getting the compiler ID of a non-standard compiler.
Post by: Piece_o_Ham on March 12, 2014, 04:06:52 am
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 (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?
Title: Re: Getting the compiler ID of a non-standard compiler.
Post by: 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?
Title: Re: Getting the compiler ID of a non-standard compiler.
Post by: Piece_o_Ham on March 12, 2014, 07:44:37 pm
Do you want to hard code it or do you want to allow the user to choose from a set of compilers?

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?
Title: Re: Getting the compiler ID of a non-standard compiler.
Post by: oBFusCATed on March 12, 2014, 08:39:33 pm
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.