Re: [CEDET-devel] How to set up custom compiler?
Brought to you by:
zappo
From: Eric M. L. <er...@si...> - 2013-03-12 01:08:20
|
On 03/11/2013 03:58 PM, David Engster wrote: > Christoph Piefke writes: >> I am starting to use ede and cedet in general for my projects. At the >> moment, I am stuck setting up a custom compiler. As far as I understand, >> I have to modify the ede-something-compiler and ede-something-linker >> objects in proj-obj.el and add the new objects to the availablecompilers >> availablelinkers list. >> >> Since I have to do that on more than one machine and for different >> people, how can I achive that in a file that can be added to my project >> directly without hacking around in the original ede-source? >> >> As I am a total elisp-newbie, perhaps there is a standard way and I just >> don't know, so, I am thankful for every hint! > > Unfortunately, adding things like compilers, linkers and targets to EDE > is not as straightforward as it should be. First, you can use the > following helper functions: > > (defun ede-proj-target-add-compiler (obj compiler) > (let ((st (oref obj availablecompilers))) > (oset-default obj > availablecompilers > (cons compiler st)))) > > (defun ede-proj-target-add-sourcetype (obj sourcet) > (let ((st (oref obj sourcetype))) > (oset-default obj > sourcetype > (cons sourcet st)))) > > (defun ede-proj-target-add-linker (obj linker) > (let ((st (oref obj availablelinkers))) > (oset-default obj > availablelinkers > (cons linker st)))) > > (Eric, what do you think of adding the above to EDE?) To reply again quickly after; I still think the above is a good idea, but attached is another solution for someone who just needs to add something in to their project without a lot of extra work. I didn't do a full-up test, but from the customization point of view it seems to be working ok. What do others think? Eric |