diff options
author | Kenneth Russel <[email protected]> | 2006-07-28 22:13:41 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2006-07-28 22:13:41 +0000 |
commit | d111dbe252e3673ad2e713283ace06724efd0141 (patch) | |
tree | 7b60ab00693dc802705b7942d87428fe78928734 /make | |
parent | 9075b0f279870c086b656f6329f9a3dd8520157e (diff) |
Applied trick from user Kickaha on JOGL forum to potentially allow Mac
OS X universal binaries to be used on 10.3 as well; needs more testing
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@864 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make')
-rw-r--r-- | make/build.xml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/make/build.xml b/make/build.xml index 726cadf11..f55acf382 100644 --- a/make/build.xml +++ b/make/build.xml @@ -1017,6 +1017,21 @@ <move file="${obj}/libjogl.dylib" tofile="${obj}/libjogl.jnilib" /> <move file="${obj}/libjogl_awt.dylib" tofile="${obj}/libjogl_awt.jnilib" /> <move file="${obj}/libjogl_cg.dylib" tofile="${obj}/libjogl_cg.jnilib" failonerror="false" /> + <antcall target="c.fixup.jawt.version.macosx" inheritrefs="true" /> + </target> + + <target name="c.fixup.jawt.version.macosx" if="macosxfat"> + <!-- Edit the link to the JAWT version in the resulting jnilib + file; this isn't strictly needed but seems to allow the + universal binaries to work on 10.3 machines as well, which + is desirable for some end users --> + <apply executable="install_name_tool"> + <arg value="-change" /> + <arg value="/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjawt.dylib" /> + <arg value="/System/Library/Frameworks/JavaVM.framework/Libraries/libjawt.dylib" /> + <srcfile /> + <fileset dir="${obj}" includes="libjogl_awt.jnilib" /> + </apply> </target> <target name="c.build.jogl.core"> |