1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Since standard make project don't really know what there target platform

is lets (for now) assume any "*" if the extension does not list any, in the
future we'll call ICOwner.getPlatform(IProject) (new) to give back a target platform
which the user has given us.
This commit is contained in:
David Inglis 2002-11-04 19:28:32 +00:00
parent e81efef056
commit d88c252a40
2 changed files with 53 additions and 18 deletions

View file

@ -92,7 +92,6 @@
name="%makeproject.name" name="%makeproject.name"
point="org.eclipse.cdt.core.CProject"> point="org.eclipse.cdt.core.CProject">
<cproject <cproject
platform="local"
class="org.eclipse.cdt.internal.core.make.MakeProject"> class="org.eclipse.cdt.internal.core.make.MakeProject">
</cproject> </cproject>
</extension> </extension>
@ -104,21 +103,57 @@
class="org.eclipse.cdt.internal.core.make.MakeBuilder"> class="org.eclipse.cdt.internal.core.make.MakeBuilder">
</run> </run>
</extension> </extension>
<!-- Some well known C file extensions --> <!-- Some well known C file extensions -->
<extension point="org.eclipse.team.core.fileTypes"> <extension
<fileTypes extension="c" type="text"/> point="org.eclipse.team.core.fileTypes">
<fileTypes extension="cc" type="text"/> <fileTypes
<fileTypes extension="cpp" type="text"/> type="text"
<fileTypes extension="cxx" type="text"/> extension="c">
<fileTypes extension="h" type="text"/> </fileTypes>
<fileTypes extension="hh" type="text"/> <fileTypes
<fileTypes extension="o" type="binary"/> type="text"
<fileTypes extension="a" type="binary"/> extension="cc">
<fileTypes extension="so" type="binary"/> </fileTypes>
<fileTypes extension="dll" type="binary"/> <fileTypes
<fileTypes extension="exe" type="binary"/> type="text"
<fileTypes extension="com" type="binary"/> extension="cpp">
</fileTypes>
<fileTypes
type="text"
extension="cxx">
</fileTypes>
<fileTypes
type="text"
extension="h">
</fileTypes>
<fileTypes
type="text"
extension="hh">
</fileTypes>
<fileTypes
type="binary"
extension="o">
</fileTypes>
<fileTypes
type="binary"
extension="a">
</fileTypes>
<fileTypes
type="binary"
extension="so">
</fileTypes>
<fileTypes
type="binary"
extension="dll">
</fileTypes>
<fileTypes
type="binary"
extension="exe">
</fileTypes>
<fileTypes
type="binary"
extension="com">
</fileTypes>
</extension> </extension>
</plugin> </plugin>

View file

@ -50,7 +50,7 @@ public class COwner implements ICOwnerInfo {
} }
} }
} }
return fPlatform; return fPlatform == null ? "*" : fPlatform;
} }
void configure(IProject project, ICDescriptor cproject) throws CoreException { void configure(IProject project, ICDescriptor cproject) throws CoreException {