net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2
Class GccProcessor
java.lang.Object
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor
public class GccProcessor
extends java.lang.Object
A add-in class for Gcc processors
convertCygwinFilenames
public static void convertCygwinFilenames(String[] names)
Converts absolute Cygwin file or directory names to the corresponding
Win32 name.
names
- array of names, some elements may be null, will be changed in
place.
getLibraryPatterns
public static String[] getLibraryPatterns(String[] libnames,
LibraryTypeEnum libType)
getMachine
public static String getMachine()
getOutputFileSwitch
public static String[] getOutputFileSwitch(String letter,
String outputFile)
getSpecs
public static String[] getSpecs()
Returns the contents of the gcc specs file.
The implementation locates gcc.exe in the executable path and then
builds a relative path name from the results of -dumpmachine and
-dumpversion. Attempts to use gcc -dumpspecs to provide this information
resulted in stalling on the Execute.run
getVersion
public static String getVersion()
isCaseSensitive
public static boolean isCaseSensitive()
isCygwin
public static boolean isCygwin()
Determines if task is running with cygwin
- true if cygwin was detected
parseSpecs
public static String[][] parseSpecs(String[] specsContent,
String specSectionStart,
String[] options)
Parses the results of the specs file for a specific processor and
options
specsContent
- Contents of specs file as returned from getSpecsspecSectionStart
- start of spec section, for example "*cpp:"options
- command line switches such as "-istart"
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.