Initial build script to compile native Windows executable.

This commit is contained in:
Robert Greene 2003-03-06 03:40:00 +00:00
parent 5fccf74422
commit 0a74d116f5

View File

@ -0,0 +1,28 @@
#!/bin/sh
SWT_BASE_DIR="../swt-build"
SWT_JAR="$SWT_BASE_DIR/swt.jar"
CLASSES="./AppleCommander.jar"
APPLECOMMANDER_FILES=$(find . -name "*.class" -print | sed 's/^\.\///')
for i in $APPLECOMMANDER_FILES
do
OBJ_FILE=$(echo $i | sed 's/\//_/g' | sed 's/\.class$/\.o/')
echo Compiling $i to $OBJ_FILE
gcj --classpath=$SWT_JAR --classpath=$CLASSES -g0 -c -o $OBJ_FILE $i
echo
done
#gcj -c --resource=org.eclipse.swt.internal.SWTMessages \
# -o SWTMessages.o org/eclipse/swt/internal/SWTMessages.properties
gcj --classpath=$SWT_JAR --classpath=$CLASSES --main=com.webcodepro.ui.swt.SwtAppleCommander \
-o AppleCommander *.o -L$SWT_BASE_DIR -lswt
#echo Cleaning up
#rm -fr org
#rm -fr META-INF
#rm -f version.txt
#rm -f *.o
echo Done.