mirror of
https://github.com/processing/processing4.git
synced 2026-05-03 17:35:00 +02:00
initial version of build file for osx
This commit is contained in:
68
processing/build/macosx/make.sh
Executable file
68
processing/build/macosx/make.sh
Executable file
@@ -0,0 +1,68 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
### -- SETUP WORK DIR -------------------------------------------
|
||||
|
||||
if test -d work
|
||||
then
|
||||
else
|
||||
echo Setting up directories to build P5 on windows...
|
||||
mkdir work
|
||||
# unzip -q -d work jre.zip
|
||||
cp -r ../shared/lib work/
|
||||
rm -rf work/lib/CVS
|
||||
mkdir work/lib/export
|
||||
mkdir work/lib/build
|
||||
cp -r ../shared/sketchbook work/
|
||||
mkdir work/classes
|
||||
# this will copy cvs files intact, meaning that changes
|
||||
# could be made and checked back in.. interesting
|
||||
# cp dist/run.bat work/
|
||||
echo
|
||||
fi
|
||||
|
||||
|
||||
### -- START BUILDING -------------------------------------------
|
||||
|
||||
# move to 'app' directory
|
||||
cd ../..
|
||||
|
||||
|
||||
#PLATFORM_CLASSPATH=java/lib/rt.jar:java/lib/ext/comm.jar
|
||||
|
||||
|
||||
### -- BUILD BAGEL ----------------------------------------------
|
||||
cd ..
|
||||
cd bagel
|
||||
|
||||
MACOSX_CLASSPATH=poo
|
||||
|
||||
CLASSPATH=$MACOSX_CLASSPATH
|
||||
|
||||
### --- make version with serial for the application
|
||||
echo Building bagel with serial support
|
||||
perl make.pl SERIAL
|
||||
cp classes/*.class ../app/build/macosx/work/classes/
|
||||
|
||||
### --- make version without serial for applet exporting
|
||||
echo Building bagel for export
|
||||
perl make.pl
|
||||
cp classes/*.class ../app/build/macosx/work/lib/export/
|
||||
|
||||
cd ..
|
||||
cd app
|
||||
|
||||
|
||||
### -- BUILD PDE ------------------------------------------------
|
||||
|
||||
echo Building PDE for JDK 1.3
|
||||
|
||||
CLASSPATH=build/macosx/work/classes:build/macosx/work/lib/kjc.jar:build/macosx/work/lib/oro.jar:$MACOSX_CLASSPATH
|
||||
|
||||
perl buzz.pl "jikes +D -classpath $CLASSPATH -d build/windows/work/classes" -dJDK13 *.java kjc/*.java
|
||||
|
||||
cd build/windows/work/classes
|
||||
rm -f ../lib/pde.jar
|
||||
zip -0q ../lib/pde.jar *.class
|
||||
cd ../..
|
||||
|
||||
Reference in New Issue
Block a user