summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcarnold <[email protected]>2008-02-21 06:44:23 +0000
committercarnold <[email protected]>2008-02-21 06:44:23 +0000
commita290048b6175ee1dbf9ecb2fe727a76c65e0f39d (patch)
tree5815e097a30ee35642ac42852a80afe9a3b8a795
parentd93400b9730d01c0b2d806776419311c4404b3c8 (diff)
Now with working Windres compiler
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/cpptasks/trunk@156 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-rw-r--r--src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java b/src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java
index 2d598f5..a617024 100644
--- a/src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java
+++ b/src/main/java/net/sf/antcontrib/cpptasks/gcc/WindresResourceCompiler.java
@@ -39,8 +39,8 @@ public final class WindresResourceCompiler extends CommandLineCompiler {
return instance;
}
private WindresResourceCompiler(boolean newEnvironment, Environment env) {
- super("rc", null, new String[]{".rc"}, new String[]{".h", ".hpp",
- ".inl"}, ".res", false, null, newEnvironment, env);
+ super("windres", null, new String[]{".rc"}, new String[]{".h", ".hpp",
+ ".inl"}, ".o", false, null, newEnvironment, env);
}
protected void addImpliedArgs(final Vector args,
final boolean debug,
@@ -92,9 +92,7 @@ public final class WindresResourceCompiler extends CommandLineCompiler {
int index) {
if (index == 0) {
String outputFileName = getOutputFileNames(filename, null)[0];
- String fullOutputName = new File(outputDir, outputFileName)
- .toString();
- return "-o" + fullOutputName;
+ return "-o" + outputFileName;
}
return filename;
}