org.codehaus.mojo.natives.c
Class CLinker
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.mojo.natives.linker.AbstractLinker
org.codehaus.mojo.natives.c.CLinker
- All Implemented Interfaces:
- Linker, org.codehaus.plexus.logging.LogEnabled
- Direct Known Subclasses:
- CLinkerClassic
public class CLinker
- extends AbstractLinker
Generic C/CPP linker with "-o " as its output option
- Version:
- $Id: CLinker.java 6588 2008-03-28 12:22:57Z bentmann $
- Author:
- Dan Tran
Fields inherited from interface org.codehaus.mojo.natives.linker.Linker |
ROLE |
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLinker
public CLinker()
createLinkerCommandLine
protected org.codehaus.plexus.util.cli.Commandline createLinkerCommandLine(List objectFiles,
LinkerConfiguration config)
throws NativeBuildException
- Specified by:
createLinkerCommandLine
in class AbstractLinker
- Returns:
- Commandline of a linker base on its configuration and object files
- Throws:
NativeBuildException
getLinkerOutputOption
protected String getLinkerOutputOption()
- Returns:
- output option flag of a generic C linker
setCommandLineForExternalLibraries
protected void setCommandLineForExternalLibraries(org.codehaus.plexus.util.cli.Commandline cl,
LinkerConfiguration config)
throws NativeBuildException
- Setup Commandline to handle external library depending on extention type
- Parameters:
cl
- Commandlineconfig
- LinkerConfiguration
- Throws:
NativeBuildException
Copyright © 2011 Codehaus. All Rights Reserved.