aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/OSX/src/native/build.xml
diff options
context:
space:
mode:
authorswpalmer <[email protected]>2003-09-04 15:12:02 +0000
committerswpalmer <[email protected]>2003-09-04 15:12:02 +0000
commitad2792c3bdd53de1e0b3b78b4c15cb60f8d15ef5 (patch)
treeccbd592af31d1e0b0324606e1a02bdfbc8636aa5 /plugins/OSX/src/native/build.xml
parentd38e22b9e7c5bf6320e16dfef6c2b59cbd6a0957 (diff)
Preliminary Ant build support for OS X
git-svn-id: file:///home/sven/projects/JOGL/git-svn/svn-server-sync/jinput/trunk@49 e343933a-64c8-49c5-92b1-88f2ce3e89e8
Diffstat (limited to 'plugins/OSX/src/native/build.xml')
-rw-r--r--plugins/OSX/src/native/build.xml18
1 files changed, 18 insertions, 0 deletions
diff --git a/plugins/OSX/src/native/build.xml b/plugins/OSX/src/native/build.xml
new file mode 100644
index 0000000..3d6a964
--- /dev/null
+++ b/plugins/OSX/src/native/build.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" ?>
+<project name="OS X Plugin, Native code" basedir="." default="compileNativeJinputLib">
+
+ <target name="init">
+ <mkdir dir="build"/>
+ </target>
+
+ <target name="compileNativeJinputLib" depends="init">
+ <exec dir="." executable="cc" os="Mac OS X">
+
+ <arg line="-c -I${java.home}/include jinputjnilib.c"/>
+ </exec>
+ <exec dir="." executable="cc" os="Mac OS X">
+ <arg line="-bundle -o libjinput.jnilib jinputjnilib.o -framework JavaVM -framework CoreFoundation -framework IOKit "/>
+ </exec>
+ </target>
+
+</project>