aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorjeffpk <[email protected]>2003-06-26 00:03:05 +0000
committerjeffpk <[email protected]>2003-06-26 00:03:05 +0000
commit5c940777f8a6a92b0d66f4ef9f0b1c7da34306f0 (patch)
tree4694fca39935f3f74067c5bf7151b2d186e29bf4 /build.xml
parent452b39d4994a9dcdd8f553d12d20a84b7cba0df5 (diff)
Modified so it will only build the dx8 plugin if run under Windows.
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@8 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml19
1 files changed, 16 insertions, 3 deletions
diff --git a/build.xml b/build.xml
index a934222..41ceb45 100644
--- a/build.xml
+++ b/build.xml
@@ -18,14 +18,26 @@
<!-- <property name="build.compiler" value="jikes"/> -->
<!-- You might like to set up some overridable paths, etc.: -->
<!-- <property name="mylib" value="../lib/mylib.jar"/> -->
+
+ <!-- If we are running in windows, set dx8 property to true -->
+ <condition property="dx8" >
+ <os family="windows" />
+ </condition>
+
</target>
- <target name="compile" depends="init">
+ <target name="core" depends="init">
<!-- Both srcdir and destdir should be package roots. -->
<!-- They could be different of course; in that case NetBeans can also be set -->
<!-- up to compile to a different filesystem in the same way; see Compiler Types: -->
- <ant dir="coreAPI" />
- <ant dir="plugins/DX8" />
+ <ant dir="coreAPI" />
+ </target>
+
+ <target name="windows_plugin" depends="core" if="dx8" >
+ <!-- Both srcdir and destdir should be package roots. -->
+ <!-- They could be different of course; in that case NetBeans can also be set -->
+ <!-- up to compile to a different filesystem in the same way; see Compiler Types: -->
+ <ant dir="plugins/DX8" />
</target>
<target name="javadoc" depends="init">
@@ -36,6 +48,7 @@
<ant dir="plugins/DX8" target="javadoc"/>
</target>
+ <target name="compile" depends="core,windows_plugin" />
<target name="all" depends="init,compile" description="Build everything.">
<echo message="Application built. Hello ${hello}!"/>