aboutsummaryrefslogtreecommitdiffstats
path: root/make/gluegen-cpptasks.xml
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2008-05-27 03:47:46 +0000
committerSven Gothel <[email protected]>2008-05-27 03:47:46 +0000
commit0ce0a36ec694da77a0ef02ed46c2b152a17d5c80 (patch)
tree5580d9311765f26f18032854aa51e481a83e6548 /make/gluegen-cpptasks.xml
parent040e730115f8a50b598edb448fc29f8917bde392 (diff)
Adding customized gluegen.cpptasks.configure.compiler target.
Specify your target in ${user.home}/gluegen.compiler.xml' The enables a user to specify the compiler and linker, including all options. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@78 a78bb65f-1512-4460-ba86-f6dc96a7bf27
Diffstat (limited to 'make/gluegen-cpptasks.xml')
-rwxr-xr-xmake/gluegen-cpptasks.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/make/gluegen-cpptasks.xml b/make/gluegen-cpptasks.xml
index 48b881b..07befc3 100755
--- a/make/gluegen-cpptasks.xml
+++ b/make/gluegen-cpptasks.xml
@@ -103,6 +103,9 @@
<!-- import cpptasks -->
<typedef resource="net/sf/antcontrib/cpptasks/antlib.xml" classpath="${gluegen.root}/make/lib/cpptasks.jar"/>
+ <available file="${user.home}/gluegen.compiler.xml" property="gluegen.compiler.present"/>
+ <import file="${user.home}/gluegen.compiler.xml" optional="true" />
+
<!-- Detect OS and compiler configuration -->
<target name="gluegen.cpptasks.detect.os.1" unless="gluegen.cpptasks.detected.os">
<condition property="isOSX">
@@ -389,9 +392,9 @@
<property name="c.compiler.debug" value="false" />
</target>
- <target name="gluegen.cpptasks.configure.compiler">
+ <target name="gluegen.cpptasks.configure.compiler" unless="gluegen.compiler.present">
<!-- compiler configuration -->
- <compiler id="compiler.cfg.linux" name="gcc" />
+ <compiler id="compiler.cfg.linux" name="gcc"/>
<compiler id="compiler.cfg.linux.amd64" name="gcc">
<compilerarg value="-fPIC"/>