aboutsummaryrefslogtreecommitdiffstats
path: root/make/lstjars.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2009-03-16 14:38:27 +0000
committerSven Gothel <[email protected]>2009-03-16 14:38:27 +0000
commit24fcece997ba911b0270033a357bbd83258d4f1a (patch)
tree4d01034154734897724d6a3b7738bf22693a8d36 /make/lstjars.sh
parent9517d52c18bfa93d78e03f4c212757eda421afb6 (diff)
JOGL refactoring:
Refactored JOGL into 3 independent components. 1 NWI - Native windowing interface Abstracts the the general NativeWindow interface and it's factory, incl the basic JAWT and Xlib toolkit. The latter was motivated to clean up the JOGL workspace, and to allow other to reuse this part. The generic core is nwi.core.jar, the AWT add-on is nwi.awt.jar. 2 JOGL - The OpenGL mapping Further cleanup of the SPEC. All non OpenGL toolkits are relocated to NWI and NEWT. There is still openmax and the windows audio layer .. Another cleanup of the fixed function pipeline emulation. Moved utilities and implementations where they belong .. Removed GLUnsupportedException. Misc .. changes 3 NEWT - The new windowing toolkit The generic NEWT, newt.core.jar. The JOGL and AWT modules are seperate, newt.ogl.jar newt.awt.jar. Their build can be switched off. The modules source and builds resides in their own directory. Because of their nature, they share the stub_includes, etc. Each module has it's own ant build script - build-nwi.xml - build-jogl.xml - build-newt.xml They can be build at once using build.xml as ususal, which just invokes the seperate build tasks. if rootrel.build=build, then the build location is jogl/build-nwi jogl/build-jogl jogl/build-newt and the sources are under jogl/src/nwi jogl/src/jogl jogl/src/newt Tested: jogl-demos, d4; Linux, MacOsX; Nvidia git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1868 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'make/lstjars.sh')
-rw-r--r--make/lstjars.sh57
1 files changed, 37 insertions, 20 deletions
diff --git a/make/lstjars.sh b/make/lstjars.sh
index 4d9a33f59..5e626e19d 100644
--- a/make/lstjars.sh
+++ b/make/lstjars.sh
@@ -1,6 +1,12 @@
#! /bin/sh
THISDIR=$(pwd)
+STATDIR=$THISDIR/../stats
+
+BUILDDIR=$1
+if [ -z "$BUILDDIR" ] ; then
+ BUILDDIR=$THISDIR/../build
+fi
function report() {
#ls -1 -s --block-size=1024 $*
@@ -8,77 +14,88 @@ function report() {
du -ksc $*
}
-cd $THISDIR/../build/obj
-mkdir -p tmp
-cd tmp
+rm -rf $STATDIR
+mkdir -p $STATDIR
+cp -a $BUILDDIR-nwi/obj/*.so $STATDIR
+cp -a $BUILDDIR-jogl/obj/*.so $STATDIR
+cp -a $BUILDDIR-newt/obj/*.so $STATDIR
+cp -a $BUILDDIR-nwi/*.jar $STATDIR
+cp -a $BUILDDIR-jogl/*.jar $STATDIR
+cp -a $BUILDDIR-newt/*.jar $STATDIR
+
+cd $STATDIR
-rm -f *.so *.so.gz
-cp ../*.so .
for i in *.so ; do
gzip $i
done
+
echo Native Libraries
report *.gz
echo
-cd $THISDIR/../build
-
rm -f *.lst
for i in *.jar ; do
fname=$i
bname=$(basename $fname .jar)
+ echo pack200 $bname.pack.gz $fname
+ pack200 $bname.pack.gz $fname
echo list $fname to $bname.lst
jar tf $fname | grep class | sort > $bname.lst
done
+rm -rf nope
mkdir -p nope
+
+rm -f allparts.lst allall.lst
+
mv jogl.all.lst nope/
mv jogl.gl2es12.*.lst jogl.gl2.*.lst nope/
echo duplicates - w/o gl2es12.* gl2.*
echo
-sort *.lst | uniq -d
+sort jogl*.lst | uniq -d
mv nope/* .
-mv jogl.all.lst nope/
-cat *.lst | sort -u > jogl.allparts.lst
+mv *.all.lst nope/
+cat *.lst | sort -u > allparts.lst
mv nope/* .
+cat *.all.lst | sort -u > allall.lst
-echo jogl.all bs jogl.allparts delta
+echo all vs allparts delta
echo
-diff -Nur jogl.allparts.lst jogl.all.lst
+diff -Nur allparts.lst allall.lst
OSS=x11
echo JOGL ES1 NEWT CORE
-report jogl.core.jar jogl.egl.jar jogl.gles1.jar newt.jar obj/tmp/libjogl_es1.so.gz obj/tmp/libnewt.so.gz
+report nwi.core.pack.gz jogl.core.pack.gz jogl.egl.pack.gz jogl.gles1.pack.gz newt.core.pack.gz newt.ogl.pack.gz libjogl_es1.so.gz libnewt.so.gz
echo
echo JOGL ES2 NEWT CORE
-report jogl.core.jar jogl.egl.jar jogl.gles2.jar newt.jar obj/tmp/libjogl_es2.so.gz obj/tmp/libnewt.so.gz
+report nwi.core.pack.gz jogl.core.pack.gz jogl.egl.pack.gz jogl.gles2.pack.gz newt.core.pack.gz newt.ogl.pack.gz libjogl_es2.so.gz libnewt.so.gz
echo
echo JOGL ES2 NEWT CORE FIXED
-report jogl.core.jar jogl.egl.jar jogl.gles2.jar jogl.fixed.jar newt.jar obj/tmp/libjogl_es2.so.gz obj/tmp/libnewt.so.gz
+report nwi.core.pack.gz jogl.core.pack.gz jogl.egl.pack.gz jogl.gles2.pack.gz jogl.fixed.pack.gz newt.core.pack.gz newt.ogl.pack.gz libjogl_es2.so.gz libnewt.so.gz
echo
echo JOGL GL2ES12 NEWT
-report jogl.core.jar jogl.gl2es12.$OSS.jar newt.jar obj/tmp/libjogl_gl2es12.so.gz obj/tmp/libnewt.so.gz
+report nwi.core.pack.gz jogl.core.pack.gz jogl.gl2es12.$OSS.pack.gz newt.core.pack.gz newt.ogl.pack.gz libjogl_gl2es12.so.gz libnewt.so.gz
echo
echo JOGL GL2 NEWT
-report jogl.core.jar jogl.gl2.$OSS.jar newt.jar obj/tmp/libjogl_gl2.so.gz obj/tmp/libnewt.so.gz
+report nwi.core.pack.gz jogl.core.pack.gz jogl.gl2.$OSS.pack.gz newt.core.pack.gz newt.ogl.pack.gz libjogl_gl2.so.gz libnewt.so.gz
echo
echo JOGL GL2 AWT
-report jogl.core.jar jogl.gl2.$OSS.jar jogl.awt.jar obj/tmp/libjogl_gl2.so.gz obj/tmp/libjogl_awt.so.gz
+report nwi.core.pack.gz nwi.$OSS.pack.gz nwi.awt.pack.gz jogl.core.pack.gz jogl.gl2.$OSS.pack.gz jogl.awt.pack.gz libjogl_gl2.so.gz libjogl_awt.so.gz libnwi_$OSS.so.gz libnwi_awt.so.gz
echo
echo JOGL GLU
-report jogl.glu.*jar
+report jogl.glu.*pack.gz
echo
echo JOGL EVERYTHING
-report jogl.all.jar
+report *.all.pack.gz
echo