Search in sources :

Example 1 with BuildConfigurationData

use of org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData in project m2e-nar by maven-nar.

the class AbstractSettingsSynchroniser method setArtifactName.

private void setArtifactName(ICConfigurationDescription cfg, NarBuildArtifact artifactSettings) {
    final String artifactName = artifactSettings.getArtifactName();
    if (artifactName != null) {
        BuildConfigurationData confData = (BuildConfigurationData) cfg.getConfigurationData();
        IConfiguration managedConf = confData.getConfiguration();
        managedConf.setArtifactName(artifactName);
    }
}
Also used : BuildConfigurationData(org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData) IConfiguration(org.eclipse.cdt.managedbuilder.core.IConfiguration)

Example 2 with BuildConfigurationData

use of org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData in project m2e-nar by maven-nar.

the class AbstractGnuCompilerSynchroniser method fullSync.

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

Example 3 with BuildConfigurationData

use of org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData 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 4 with BuildConfigurationData

use of org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData 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)4 BuildConfigurationData (org.eclipse.cdt.managedbuilder.internal.dataprovider.BuildConfigurationData)4 ITool (org.eclipse.cdt.managedbuilder.core.ITool)2