Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] symbols can't be added

Hello,
I want to add the symbols defined in my own makefile. I tried do below and no symbol is added sucessfully :
for (IProject project : projects) {
prjDesc = CoreModel.getDefault().getProjectDescription(project);
ICConfigurationDescription[] descs = prjDesc.getConfigurations();
for(ICConfigurationDescription desc : descs){
            IConfiguration iConfig = ManagedBuildManager.getConfigurationForDescription(desc);            
            ITool[] tools =  iConfig.getToolChain().getTools();
            IOption newSymbol = null;
            for(ITool tool : tools){
             newSymbol =tool.createOption(null,"symbolTestName",null,false);
            }
try {
newSymbol.setValueType(2);
newSymbol.setValue("symbolTestValue");
} catch (BuildException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}}

How to add symbols exactly? any help?




Hotmail : une messagerie fiable avec une protection anti-spam performante Inscrivez-vous

Back to the top