aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorswpalmer <[email protected]>2003-09-04 15:11:22 +0000
committerswpalmer <[email protected]>2003-09-04 15:11:22 +0000
commitd38e22b9e7c5bf6320e16dfef6c2b59cbd6a0957 (patch)
tree669055493a6017ed29b725d336e1ffb866472773 /build.xml
parent894f622820f5bf9fb6b80cbaf2a65b8c6eaeecf8 (diff)
Added preliminary OS X support to the Ant build process
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@48 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml16
1 files changed, 15 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 021dde1..d5642b2 100644
--- a/build.xml
+++ b/build.xml
@@ -29,6 +29,14 @@
<!--<os family="unix" />-->
<os name="linux" />
</condition>
+
+ <!-- If we are running in Mac OS X, set osx property to true -->
+ <condition property="osx" >
+ <and>
+ <os family="mac" />
+ <os family="unix" />
+ </and>
+ </condition>
</target>
<target name="core" depends="init">
@@ -51,6 +59,10 @@
<!-- up to compile to a different filesystem in the same way; see Compiler Types: -->
<ant dir="plugins/linux" />
</target>
+
+ <target name="OSX_plugin" depends="core" if="osx" >
+ <ant dir="plugins/OSX" />
+ </target>
<target name="javadoc" depends="init">
<!-- Both srcdir and destdir should be package roots. -->
@@ -59,9 +71,10 @@
<ant dir="coreAPI" target="javadoc"/>
<ant dir="plugins/DX8" target="javadoc"/>
<ant dir="plugins/linux" target="javadoc"/>
+ <ant dir="plugins/OSX" target="javadoc"/>
</target>
- <target name="compile" depends="core,windows_plugin,linux_plugin" />
+ <target name="compile" depends="core,windows_plugin,linux_plugin,OSX_plugin" />
<target name="all" depends="init,compile" description="Build everything.">
<echo message="Application built. Hello ${hello}!"/>
@@ -70,6 +83,7 @@
<target name="clean" depends="init" description="Clean all build products.">
<ant dir="plugins/DX8" target="clean"/>
<ant dir="plugins/linux" target="clean"/>
+ <ant dir="plugins/OSX" target="clean"/>
<ant dir="coreAPI" target="clean"/>
<delete failonerror="no">
<fileset dir="dist">