com.github.maven_nar.cpptasks.devstudio
Class DevStudioCompatibleLibrarian

java.lang.Object
  extended by com.github.maven_nar.cpptasks.compiler.AbstractProcessor
      extended by com.github.maven_nar.cpptasks.compiler.AbstractLinker
          extended by com.github.maven_nar.cpptasks.compiler.CommandLineLinker
              extended by com.github.maven_nar.cpptasks.devstudio.DevStudioCompatibleLibrarian
All Implemented Interfaces:
Linker, Processor, Cloneable
Direct Known Subclasses:
DevStudioLibrarian, IntelWin32Librarian

public abstract class DevStudioCompatibleLibrarian
extends CommandLineLinker

Abstract base adapter for librarians with command line options compatible with the Microsoft(r) Library Manager

Author:
Curt Arnold

Field Summary
 
Fields inherited from class com.github.maven_nar.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
 
Constructor Summary
DevStudioCompatibleLibrarian(String command, String identifierArg)
           
 
Method Summary
protected  void addImpliedArgs(CCTask task, boolean debug, LinkType linkType, Vector args)
           
protected  String getCommandFileSwitch(String cmdFile)
           
 File[] getLibraryPath()
          returns the library path for the linker
 String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType)
          Returns a set of filename patterns corresponding to library names.
 int getMaximumCommandLength()
           
 String[] getOutputFileSwitch(String outFile)
           
 boolean isCaseSensitive()
          Returns true if the linker is case-sensitive
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.CommandLineLinker
addBase, addEntry, addFixed, addIncremental, addLibrarySets, addMap, addStack, createConfiguration, decorateLinkerOption, getCommand, getCommandWithPath, getIdentifier, getLibtoolLinker, getOutputFileNames, getOutputFileSwitch, getStartupObject, link, prepareArguments, prepareFilename, prepareResponseFile, quoteFilename, runCommand, setCommand
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractLinker
addVersionFiles, bid, changeEnvironment, createConfiguration, getLibraryKey
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractProcessor
clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.github.maven_nar.cpptasks.compiler.Linker
getLinker
 

Constructor Detail

DevStudioCompatibleLibrarian

public DevStudioCompatibleLibrarian(String command,
                                    String identifierArg)
Method Detail

addImpliedArgs

protected void addImpliedArgs(CCTask task,
                              boolean debug,
                              LinkType linkType,
                              Vector args)
Overrides:
addImpliedArgs in class CommandLineLinker

getCommandFileSwitch

protected String getCommandFileSwitch(String cmdFile)
Specified by:
getCommandFileSwitch in class CommandLineLinker

getLibraryPath

public File[] getLibraryPath()
Description copied from interface: Linker
returns the library path for the linker


getLibraryPatterns

public String[] getLibraryPatterns(String[] libnames,
                                   LibraryTypeEnum libType)
Description copied from interface: Linker
Returns a set of filename patterns corresponding to library names. For example, "advapi32" would be expanded to "advapi32.dll" by DevStudioLinker and to "libadvapi32.a" and "libadvapi32.so" by GccLinker.

Parameters:
libnames - array of library names

getMaximumCommandLength

public int getMaximumCommandLength()
Specified by:
getMaximumCommandLength in class CommandLineLinker

getOutputFileSwitch

public String[] getOutputFileSwitch(String outFile)
Specified by:
getOutputFileSwitch in class CommandLineLinker

isCaseSensitive

public boolean isCaseSensitive()
Description copied from interface: Linker
Returns true if the linker is case-sensitive



Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.