|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.types.DataType
net.sf.antcontrib.cpptasks.ProcessorDef
net.sf.antcontrib.cpptasks.LinkerDef
A linker definition. linker elements may be placed either as children of a cc element or the project element. A linker element with an id attribute may be referenced by linker elements with refid or extends attributes.
Field Summary |
Fields inherited from class net.sf.antcontrib.cpptasks.ProcessorDef |
newEnvironment |
Fields inherited from class org.apache.tools.ant.types.DataType |
checked, ref |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
description, location, project |
Constructor Summary | |
LinkerDef()
Default constructor |
Method Summary | |
void |
addConfiguredLinkerArg(LinkerArgument arg)
Adds a linker command-line arg. |
void |
addConfiguredLinkerParam(LinkerParam param)
Adds a compiler command-line arg. |
void |
addLibset(LibrarySet libset)
Adds a system library set. |
void |
addSyslibset(SystemLibrarySet libset)
Adds a system library set. |
ProcessorConfiguration |
createConfiguration(CCTask task,
LinkType linkType,
ProcessorDef baseDef,
TargetDef targetPlatform,
VersionInfo versionInfo)
Creates a configuration |
void |
execute()
|
LibrarySet[] |
getActiveLibrarySets(LinkerDef[] defaultProviders,
int index)
Returns an array of active library sets for this linker definition. |
LibrarySet[] |
getActiveSystemLibrarySets(LinkerDef[] defaultProviders,
int index)
Returns an array of active library sets for this linker definition. |
LibrarySet[] |
getActiveUserLibrarySets(LinkerDef[] defaultProviders,
int index)
Returns an array of active library sets for this linker definition. |
long |
getBase(LinkerDef[] defaultProviders,
int index)
|
java.lang.String |
getEntry(LinkerDef[] defaultProviders,
int index)
|
java.lang.Boolean |
getFixed(LinkerDef[] defaultProviders,
int index)
|
boolean |
getIncremental(LinkerDef[] defaultProviders,
int index)
|
boolean |
getMap(LinkerDef[] defaultProviders,
int index)
|
Processor |
getProcessor()
Obtains the appropriate processor (compiler, linker) |
int |
getStack(LinkerDef[] defaultProviders,
int index)
|
void |
setBase(FlexLong base)
Sets the base address. |
void |
setEntry(java.lang.String entry)
Sets the starting address. |
void |
setFixed(boolean fixed)
If true, marks the file to be loaded only at its preferred address. |
void |
setIncremental(boolean incremental)
If true, allows incremental linking. |
void |
setMap(boolean map)
If set to true, a map file will be produced. |
void |
setName(LinkerEnum name)
Sets linker type. |
protected void |
setProcessor(Processor proc)
Sets the processor |
void |
setStack(org.apache.tools.ant.types.FlexInteger stack)
Sets stack size in bytes. |
void |
visitSystemLibraries(Linker linker,
FileVisitor libraryVisitor)
|
void |
visitUserLibraries(Linker linker,
FileVisitor libraryVisitor)
|
Methods inherited from class net.sf.antcontrib.cpptasks.ProcessorDef |
addConfiguredProcessorArg, addConfiguredProcessorParam, addEnv, addFileset, booleanValueOf, getActiveProcessorArgs, getActiveProcessorParams, getDebug, getDefaultProviders, getExtends, getInherit, getLibtool, getRebuild, hasFileSets, isActive, setClassname, setDebug, setDescription, setExtends, setId, setIf, setInherit, setLibtool, setNewenvironment, setRebuild, setRefid, setUnless, visitFiles |
Methods inherited from class org.apache.tools.ant.types.DataType |
checkAttributesAllowed, checkChildrenAllowed, circularReference, clone, dieOnCircularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, setChecked, tooManyAttributes, toString |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getDescription, getLocation, getProject, log, log, setLocation, setProject |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LinkerDef()
Object.Object()
Method Detail |
public void addConfiguredLinkerArg(LinkerArgument arg)
public void addConfiguredLinkerParam(LinkerParam param)
public void addLibset(LibrarySet libset)
public void addSyslibset(SystemLibrarySet libset)
public ProcessorConfiguration createConfiguration(CCTask task, LinkType linkType, ProcessorDef baseDef, TargetDef targetPlatform, VersionInfo versionInfo)
ProcessorDef
createConfiguration
in class ProcessorDef
baseDef
- reference to def from containing public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
public LibrarySet[] getActiveLibrarySets(LinkerDef[] defaultProviders, int index)
public LibrarySet[] getActiveSystemLibrarySets(LinkerDef[] defaultProviders, int index)
public LibrarySet[] getActiveUserLibrarySets(LinkerDef[] defaultProviders, int index)
public long getBase(LinkerDef[] defaultProviders, int index)
public java.lang.Boolean getFixed(LinkerDef[] defaultProviders, int index)
public boolean getIncremental(LinkerDef[] defaultProviders, int index)
public boolean getMap(LinkerDef[] defaultProviders, int index)
public java.lang.String getEntry(LinkerDef[] defaultProviders, int index)
public Processor getProcessor()
ProcessorDef
getProcessor
in class ProcessorDef
public int getStack(LinkerDef[] defaultProviders, int index)
public void setBase(FlexLong base)
base
- base addresspublic void setEntry(java.lang.String entry)
public void setFixed(boolean fixed)
public void setIncremental(boolean incremental)
public void setMap(boolean map)
public void setName(LinkerEnum name) throws org.apache.tools.ant.BuildException
gcc | Gcc Linker |
g++ | G++ Linker |
ld | Ld Linker |
ar | Gcc Librarian |
msvc | Microsoft Linker |
bcc | Borland Linker |
df | Compaq Visual Fortran Linker |
icl | Intel Linker for Windows (IA-32) |
ecl | Intel Linker for Windows (IA-64) |
icc | Intel Linker for Linux (IA-32) |
ecc | Intel Linker for Linux (IA-64) |
CC | Sun ONE Linker |
aCC | HP aC++ Linker |
os390 | OS390 Linker |
os390batch | OS390 Linker |
os400 | IccLinker |
sunc89 | C89 Linker |
xlC | VisualAge Linker |
wcl | OpenWatcom C/C++ linker |
wfl | OpenWatcom FORTRAN linker |
org.apache.tools.ant.BuildException
protected void setProcessor(Processor proc) throws org.apache.tools.ant.BuildException
ProcessorDef
setProcessor
in class ProcessorDef
proc
- processor, may not be null.
org.apache.tools.ant.BuildException
- if ProcessorDef is a referencepublic void setStack(org.apache.tools.ant.types.FlexInteger stack)
public void visitSystemLibraries(Linker linker, FileVisitor libraryVisitor)
public void visitUserLibraries(Linker linker, FileVisitor libraryVisitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |