diff options
author | gfxadmin <[email protected]> | 2006-06-13 23:51:09 +0000 |
---|---|---|
committer | gfxadmin <[email protected]> | 2006-06-13 23:51:09 +0000 |
commit | 8f9ad92a20f86a7ee4591d15487ea765c7e31e37 (patch) | |
tree | 45c240e5c9a8145d41888c809e4fb88a2c86d766 | |
parent | eca3b541ae0e7f810c95f278e71a0fc6052c37e5 (diff) |
Issue number:
Obtained from:
Submitted by: Travis
Reviewed by:
Adding support for 64 bit Solaris on AMD64. Make sure the 64 bit JVM is
in your path and it will build the 64 instead of the 32 target.
We are still having problems with this variant running properly in many
cases and I will file an issue.
I will putback the accompanying code in gluegen shortly.
Modified Files:
make/build.xml
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@809 232f8b59-042b-4e1e-8c03-345bb8c30851
-rw-r--r-- | make/build.xml | 46 |
1 files changed, 45 insertions, 1 deletions
diff --git a/make/build.xml b/make/build.xml index a4b371bba..75948efb6 100644 --- a/make/build.xml +++ b/make/build.xml @@ -224,6 +224,11 @@ <condition property="cpu" value="i386"> <os name="SunOS" arch="x86" /> </condition> + + <condition property="cpu" value="amd64"> + <os name="SunOS" arch="amd64" /> + </condition> + <property name="java.lib.dir.solaris" value="${java.home.dir}/jre/lib/${cpu}" /> <property name="java.lib.dir.macosx" value="/System/Library/Frameworks/JavaVM.framework/Libraries" /> <property name="gl.headers" value="${stub.includes.dir}/opengl/**/*.h" /> <!-- NOTE: this MUST be relative for FileSet --> <!-- CHECK: this may need to be pruned for each platform --> @@ -401,6 +406,16 @@ </target> + <target name="declare.solarisAMD64" depends="declare.x11" if="isSolarisAMD64"> + <echo message="SolarisAMD64" /> + <property name="java.includes.dir.platform" value="${java.includes.dir.solaris}" /> + <property name="java.lib.dir.platform" value="${java.lib.dir.solaris}" /> + + <property name="compiler.cfg.id" value="compiler.cfg.solarisAMD64" /> + <property name="linker.cfg.id.core" value="linker.cfg.solarisAMD64" /> + <property name="linker.cfg.id.drihack" value="linker.cfg.solarisAMD64.drihack" /> + </target> + <target name="declare.macosx" if="isOSX"> <echo message="MacOSX" /> @@ -466,7 +481,7 @@ <mkdir dir="${obj.cg}" /> </target> - <target name="declare" depends="init,declare.win32,declare.linux,declare.solaris,declare.solarisSparcv9,declare.macosx,declare.freebsd,declare.hpux" /> + <target name="declare" depends="init,declare.win32,declare.linux,declare.solaris,declare.solarisSparcv9,declare.solarisAMD64,declare.macosx,declare.freebsd,declare.hpux" /> <!-- ================================================================== --> <!-- GlueGen and BuildStaticGLInfo creation, task setup and Java file generation --> @@ -729,11 +744,18 @@ </compiler> <compiler id="compiler.cfg.solarisSparcv9" name="suncc"> + <compilerarg value="-fast" /> <compilerarg value="-xchip=ultra" /> <compilerarg value="-xarch=v9a" /> <compilerarg value="-xcode=32" /> </compiler> + <compiler id="compiler.cfg.solarisAMD64" name="suncc"> + <compilerarg value="-fast" /> + <compilerarg value="-xchip=opteron" /> + <compilerarg value="-xarch=amd64" /> + <!-- <compilerarg value="-xcache=64/64/2:1024/64/16" /> --> + </compiler> <compiler id="compiler.cfg.win32.mingw" name="gcc"> <defineset> @@ -836,6 +858,12 @@ <syslibset dir="/usr/lib/sparcv9" libs="X11"/> </linker> + <linker id="linker.cfg.solarisAMD64" name="suncc"> + <linkerarg value="-xarch=amd64" /> + <syslibset dir="/usr/lib/amd64" libs="GL"/> + <syslibset dir="/usr/lib/amd64" libs="X11"/> + </linker> + <linker id="linker.cfg.solarisSparcv9.drihack" name="suncc" > <linkerarg value="-xarch=v9a" /> @@ -844,6 +872,13 @@ <syslibset dir="/usr/lib/sparcv9" libs="X11"/> </linker> + <linker id="linker.cfg.solarisAMD64.drihack" name="suncc" > + <linkerarg value="-xarch=amd64" /> + <syslibset dir="/usr/lib/amd64" libs="GL"/> + <syslibset dir="/usr/lib/amd64" libs="GLU"/> + <syslibset dir="/usr/lib/amd64" libs="X11"/> + </linker> + <linker id="linker.cfg.win32.mingw" name="gcc" incremental="false"> <linkerarg value="-Wl,--kill-at" /> <!-- remove @ from function names --> @@ -1541,6 +1576,15 @@ <antcall target="all" /> </target> + + <!-- + - Solaris AMD64 (assuming Solaris CC) + --> + <target name="solarisAMD64"> + <antcall target="all" /> + </target> + + <!-- - Mac OSX --> |