Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] What determines languages in Preprocessor Include Paths, Macros etc page?

Hi,

 

You will have to add ‘org.eclipse.cdt.ui.UserLanguageSettingsProvider;${Toolchain};org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider;’  in ‘languageSettingsProviders’ in configuration under ‘org.eclipse.cdt.managedbuilder.core.buildDefinitions’ as shown below:

<extension

         .

         .

         point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">

<configuration

.

.

            languageSettingsProviders="org.eclipse.cdt.ui.UserLanguageSettingsProvider;${Toolchain};org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider"

.

.

</configuration>

</extension>

 

Regards,

Swapna

 

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Sergey Prigogin
Sent: 08 March 2013 AM 10:21
To: CDT General developers list.
Subject: [cdt-dev] What determines languages in Preprocessor Include Paths, Macros etc page?

 

I have a C++ project that is created based on the toolchain definition below. This project works fine with disabled language setting providers, and in Paths and Symbols page shows three languages: Assembly, C Source File, and C++ Source File. In the Preprocessor Include Paths, Macros etc page it, for some reason, shows only Assembly. Does anybody know what is required to get C and C++ languages in the Preprocessor Include Paths, Macros etc page?

 

  <extension

        point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">

     <projectType

           buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"

           id="some_plugin_id.nullProjectType"

           isAbstract="false"

           isTest="false"

           name="Special C++ Project">

       <configuration

             buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.exe"

             description="Setup for C++ indexer"

             id="some_plugin_id.nullConfiguration"

             name="">

          <toolChain

                id="some_plugin_id.nullToolChain"

                isSystem="true"

                name="Null Toolchain"

                osList="linux">

             <tool

                   id="some_plugin_id.tool.g++"

                   isSystem="true"

                   name="Null compiler for C++"

                   natureFilter="both">

                <inputType

                      dependencyContentType="org.eclipse.cdt.core.cHeader"

                      id="some_plugin_id.dummyInput.g++"

                      languageId="org.eclipse.cdt.core.language.g++"

                      name="Dummy input for C++"

                      primaryInput="true"

                      sourceContentType="org.eclipse.cdt.core.cxxSource">

                </inputType>

                <outputType

                      id="some_plugin_id.dummyOutput.g++"

                      name="Dummy output for C++"

                      outputContentType="org.eclipse.cdt.core.binaryFile"

                      primaryOutput="true">

                </outputType>

                <option

                      id="some_plugin_id.optionSymbols.g++"

                      name="C++ indexer defined symbols for C++"

                      resourceFilter="project"

                      valueType="definedSymbols">

                </option>

                <option

                      id="some_plugin_id.optionIncludePaths.g++"

                      name="C++ indexer include paths for C++"

                      resourceFilter="project"

                      valueType="includePath">

                </option>

             </tool>

             <tool

                   id="some_plugin_id.tool.gcc"

                   isSystem="true"

                   name="Null compiler for C"

                   natureFilter="both">

                <inputType

                      dependencyContentType="org.eclipse.cdt.core.cHeader"

                      id="some_plugin_id.dummyInput.gcc"

                      languageId="org.eclipse.cdt.core.language.gcc"

                      name="Dummy input for C"

                      primaryInput="true"

                      sourceContentType="org.eclipse.cdt.core.cSource">

                </inputType>

                <outputType

                      id="some_plugin_id.dummyOutput.gcc"

                      name="Dummy output for C"

                      outputContentType="org.eclipse.cdt.core.binaryFile"

                      primaryOutput="true">

                </outputType>

                <option

                      id="some_plugin_id.optionSymbols.gcc"

                      name="C++ indexer defined symbols for C"

                      resourceFilter="project"

                      valueType="definedSymbols">

                </option>

                <option

                      id="some_plugin_id.optionIncludePaths.gcc"

                      name="C++ indexer include paths for C"

                      resourceFilter="project"

                      valueType="includePath">

                </option>

             </tool>

             <tool

                   id="some_plugin_id.tool.asm"

                   isSystem="true"

                   name="Null compiler"

                   natureFilter="both">

                <inputType

                      dependencyContentType="org.eclipse.cdt.core.cHeader"

                      id="some_plugin_id.dummyInput.asm"

                      languageId="org.eclipse.cdt.core.assembly"

                      name="Dummy input for ASM"

                      primaryInput="true"

                      sourceContentType="org.eclipse.cdt.core.asmSource">

                </inputType>

                <outputType

                      id="some_plugin_id.dummyOutput.asm"

                      name="Dummy output for ASM"

                      outputContentType="org.eclipse.cdt.core.binaryFile"

                      primaryOutput="true">

                </outputType>

                <option

                      id="some_plugin_id.optionSymbols"

                      name="C++ indexer defined symbols for ASM"

                      resourceFilter="project"

                      valueType="definedSymbols">

                </option>

                <option

                      id="some_plugin_id.optionIncludePaths"

                      name="C++ indexer include paths for ASM"

                      resourceFilter="project"

                      valueType="includePath">

                </option>

             </tool>

             <targetPlatform

                   binaryParser="org.eclipse.cdt.core.GNU_ELF"

                   id="some_plugin_id.nullTargetPlatform"

                   name="Some target platform"

                   osList="linux">

             </targetPlatform>

             <builder

                   arguments="&quot;&quot;"

                   command="&quot;&quot;"

                   errorParsers="&quot;&quot;"

                   id="some_plugin_id.nullBuilder"

                   isSystem="true"

                   name="Null Builder"

                   supportsManagedBuild="false">

             </builder>

          </toolChain>

       </configuration>

     </projectType>

  </extension>

 

-sergey


This message contains information that may be privileged or confidential and is the property of the KPIT Cummins Infosystems Ltd. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message. KPIT Cummins Infosystems Ltd. does not accept any liability for virus infected mails.

Back to the top