summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkbr <[email protected]>2006-11-16 07:32:06 +0000
committerkbr <[email protected]>2006-11-16 07:32:06 +0000
commita3c6a170ca6751fdb8e6b000783304666d994f2f (patch)
tree5c5d2ded71068b7d0c827e30fa68530d114fce30
parent4a4bcd2a1d71ea448e61bc6dc509bf9a4d6d59b1 (diff)
Revised JOAL build and dist target to build zip archives for
developers, a zip source archive including the key generated source files, and a zip file containing all Java Web Start jars git-svn-id: file:///home/mbien/NetBeansProjects/JOGAMP/joal-sync/git-svn/../svn-server-sync/joal/trunk@357 03bf7f67-59de-4072-a415-9a990d468a3f
-rwxr-xr-xLICENSE.txt35
-rwxr-xr-xmake/build.xml67
2 files changed, 95 insertions, 7 deletions
diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100755
index 0000000..c4d1404
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,35 @@
+JOAL is released under the BSD license. The full license terms follow:
+
+ Copyright (c) 2003-2006 Sun Microsystems, Inc. All Rights Reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+
+ - Redistribution of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistribution in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ Neither the name of Sun Microsystems, Inc. or the names of
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+ This software is provided "AS IS," without a warranty of any kind. ALL
+ EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
+ INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A
+ PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN
+ MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR
+ ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR
+ ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR
+ DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE
+ DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY,
+ ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF
+ SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+ You acknowledge that this software is not designed or intended for use
+ in the design, construction, operation or maintenance of any nuclear
+ facility.
diff --git a/make/build.xml b/make/build.xml
index 145321e..ecbbe55 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -566,6 +566,47 @@
linkoffline="${javadoc.link} 142-packages" />
</target>
+ <!-- Build zip archives for developers, both source and binaries -->
+ <target name="zip">
+ <!-- Clean up and create temporary directory -->
+ <delete dir="../build/tmp" failonerror="false" />
+ <delete>
+ <fileset dir="../build">
+ <include name="*.zip" />
+ </fileset>
+ </delete>
+ <tstamp>
+ <format property="timestamp" pattern="yyyyMMdd"/>
+ </tstamp>
+ <property name="tmp.version" value="${base_version}-pre-${timestamp}" />
+ <property name="joal.tmp.version" value="joal-${tmp.version}-${os.and.arch}" />
+ <mkdir dir="../build/tmp/${joal.tmp.version}/lib" />
+ <copy file="../build/joal.jar" todir="../build/tmp/${joal.tmp.version}/lib" />
+ <copy file="../../gluegen/build/gluegen-rt.jar" todir="../build/tmp/${joal.tmp.version}/lib" />
+ <copy todir="../build/tmp/${joal.tmp.version}/lib">
+ <fileset dir="../build/obj">
+ <include name="*.${native.library.suffix}" />
+ </fileset>
+ </copy>
+ <copy todir="../build/tmp/${joal.tmp.version}/lib">
+ <fileset dir="../../gluegen/build/obj">
+ <include name="*.${native.library.suffix}" />
+ </fileset>
+ </copy>
+ <copy file="../README.txt" todir="../build/tmp/${joal.tmp.version}" />
+ <copy file="../LICENSE.txt" todir="../build/tmp/${joal.tmp.version}" />
+ <zip destfile="../build/${joal.tmp.version}.zip"
+ basedir="../build/tmp"
+ includes="${joal.tmp.version}/**" />
+ <!-- Build a source archive as well -->
+ <delete file="../build/joal-${tmp.version}-src.zip" />
+ <zip destfile="../build/joal-${tmp.version}-src.zip"
+ basedir="../.."
+ includes="gluegen/LICENSE.txt,gluegen/doc/**,gluegen/make/**,gluegen/src/**,joal/README.txt,joal/LICENSE.txt,joal/make/**,joal/src/**,joal/build/gensrc/classes/net/java/games/joal/AL.java,joal/build/gensrc/classes/net/java/games/joal/ALC.java,joal/build/gensrc/classes/net/java/games/joal/ALCConstants.java,joal/build/gensrc/classes/net/java/games/joal/ALCcontext.java,joal/build/gensrc/classes/net/java/games/joal/ALCdevice.java,joal/build/gensrc/classes/net/java/games/joal/ALConstants.java"
+ excludes="**/*.class,**/*~"
+ />
+ </target>
+
<!-- ================================================================== -->
<!--
- Build the Java Web Start binaries out of native library builds for
@@ -589,30 +630,39 @@
</target>
<target name="dist" depends="dist.check">
- <delete file="${joal.dist.dir}/joal-src.zip" />
<delete>
- <fileset dir="${joal.dist.dir}" includes="joal-natives-*.jar" />
+ <fileset dir="${joal.dist.dir}" includes="*.jar" />
+ <fileset dir="${joal.dist.dir}" includes="*.zip" />
</delete>
+ <!-- Copy Java Web Start jar files, source archive(s) and binary zip archives -->
<copy todir="${joal.dist.dir}">
<fileset dir="${joal.dist.dir}/joal-win/32">
<include name="*.jar" />
+ <include name="*.zip" />
</fileset>
<fileset dir="${joal.dist.dir}/joal-linux/32">
<include name="*.jar" />
+ <!-- Pick up source archive from Linux build as well -->
+ <include name="*.zip" />
</fileset>
<fileset dir="${joal.dist.dir}/joal-macosx/ppc">
<include name="*.jar" />
+ <include name="*.zip" />
</fileset>
<fileset dir="${joal.dist.dir}/joal-macosx/fat">
<include name="*.jar" />
+ <include name="*.zip" />
</fileset>
<!-- NOTE: No OpenAL for Windows/AMD64, Linux/AMD64 or Solaris at the moment -->
</copy>
- <!-- Build a source archive as well -->
- <zip destfile="${joal.dist.dir}/joal-src.zip"
- basedir="../.."
- includes="gluegen/LICENSE.txt,gluegen/doc/**,gluegen/make/**,gluegen/src/**,joal/README.txt,joal/make/**,joal/src/**"
- excludes="**/*.class,**/*~"
+ <!-- Build one archive containing all jars related to Java Web Start -->
+ <tstamp>
+ <format property="timestamp" pattern="yyyyMMdd"/>
+ </tstamp>
+ <property name="tmp.version" value="${base_version}-pre-${timestamp}" />
+ <zip destfile="${joal.dist.dir}/joal-${tmp.version}-webstart.zip"
+ basedir="${joal.dist.dir}"
+ includes="*.jar"
/>
</target>
@@ -639,6 +689,9 @@
<!-- Compile the native C sources . -->
<antcall target="c.build.joal" inheritRefs="true" />
+
+ <!-- Build zip archives. -->
+ <antcall target="zip" inheritRefs="true" />
</target>
<!-- ================================================================== -->