[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [linuxtools-dev] autotools plug-in extensibility
|
Hi Corey,
You are correct in that you cannot add new options to the Configuration
Settings pages except via code. The AutotoolsConfiguration has the set
of options and the Configuration Settings pages are created based on
them. This was done to make the code easily extendible if we wanted to
add some missing options that were common enough.
I'm not sure why you don't want to use the existing mechanisms for
specifying options that are not in any of the configuration setting pages.
The user field is a free form way to add any configuration options you
want. For example, this is where you would add --with-xxxxx and
--enable-yyyy options which are not provided elsewhere in any of the
options pages.
You can also modify the configure command itself and there you can add
environment variable settings.
The options themselves are stored in xml format in the .autotools file
that is stored with the project. This includes the configure command
itself. When an autotools project is loaded, the .autotools file is
read in and this is used to fill in the fields of the Configuration
Settings.
Does this help?
-- Jeff J.
On 04/21/2011 02:03 PM, Corey Ashford wrote:
Hi,
We are looking to extend the autotools plug-in so that it can use a
different GNU toolchain. specifically a newer one from the one that's in
the distro. At this point, all we really need to do, I think, is to add
the following options CC=<path-to-gcc> and CXX=<path-to-g++> options to
the configure command.
I had a look through the source, and found what appear to be several
misleading trails as to how the tool configuration options are coded. I
found several plugin.xml and plugin.properties files that appeared to
point in the direction of using those XML structures to drive what is
displayed in the configuration dialog, but changing them had no effect
on the dialog.
After digging into the code some more, I found that the options are not
encoded in XML, but instead are in the "Option" array in the class
AutotoolsConfiguration. Unless I am missing something, I don't see any
way, currently, to extend or alter the configuration menu structure,
except via code.
I was able to figure out how to add the needed options via code, but I
am hoping I am just missing something and this can be done via XML.
Did I in fact miss something?
Thanks for your consideration,
- Corey
_______________________________________________
linuxtools-dev mailing list
linuxtools-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/linuxtools-dev