mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2024-10-31 16:04:51 +00:00
Build script for SWT under Linux and GTK.
This commit is contained in:
parent
20e54abae0
commit
ff7db40e89
24
build/build-swt-linux-gtk
Normal file
24
build/build-swt-linux-gtk
Normal file
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user