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:
BCCLinker, CLinkerClassic, MSVCLinker
@Component(role=Linker.class,
hint="generic",
instantiationStrategy="per-lookup")
public class CLinker
extends AbstractLinker
Generic C/CPP linker with "-o " as its output option
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.codehaus.plexus.util.cli.CommandlinecreateLinkerCommandLine(List<File> objectFiles, LinkerConfiguration config) protected Stringprotected voidsetCommandLineForExternalLibraries(org.codehaus.plexus.util.cli.Commandline cl, LinkerConfiguration config) Setup Commandline to handle external library depending on extention typeMethods inherited from class AbstractLinker
linkMethods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
CLinker
public CLinker()
-
-
Method Details
-
createLinkerCommandLine
protected org.codehaus.plexus.util.cli.Commandline createLinkerCommandLine(List<File> objectFiles, LinkerConfiguration config) throws NativeBuildException - Specified by:
createLinkerCommandLinein classAbstractLinker- Returns:
- Commandline of a linker base on its configuration and object files
- Throws:
NativeBuildException
-
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
-