Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] dynamic toolchain discovery



If you are talking about the ability to specify tool-chains without modifying plugin.xml file, than you can implement a dymanicElementProvider in your plugin.xml file and provide a custom logic for loading the managed build information including loading this information from non-plugin sources. Note: there is one limitation on this functionality currently: it is not possible to specify java call-backs used in the managed build elements (e.g. dependency calculator) unless your IManagedConfigElement implementation is inherited from the org.eclipse.cdt.managedbuilder.internal.core.DefaultManagedConfigElement. See the bug# 91230 ( for more detail.

Note: the information specified with the dymanicElementProvider is read only once while Managed Build System (MBS) loads extension elements and you can not update it dynamically during the session.

We are planning to implement dynamic behavior in the future, e.g. the ability to load tool-chain definitions from an external xml file specified by the user.

So, there is no way currently to update the extension info dynamically, but theoretically you can do it programmatically by creating new extension elements.

Note that extension elements are typically created unresolved and you might need to implement the resolving logic, e.g. similar to the one implemented in the ManagedBuildManager.loadExtensionsSynchronized().


Let me know if you need a more detailed info regarding either of the above approaches.





From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Yu-Fen Kuo
Sent: Saturday, May 06, 2006 3:10 AM
To: cdt-dev@xxxxxxxxxxx
Subject: [cdt-dev] dynamic toolchain discovery


Hi All,


Does CDT support dynamic toolchain discovery? In additional to supplying the toolchain info in buildDefinitions extension, I would like to be able to allow users to add new toolchains without modifying plugin.xml file. Is there anyway of doing it? Where can I find more information about it?



Back to the top