Search in sources :

Example 26 with IConfiguration

use of org.eclipse.cdt.managedbuilder.core.IConfiguration in project m2e-nar by maven-nar.

the class AbstractGnuLinkerSynchroniser method pathsOnlySync.

@Override
public void pathsOnlySync(ICConfigurationDescription cfg, NarBuildArtifact artifactSettings) throws CoreException {
    final BuildConfigurationData confData = (BuildConfigurationData) cfg.getConfigurationData();
    final IConfiguration managedConf = confData.getConfiguration();
    final OptionSetter optionSetter = new OptionSetter(managedConf, getToolId());
    setOptions(optionSetter, artifactSettings);
}
Also used : BuildConfigurationData(org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData) IConfiguration(org.eclipse.cdt.managedbuilder.core.IConfiguration)

Example 27 with IConfiguration

use of org.eclipse.cdt.managedbuilder.core.IConfiguration in project m2e-nar by maven-nar.

the class AbstractGnuLinkerSynchroniser method fullSync.

@Override
public void fullSync(ICConfigurationDescription cfg, NarBuildArtifact artifactSettings) throws CoreException {
    final BuildConfigurationData confData = (BuildConfigurationData) cfg.getConfigurationData();
    final IConfiguration managedConf = confData.getConfiguration();
    for (final ITool tool : managedConf.getToolsBySuperClassId(getToolId())) {
        tool.setToolCommand(artifactSettings.getLinkerSettings().getName());
    }
}
Also used : BuildConfigurationData(org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData) IConfiguration(org.eclipse.cdt.managedbuilder.core.IConfiguration) ITool(org.eclipse.cdt.managedbuilder.core.ITool)

Aggregations

IConfiguration (org.eclipse.cdt.managedbuilder.core.IConfiguration)27 ITool (org.eclipse.cdt.managedbuilder.core.ITool)11 IOption (org.eclipse.cdt.managedbuilder.core.IOption)9 IToolChain (org.eclipse.cdt.managedbuilder.core.IToolChain)9 IManagedBuildInfo (org.eclipse.cdt.managedbuilder.core.IManagedBuildInfo)6 BuildException (org.eclipse.cdt.managedbuilder.core.BuildException)5 CoreException (org.eclipse.core.runtime.CoreException)5 ICConfigurationDescription (org.eclipse.cdt.core.settings.model.ICConfigurationDescription)4 ICProjectDescription (org.eclipse.cdt.core.settings.model.ICProjectDescription)4 IFolderInfo (org.eclipse.cdt.managedbuilder.core.IFolderInfo)4 BuildConfigurationData (org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData)4 ArrayList (java.util.ArrayList)3 ToolInformationData (net.sourceforge.usbdm.constants.ToolInformationData)3 IPath (org.eclipse.core.runtime.IPath)3 UsbdmSharedSettings (net.sourceforge.usbdm.constants.UsbdmSharedSettings)2 CoreModel (org.eclipse.cdt.core.model.CoreModel)2 CConfigurationData (org.eclipse.cdt.core.settings.model.extension.CConfigurationData)2 IBuilder (org.eclipse.cdt.managedbuilder.core.IBuilder)2 IManagedProject (org.eclipse.cdt.managedbuilder.core.IManagedProject)2 Configuration (org.eclipse.cdt.managedbuilder.internal.core.Configuration)2