Class GccProcessor
java.lang.Object
net.sf.antcontrib.cpptasks.gcc.cross.sparc_sun_solaris2.GccProcessor
A add-in class for Gcc processors
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
addLibraryPatterns
(String[] libnames, StringBuffer buf, String prefix, String extension, String[] patterns, int offset) static void
convertCygwinFilenames
(String[] names) Converts absolute Cygwin file or directory names to the corresponding Win32 name.static String[]
getLibraryPatterns
(String[] libnames, LibraryTypeEnum libType) static String
static String[]
getOutputFileSwitch
(String letter, String outputFile) static String[]
getSpecs()
Returns the contents of the gcc specs file.static String
static boolean
static boolean
isCygwin()
Determines if task is running with cygwinprivate static boolean
isHPUX()
static String[][]
parseSpecs
(String[] specsContent, String specSectionStart, String[] options) Parses the results of the specs file for a specific processor and options
-
Field Details
-
machine
-
specs
-
version
-
-
Constructor Details
-
GccProcessor
private GccProcessor()
-
-
Method Details
-
addLibraryPatterns
private static int addLibraryPatterns(String[] libnames, StringBuffer buf, String prefix, String extension, String[] patterns, int offset) -
convertCygwinFilenames
Converts absolute Cygwin file or directory names to the corresponding Win32 name.- Parameters:
names
- array of names, some elements may be null, will be changed in place.
-
getLibraryPatterns
-
getMachine
-
getOutputFileSwitch
-
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- Returns:
- contents of the specs file
-
getVersion
-
isCaseSensitive
public static boolean isCaseSensitive() -
isCygwin
public static boolean isCygwin()Determines if task is running with cygwin- Returns:
- true if cygwin was detected
-
isHPUX
private static boolean isHPUX() -
parseSpecs
public static String[][] parseSpecs(String[] specsContent, String specSectionStart, String[] options) Parses the results of the specs file for a specific processor and options- Parameters:
specsContent
- Contents of specs file as returned from getSpecsspecSectionStart
- start of spec section, for example "*cpp:"options
- command line switches such as "-istart"
-