summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerard Ziemski <[email protected]>2005-10-06 02:46:15 +0000
committerGerard Ziemski <[email protected]>2005-10-06 02:46:15 +0000
commite528583bc8d13ec49ade049db7abf43f1766cca7 (patch)
treeeec8bc318c617e4ea3c2439b76c45427f2098e84
parent88b7852c405cc862dfd2b52bfb07200e0e1b5123 (diff)
add support for Mac OS X fat library (ppc and i386)
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@392 232f8b59-042b-4e1e-8c03-345bb8c30851
-rw-r--r--make/build.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/make/build.xml b/make/build.xml
index 6a32b8dbd..0c8571e91 100644
--- a/make/build.xml
+++ b/make/build.xml
@@ -25,6 +25,7 @@
- Public targets:
- linux
- macosx
+ - macosxfat (ppc & i386 - requires Intel Transition Development Kit or fat Mac OS X)
- solaris
- win32.vc6
- win32.vc7
@@ -694,6 +695,10 @@
</compiler>
<compiler id="compiler.cfg.macosx" name="gcc">
+ <compilerarg value="-arch" if="macosxfat"/>
+ <compilerarg value="ppc" if="macosxfat"/>
+ <compilerarg value="-arch" if="macosxfat"/>
+ <compilerarg value="i386" if="macosxfat"/>
<compilerarg value="-Wmost" />
<compilerarg value="-ObjC" />
<defineset>
@@ -738,6 +743,10 @@
</linker>
<linker id="linker.cfg.macosx" name="gcc">
+ <linkerarg value="-arch" if="macosxfat"/>
+ <linkerarg value="ppc" if="macosxfat"/>
+ <linkerarg value="-arch" if="macosxfat"/>
+ <linkerarg value="i386" if="macosxfat"/>
<linkerarg value="-framework" />
<linkerarg value="Cocoa" />
<linkerarg value="-framework" />
@@ -1112,6 +1121,10 @@ Use a platform specific target: linux, linux.amd64, linux.ia64, macosx, solaris
<!-- Compile the native C sources and build the jogl lib. -->
<antcall target="c.compile.jogl.macosx" />
</target>
+ <target name="macosxfat" depends="macosx">
+ <property name="macosxfat" value="true" />
+ <antcall target="macosx" inheritRefs="true" />
+ </target>
<!--
- FreeBSD (assuming GCC)