From ff7db40e89505ba289d3a0cddfa60b854bbd31d2 Mon Sep 17 00:00:00 2001 From: Robert Greene Date: Fri, 6 Dec 2002 20:10:27 +0000 Subject: [PATCH] Build script for SWT under Linux and GTK. --- build/build-swt-linux-gtk | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 build/build-swt-linux-gtk diff --git a/build/build-swt-linux-gtk b/build/build-swt-linux-gtk new file mode 100644 index 0000000..bfa2426 --- /dev/null +++ b/build/build-swt-linux-gtk @@ -0,0 +1,24 @@ +#!/bin/bash + +# This script will build a static library of the SWT code. The shared object (*.so) +# files from the Eclipse distribution are still required, however. + +# Note that there will likely be modifications required to the given Eclipse code. + +DIR=$(pwd) +CLASSPATH="$DIR/swt.jar:$DIR/swt-pi.jar" +FLAGS="-O3" +mkdir obj +cd obj +rm *.o +find ../org -name "*.java" -exec gcj --classpath=$CLASSPATH $FLAGS -c {} \; +for FILE in Callback.java OS.java +do + find ../org -name "$FILE" -exec gcj --classpath=$CLASSPATH \ + $FLAGS -fjni -c {} \; +done + +cd $DIR +rm swt.a +ar r swt.a obj/*.o +