Code::Blocks Forums
Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: BlueHazzard on May 31, 2014, 12:14:39 am
-
Hi,
i would like to add some compiler api to the squirrel binding, but i don't have the time to get through all the compiler specific code, and so i hope to find some hints here in the forum. As far as i can tell, the whole compiler code is exported to the plugins. I can get the compilers from the compiler factory, but the plugins aren't derived from the compiler class or am i missing something? Also the compiler base class has no virtual function like "compile" or similar.
So has someone a overview over the compiler api or does someone know a easy function to call and let a target compile ;)
greetings
-
I would guess it would be in the project code.
Edit: My best guess is projectbuildtarget.h; but, I am feeling rotten today; so, might be way off.
Tim S.
-
It seems that the whole compiler code is outsourced to the plugin, without some api in the sdk. Is this a good idea? I mean, it would be nice if the compiler base class could have the Build Rebuild etc. virtual function or? Can the developer of this code give some hints of his thoughts?
greetings
-
If you get access to a pointer/reference to cbCompilerPlugin object you should be able to start build/run/rebuild/clean/etc as far as I can see.