mirror of
https://github.com/processing/processing4.git
synced 2026-05-06 19:06:19 +02:00
moving around build folders to make easier to run core and libs from eclipse
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
+11
-7
@@ -83,25 +83,29 @@ cd ../..
|
||||
|
||||
echo Building processing.core
|
||||
|
||||
# move to bagel inside base 'processing' directory
|
||||
#cd bagel
|
||||
# move to core inside base 'processing' directory
|
||||
cd core
|
||||
rm -f processing/core/*.class
|
||||
#rm -f processing/core/*.class
|
||||
|
||||
# new regular version
|
||||
CLASSPATH="..\\build\\windows\\work\\java\\lib\\rt.jar"
|
||||
export CLASSPATH
|
||||
|
||||
perl preproc.pl
|
||||
../build/windows/work/jikes -d . +D -target 1.1 *.java
|
||||
./preproc.pl
|
||||
|
||||
../build/windows/work/jikes -d . +D -target 1.1 src/processing/core/*.java
|
||||
# use this from time to time to test 1.1 savviness
|
||||
#/cygdrive/c/msjdk-4.0/bin/jvc /d . *.java
|
||||
#/cygdrive/c/msjdk-4.0/bin/jvc /d . src/processing/core/*.java
|
||||
|
||||
# package this folder into core.jar
|
||||
zip -rq ../build/windows/work/lib/core.jar processing
|
||||
|
||||
#rm -rf processing
|
||||
|
||||
# back to base processing dir
|
||||
cd ..
|
||||
|
||||
exit
|
||||
|
||||
### -- BUILD PREPROC ---------------------------------------------
|
||||
|
||||
# i suck at shell scripting
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
processing
|
||||
@@ -1 +0,0 @@
|
||||
*.class
|
||||
+9
-7
@@ -1,21 +1,23 @@
|
||||
#!/usr/bin/perl
|
||||
#!/usr/bin/perl -w
|
||||
|
||||
$basedir = 'src/processing/core';
|
||||
|
||||
# PGraphics subclasses PImage.. so first get methods from bimage
|
||||
open(F, "PImage.java") || die $!;
|
||||
open(F, "$basedir/PImage.java") || die $!;
|
||||
@contents = <F>;
|
||||
close(F);
|
||||
|
||||
# next slurp methods from PGraphics
|
||||
open(F, "PGraphics.java") || die $!;
|
||||
open(F, "$basedir/PGraphics.java") || die $!;
|
||||
#@contents = <F>;
|
||||
foreach $line (<F>) {
|
||||
# can't remember perl right now.. there must be a better way
|
||||
@contents[$#contents++] = $line;
|
||||
$contents[$#contents++] = $line;
|
||||
}
|
||||
close(F);
|
||||
|
||||
|
||||
open(APPLET, "PApplet.java") || die $!;
|
||||
open(APPLET, "$basedir/PApplet.java") || die $!;
|
||||
@applet = <APPLET>;
|
||||
close(APPLET);
|
||||
|
||||
@@ -23,7 +25,7 @@ close(APPLET);
|
||||
$insert = 'public functions for processing.core';
|
||||
|
||||
# an improved version of this would only rewrite if changes made
|
||||
open(OUT, ">PApplet.new") || die $!;
|
||||
open(OUT, ">$basedir/PApplet.new") || die $!;
|
||||
foreach $line (@applet) {
|
||||
print OUT $line;
|
||||
last if ($line =~ /$insert/);
|
||||
@@ -147,7 +149,7 @@ close(OUT);
|
||||
|
||||
$oldguy = join(' ', @applet);
|
||||
|
||||
open(NEWGUY, "PApplet.new") || die $!;
|
||||
open(NEWGUY, "$basedir/PApplet.new") || die $!;
|
||||
@newbie = <NEWGUY>;
|
||||
$newguy = join(' ', @newbie);
|
||||
close(NEWGUY);
|
||||
|
||||
Reference in New Issue
Block a user