.cdtproject
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 20 13:48:26 2007 +0000 (2007-05-20)
changeset 112 ea15433daba0
permissions -rw-r--r--
Ah! I finally have a progress bar that doesn't stall the build!
- pipe size in Linux is only 8*512=4096 bytes
- pipe size is not setable
- when the feeding process spits out data faster than the eating
process can read it, then the feeding process stalls after 4KiB
of data sent to the pipe
- for us, the progress bar would spawn a sub-shell every line,
and the sub-shell would in turn spawn a 'date' command.
Which was sloooww as hell, and would cause some kind of a
starvation: the pipe was full most of the time, and the
feeding process was stalled all this time.

Now, we use internal variables and a little hack based onan offset
to determine the elapsed time. Much faster this way, but still
CPU-intensive.
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <?eclipse-cdt version="2.0"?>
     3 
     4 <cdtproject id="org.eclipse.cdt.make.core.make">
     5 <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/>
     6 <data>
     7 <item id="scannerConfiguration">
     8 <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
     9 <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile">
    10 <buildOutputProvider>
    11 <openAction enabled="true" filePath=""/>
    12 <parser enabled="true"/>
    13 </buildOutputProvider>
    14 <scannerInfoProvider id="specsFile">
    15 <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
    16 <parser enabled="true"/>
    17 </scannerInfoProvider>
    18 </profile>
    19 <profile id="org.eclipse.cdt.make.core.GCCStandardMakePerFileProfile">
    20 <buildOutputProvider>
    21 <openAction enabled="false" filePath=""/>
    22 <parser enabled="true"/>
    23 </buildOutputProvider>
    24 <scannerInfoProvider id="makefileGenerator">
    25 <runAction arguments="-f ${project_name}_scd.mk" command="make" useDefault="true"/>
    26 <parser enabled="false"/>
    27 </scannerInfoProvider>
    28 </profile>
    29 <profile id="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfile">
    30 <buildOutputProvider>
    31 <openAction enabled="false" filePath=""/>
    32 <parser enabled="true"/>
    33 </buildOutputProvider>
    34 <scannerInfoProvider id="specsFile">
    35 <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
    36 <parser enabled="false"/>
    37 </scannerInfoProvider>
    38 </profile>
    39 <profile id="org.eclipse.cdt.managedbuilder.core.GCCWinManagedMakePerProjectProfile">
    40 <buildOutputProvider>
    41 <openAction enabled="false" filePath=""/>
    42 <parser enabled="true"/>
    43 </buildOutputProvider>
    44 <scannerInfoProvider id="specsFile">
    45 <runAction arguments="-E -P -v -dD ${plugin_state_location}/${specs_file}" command="gcc" useDefault="true"/>
    46 <parser enabled="false"/>
    47 </scannerInfoProvider>
    48 </profile>
    49 </item>
    50 <item id="org.eclipse.cdt.core.pathentry">
    51 <pathentry kind="src" path=""/>
    52 <pathentry kind="out" path=""/>
    53 <pathentry kind="con" path="org.eclipse.cdt.make.core.DISCOVERED_SCANNER_INFO"/>
    54 </item>
    55 <item id="org.eclipse.cdt.make.core.buildtargets">
    56 <buildTargets>
    57 <target name="Build toolchain" path="" targetID="org.eclipse.cdt.make.MakeTargetBuilder">
    58 <buildCommand>make</buildCommand>
    59 <buildArguments/>
    60 <buildTarget>all</buildTarget>
    61 <stopOnError>true</stopOnError>
    62 <useDefaultCommand>true</useDefaultCommand>
    63 </target>
    64 </buildTargets>
    65 </item>
    66 </data>
    67 </cdtproject>