mirror of
https://github.com/processing/processing4.git
synced 2026-02-09 00:29:22 +01:00
99 lines
2.3 KiB
Bash
Executable File
99 lines
2.3 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
|
|
### -- SETUP WORK DIR -------------------------------------------
|
|
|
|
if test -d work
|
|
then
|
|
echo
|
|
else
|
|
echo Setting up directories to build under Mac OS X
|
|
cp -r ../shared work
|
|
|
|
echo Extracting examples
|
|
cd work/sketchbook
|
|
unzip -q examples.zip
|
|
rm examples.zip
|
|
cd ../..
|
|
|
|
echo Extracting reference...
|
|
cd work
|
|
unzip -q reference.zip
|
|
rm reference.zip
|
|
cd ..
|
|
|
|
# copy gl4java libs and jar file
|
|
cp ../../bagel/opengl/gl4java.jar work/lib/
|
|
cp ../../bagel/opengl/macosx/libGL4JavaJauGljJNI13.jnilib work/
|
|
|
|
mkdir work/lib/export
|
|
mkdir work/lib/build
|
|
|
|
mkdir work/classes
|
|
|
|
cp dist/lib/pde_macosx.properties work/lib/
|
|
|
|
echo
|
|
fi
|
|
|
|
if test -f /System/Library/Frameworks/JavaVM.framework/Home/lib/ext/comm.jar
|
|
then
|
|
echo
|
|
else
|
|
# echo Copying comm.jar into the machine's classpath
|
|
sudo cp comm.jar /System/Library/Frameworks/JavaVM.framework/Home/lib/ext/
|
|
fi
|
|
|
|
|
|
### -- START BUILDING -------------------------------------------
|
|
|
|
# move to 'app' directory
|
|
cd ../..
|
|
|
|
|
|
### -- BUILD BAGEL ----------------------------------------------
|
|
|
|
# make sure bagel exists, if not, check it out of cvs
|
|
if test -d bagel
|
|
then
|
|
echo
|
|
else
|
|
echo Doing CVS checkout of bagel...
|
|
cvs co bagel
|
|
cd bagel
|
|
cvs update -P
|
|
cd ..
|
|
fi
|
|
cd bagel
|
|
|
|
MACOSX_CLASSPATH=/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Home/lib/ext/comm.jar:/System/Library/Java/Extensions/QTJava.zip
|
|
|
|
CLASSPATH=$MACOSX_CLASSPATH
|
|
|
|
### --- make version with all the goodies for the application
|
|
echo Building bagel with serial, video, and audio support
|
|
perl make.pl SERIAL VIDEO SONIC OPENGL
|
|
cp classes/*.class ../build/macosx/work/classes/
|
|
|
|
### --- make version without serial for applet exporting
|
|
echo Building bagel for export with audio
|
|
perl make.pl SONIC
|
|
cp classes/*.class ../build/macosx/work/lib/export/
|
|
|
|
cd ..
|
|
cd app
|
|
|
|
|
|
### -- BUILD PDE ------------------------------------------------
|
|
|
|
echo Building PDE for JDK 1.4
|
|
|
|
CLASSPATH=../build/macosx/work/classes:../build/macosx/work/lib/kjc.jar:../build/macosx/work/lib/oro.jar:$MACOSX_CLASSPATH
|
|
|
|
perl ../bagel/buzz.pl "jikes +D -classpath $CLASSPATH -d ../build/macosx/work/classes" -dJDK13 -dJDK14 -dMACOS *.java jeditsyntax/*.java
|
|
|
|
cd ../build/macosx/work/classes
|
|
rm -f ../lib/pde.jar
|
|
zip -0q ../lib/pde.jar *.class
|
|
cd ../..
|