Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Problems with ScannerConfigurationDiscoveryProfile

Hi,
Sorry, but as a follow up to other posts I'm still not groking this fully.

I have a new plugin based on org.eclipse.cdt.managedbuilder.gnu.ui_3.0.0. I want to change the executable name for the GCC compiler (to my-gcc) as used in the ScannerConfigurationDiscoveryProfile.

Therefore, in my plugin's manifest I have added:

<!-- ScannerConfigurationDiscoveryProfile Tool Specifications -->
 <extension
         id="com.ashling.MyGNU.GCCManagedMakePerProjectProfile"
         name="My GNU C/C++ managed make per project SCD profile"
         point="org.eclipse.cdt.make.core.ScannerConfigurationDiscoveryProfile">
      <scannerInfoCollector
            class="org.eclipse.cdt.managedbuilder.internal.scannerconfig.DefaultGCCScannerInfoCollector"
            scope="project"/>
      <scannerInfoProvider providerId="specsFile">
         <run
               arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}"
               class="org.eclipse.cdt.make.internal.core.scannerconfig2.GCCSpecsRunSIProvider"
               command="my-gcc"/>
         <scannerInfoConsoleParser class="org.eclipse.cdt.make.internal.core.scannerconfig.gnu.GCCSpecsConsoleParser"/>
      </scannerInfoProvider>
   </extension>

 

and for my buildDefinitions/Toochain definitions I have set scannerConfigDiscoveryProfileId to refer to the above:

   <extension
         id="cdt.managed.build.info"
         name="Managed Build Tools Description"
         point="org.eclipse.cdt.managedbuilder.core.buildDefinitions">
 
[snip....]

    <configuration
          name="%ConfigName.Rel"
          id="cdt.managedbuild.config.My.gnu.exe.release"
          cleanCommand="rm -rf"
          errorParsers="org.eclipse.cdt.core.MakeErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser;org.eclipse.cdt.core.GASErrorParser">                                     <toolChain
                archList="all"
                osList="all"
                name="%ToolChainName.Rel"
                targetTool="cdt.managedbuild.tool.My.gnu.c.linker.exe.release;cdt.managedbuild.tool.My.gnu.cpp.linker.exe.release"
                scannerConfigDiscoveryProfileId="com.ashling.MyGNU.GCCManagedMakePerProjectProfile"
               id="cdt.managedbuild.toolchain.My.gnu.exe.release">

[snip....]

 

Unfortunately, this does not work. The default (gcc) is still been used by the scanner. Note: Everything else works fine i.e. Wizard shows MyGNU and generates a Managed Make Project which calls my versions of the gnu tools.

 

Obviously, I am missing something. What's wrong ? Can this be done statically or is some Java necessary ? Thanks in advance....

 

Hugh,,

 

 

 


Back to the top