summaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml67
1 files changed, 61 insertions, 6 deletions
diff --git a/build.xml b/build.xml
index 7af8946..153db9d 100644
--- a/build.xml
+++ b/build.xml
@@ -14,7 +14,7 @@
*/
-->
-<project name="Java 3D" default="jar-opt" basedir=".">
+<project name="java3d-1.4.0" default="jar-opt" basedir=".">
<!--
*********************************************************************
@@ -51,7 +51,7 @@
* build number that is greater than the previous build's build
* number.
-->
- <property name="version_buildnum" value="1"/>
+ <property name="version_buildnum" value="8"/>
<!--
* The following property specifies the beta revision of the current
@@ -72,8 +72,8 @@
* separated by "periods ("."). The version_base_file property must
* be the same version number as version_base with "_" replacing ".".
-->
- <property name="version_base" value="1.3.3"/>
- <property name="version_base_file" value="1_3_3"/>
+ <property name="version_base" value="1.4.0"/>
+ <property name="version_base_file" value="1_4_0"/>
<!-- ************************************* -->
@@ -152,31 +152,48 @@
<target name="setupSolaris" if="isSolarisOnSparc">
<property name="ostype" value="solaris"/>
<property name="platform" value="solaris-sparc-${build.comp}"/>
+ <property name="install.bin" value="lib/sparc"/>
+ </target>
+
+ <target name="setupSolarisX86" if="isSolarisOnX86">
+ <property name="ostype" value="solaris"/>
+ <property name="platform" value="solaris-x86-${build.comp}"/>
+ <property name="install.bin" value="lib/i386"/>
</target>
<target name="setupLinux" if="isLinuxOnX86">
<property name="ostype" value="linux"/>
<property name="platform" value="linux-i586"/>
+ <property name="install.bin" value="lib/i386"/>
</target>
<target name="setupLinuxAmd64" if="isLinuxOnAmd64">
<property name="ostype" value="linux"/>
<property name="platform" value="linux-amd64"/>
+ <property name="install.bin" value="lib/amd64"/>
</target>
<target name="setupLinuxIA64" if="isLinuxOnIA64">
<property name="ostype" value="linux"/>
<property name="platform" value="linux-ia64"/>
+ <property name="install.bin" value="lib/ia64"/>
+ </target>
+
+ <target name="setupLinuxPPC" if="isLinuxOnPPC">
+ <property name="ostype" value="linux"/>
+ <property name="platform" value="linux-ppc"/>
+ <property name="install.bin" value="lib/ppc"/>
</target>
- <!-- win32 should be rename as windows -->
+ <!-- win32 should be rename as windows -->
<target name="setupWindows" if="isWindowsOnX86">
<property name="ostype" value="win32"/>
<property name="platform" value="windows-i586-${build.comp}"/>
+ <property name="install.bin" value="bin"/>
</target>
<target name="setupPlatform"
- depends="init, setupBuildType, setupSolaris, setupLinux, setupLinuxAmd64, setupLinuxIA64, setupWindows">
+ depends="init, setupBuildType, setupSolaris, setupSolarisX86, setupLinux, setupLinuxAmd64, setupLinuxIA64, setupLinuxPPC, setupWindows">
<property name="build-debug-gen" location="${build}/${platform}/debug/gen"/>
<property name="build-opt-gen" location="${build}/${platform}/opt/gen"/>
<property name="docname" value="java3d-${version_file}-doc"/>
@@ -313,13 +330,38 @@
<condition property="isLinuxOnIA64">
<os name="linux" arch="ia64"/>
</condition>
+
+ <condition property="isLinuxOnPPC">
+ <os name="linux" arch="ppc"/>
+ </condition>
<condition property="isSolarisOnSparc">
<os name="SunOS" arch="sparc"/>
</condition>
+
+ <condition property="isSolarisOnX86">
+ <os name="SunOS" arch="x86"/>
+ </condition>
+
+ <condition property="isa_amd64">
+ <contains string="${sun.cpu.isalist}" substring="amd64"/>
+ </condition>
+
+ <available file="${java.home}/lib/amd64/libjawt.so" property="jre_amd64_present"/>
+
+ <!-- flag indicating that a 64-bit JVM is available for Solaris/x86 -->
+ <condition property="isSolarisOnX86_64">
+ <and>
+ <isset property="isSolarisOnX86"/>
+ <isset property="isa_amd64"/>
+ <isset property="jre_amd64_present"/>
+ </and>
+ </condition>
+
</target>
<target name="compile-debug" depends="setupPlatform">
+<!-- <ant dir="${vecmath_home}" target="jar-debug"/>-->
<ant dir="src/classes" target="compile-debug"/>
<antcall target="compile-debug-native"/>
</target>
@@ -329,6 +371,7 @@
</target>
<target name="compile-opt" depends="setupPlatform">
+<!-- <ant dir="${vecmath_home}" target="jar-opt"/>-->
<ant dir="src/classes" target="compile-opt"/>
<antcall target="compile-opt-native"/>
</target>
@@ -472,6 +515,14 @@
<delete dir="${build}/${platform}/opt/lib/ext"/>
</target>
+ <target name="install-debug" depends="jar-debug">
+ <ant dir="src/classes" target="install-debug"/>
+ </target>
+
+ <target name="uninstall" depends="setupPlatform">
+ <ant dir="src/classes" target="uninstall"/>
+ </target>
+
<description>
The following ant targets are available ("jar-opt" is the default):
@@ -535,5 +586,9 @@ The following ant targets are available ("jar-opt" is the default):
rpm - creates a i586 rpm for installation in /usr/java/jdk1.5.0
the rpm is placed in dist/rpm
+
+ install-debug - installs the debug build into the JDK pointed to by JAVA_HOME
+
+ uninstall - uninstalls Java 3D from the JDK pointed to by JAVA_HOME
</description>
</project>