summaryrefslogtreecommitdiffstats
path: root/src/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java')
-rw-r--r--src/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java b/src/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java
index 9de9491..5b5beaf 100644
--- a/src/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java
+++ b/src/net/sf/antcontrib/cpptasks/compiler/AbstractLinker.java
@@ -32,8 +32,11 @@ import org.apache.tools.ant.types.Environment;
* @author Adam Murdoch
*/
public abstract class AbstractLinker extends AbstractProcessor
- implements
- Linker {
+ implements Linker {
+
+ protected static String outputFilePrefix = null;
+
+
public AbstractLinker(String[] objExtensions, String[] ignoredExtensions) {
super(objExtensions, ignoredExtensions);
}
@@ -64,13 +67,16 @@ public abstract class AbstractLinker extends AbstractProcessor
}
return bid;
}
+
public Processor changeEnvironment(boolean newEnvironment, Environment env) {
return this;
}
+
abstract protected LinkerConfiguration createConfiguration(CCTask task,
LinkType linkType, ProcessorDef[] baseConfigs,
LinkerDef specificConfig, TargetDef targetPlatform,
VersionInfo versionInfo);
+
public ProcessorConfiguration createConfiguration(CCTask task,
LinkType linkType, ProcessorDef[] baseConfigs,
ProcessorDef specificConfig,
@@ -82,11 +88,17 @@ public abstract class AbstractLinker extends AbstractProcessor
return createConfiguration(task, linkType, baseConfigs,
(LinkerDef) specificConfig, targetPlatform, versionInfo);
}
+
public String getLibraryKey(File libfile) {
return libfile.getName();
}
+
public abstract String[] getOutputFileNames(String fileName, VersionInfo versionInfo);
+ public void setOutputFilePrefix(String outputFilePrefix){
+ this.outputFilePrefix = outputFilePrefix;
+
+ }
/**
* Adds source or object files to the bidded fileset to