mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Initial Arduino IDE based on Processing.
This commit is contained in:
5
build/linux/.cvsignore
Normal file
5
build/linux/.cvsignore
Normal file
@ -0,0 +1,5 @@
|
||||
work
|
||||
processing*
|
||||
|
||||
|
||||
|
6
build/linux/CVS/Entries
Normal file
6
build/linux/CVS/Entries
Normal file
@ -0,0 +1,6 @@
|
||||
/.cvsignore/1.3/Mon Jul 29 06:07:10 2002//
|
||||
D/dist////
|
||||
/run.sh/1.1/Wed Aug 6 02:42:46 2003//
|
||||
/dist.sh/1.22/Tue Jun 7 13:00:22 2005//
|
||||
/jre.tgz/1.4/Tue Jun 7 13:05:29 2005/-kb/
|
||||
/make.sh/1.39/Tue Jun 7 13:05:30 2005//
|
1
build/linux/CVS/Repository
Normal file
1
build/linux/CVS/Repository
Normal file
@ -0,0 +1 @@
|
||||
/cvsroot/processing/processing/build/linux
|
1
build/linux/CVS/Root
Normal file
1
build/linux/CVS/Root
Normal file
@ -0,0 +1 @@
|
||||
:pserver:anonymous@cvs.sourceforge.net:/cvsroot/processing
|
72
build/linux/dist.sh
Executable file
72
build/linux/dist.sh
Executable file
@ -0,0 +1,72 @@
|
||||
#!/bin/sh
|
||||
|
||||
REVISION=`head -c 4 ../../todo.txt`
|
||||
|
||||
./make.sh
|
||||
|
||||
echo Creating linux distribution for revision $REVISION...
|
||||
|
||||
# remove any old boogers
|
||||
rm -rf processing
|
||||
rm -rf processing-*
|
||||
|
||||
# use 'shared' files as starting point
|
||||
cp -r ../shared processing
|
||||
|
||||
# add the libraries folder with source
|
||||
cp -r ../../net processing/libraries/
|
||||
cp -r ../../opengl processing/libraries/
|
||||
cp -r ../../serial processing/libraries/
|
||||
|
||||
# new style examples thing ala reas
|
||||
cd processing
|
||||
unzip -q examples.zip
|
||||
rm examples.zip
|
||||
cd ..
|
||||
|
||||
cd processing
|
||||
unzip -q reference.zip
|
||||
rm reference.zip
|
||||
cd ..
|
||||
|
||||
# add java (jre) files
|
||||
#tar --extract --verbose --file=jre.tgz --ungzip --directory=processing
|
||||
tar --extract --file=jre.tgz --ungzip --directory=processing
|
||||
|
||||
# directories used by the app
|
||||
#mkdir processing/lib/build
|
||||
|
||||
# grab pde.jar and export from the working dir
|
||||
cp work/lib/pde.jar processing/lib/
|
||||
cp work/lib/core.jar processing/lib/
|
||||
|
||||
# get platform-specific goodies from the dist dir
|
||||
install -m 755 dist/processing processing/processing
|
||||
cp dist/jikes processing/
|
||||
chmod +x processing/jikes
|
||||
|
||||
# make sure notes.txt is unix LFs
|
||||
# the 2> is because the app is a little chatty
|
||||
dos2unix processing/revisions.txt 2> /dev/null
|
||||
dos2unix processing/lib/preferences.txt 2> /dev/null
|
||||
|
||||
# remove boogers
|
||||
find processing -name "*~" -exec rm -f {} ';'
|
||||
find processing -name ".DS_Store" -exec rm -f {} ';'
|
||||
find processing -name "._*" -exec rm -f {} ';'
|
||||
find processing -name "Thumbs.db" -exec rm -f {} ';'
|
||||
|
||||
# clean out the cvs entries
|
||||
find processing -name "CVS" -exec rm -rf {} ';' 2> /dev/null
|
||||
#find processing -name "CVS" -exec echo {} ';'
|
||||
|
||||
# zip it all up for release
|
||||
echo Creating tarball and finishing...
|
||||
P5=processing-$REVISION
|
||||
mv processing $P5
|
||||
|
||||
tar cfz $P5.tgz $P5
|
||||
# nah, keep the new directory around
|
||||
#rm -rf $P5
|
||||
|
||||
#echo Done.
|
0
build/linux/dist/.cvsignore
vendored
Normal file
0
build/linux/dist/.cvsignore
vendored
Normal file
4
build/linux/dist/CVS/Entries
vendored
Normal file
4
build/linux/dist/CVS/Entries
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
/.cvsignore/1.1/Thu Jul 25 19:51:59 2002//
|
||||
D/lib////
|
||||
/jikes/1.6/Tue Jun 7 13:05:39 2005/-kb/
|
||||
/processing/1.7/Tue Jun 7 13:05:39 2005//
|
1
build/linux/dist/CVS/Repository
vendored
Normal file
1
build/linux/dist/CVS/Repository
vendored
Normal file
@ -0,0 +1 @@
|
||||
/cvsroot/processing/processing/build/linux/dist
|
1
build/linux/dist/CVS/Root
vendored
Normal file
1
build/linux/dist/CVS/Root
vendored
Normal file
@ -0,0 +1 @@
|
||||
:pserver:anonymous@cvs.sourceforge.net:/cvsroot/processing
|
BIN
build/linux/dist/jikes
vendored
Executable file
BIN
build/linux/dist/jikes
vendored
Executable file
Binary file not shown.
1
build/linux/dist/lib/CVS/Entries
vendored
Normal file
1
build/linux/dist/lib/CVS/Entries
vendored
Normal file
@ -0,0 +1 @@
|
||||
D
|
1
build/linux/dist/lib/CVS/Repository
vendored
Normal file
1
build/linux/dist/lib/CVS/Repository
vendored
Normal file
@ -0,0 +1 @@
|
||||
/cvsroot/processing/processing/build/linux/dist/lib
|
1
build/linux/dist/lib/CVS/Root
vendored
Normal file
1
build/linux/dist/lib/CVS/Root
vendored
Normal file
@ -0,0 +1 @@
|
||||
:pserver:anonymous@cvs.sourceforge.net:/cvsroot/processing
|
47
build/linux/dist/processing
vendored
Executable file
47
build/linux/dist/processing
vendored
Executable file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
CLASSPATH=java/lib/rt.jar:lib:lib/build:lib/pde.jar:lib/core.jar:lib/antlr.jar:lib/oro.jar:lib/registry.jar:lib/mrj.jar
|
||||
export CLASSPATH
|
||||
|
||||
# put the directory where this file lives in the front of the path, because
|
||||
# that directory also contains jikes, which we will need at runtime.
|
||||
#
|
||||
PATH=`pwd`/`dirname $0`:`pwd`/java/bin:${PATH}
|
||||
export PATH
|
||||
|
||||
# test to see if jikes is operable. i'm a crappy bash scripter
|
||||
# so if someone knows a more elegant way to do this, let me know.
|
||||
#
|
||||
jikes -version 1> /dev/null 2> /dev/null
|
||||
if [ $? == 0 ]
|
||||
then
|
||||
java processing.app.Base
|
||||
else
|
||||
echo
|
||||
echo It appears that the version of Jikes distributed with Processing
|
||||
echo cannot properly run on this system.
|
||||
echo
|
||||
echo Possible solutions:
|
||||
echo
|
||||
echo + If you already have Jikes installed on your system, you may
|
||||
echo just need to remove the version that is included with Processing.
|
||||
echo
|
||||
echo + You probably just need to track down a version of Jikes that will
|
||||
echo work with your distribution.
|
||||
echo
|
||||
echo + You may need to install the rpm/package for compat-libstdc++
|
||||
echo This is what it takes to get things running on most versions
|
||||
echo of RedHat Linux or Fedora Core.
|
||||
echo
|
||||
echo + If all else fails, or if you just like building stuff yourself,
|
||||
echo you can download the source for Jikes from SourceForge:
|
||||
echo http://sourceforge.net/project/showfiles.php?group_id=128803
|
||||
echo And it just takes a simple ./configure and make, followed by
|
||||
echo copying src/jikes to the processing-XXXX folder and you should
|
||||
echo be all set.
|
||||
echo
|
||||
echo If you get stuck, ask questions online from the helpful folks via
|
||||
echo the Processing discussion board: http://processing.org/discourse/
|
||||
echo
|
||||
echo Good luck!
|
||||
fi
|
159
build/linux/make.sh
Executable file
159
build/linux/make.sh
Executable file
@ -0,0 +1,159 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
### -- SETUP WORK DIR -------------------------------------------
|
||||
|
||||
if test -d work
|
||||
then
|
||||
BUILD_PREPROC=false
|
||||
else
|
||||
echo Setting up directories to build for linux...
|
||||
BUILD_PREPROC=true
|
||||
cp -r ../shared work
|
||||
|
||||
# needs to make the dir because of packaging goofiness
|
||||
mkdir -p work/classes/processing/app/preproc
|
||||
mkdir -p work/classes/processing/app/syntax
|
||||
mkdir -p work/classes/processing/app/tools
|
||||
|
||||
#cp -r ../../lib work/libraries
|
||||
cp -r ../../net work/libraries/
|
||||
cp -r ../../opengl work/libraries/
|
||||
cp -r ../../serial work/libraries/
|
||||
cp -r ../../video work/libraries/
|
||||
|
||||
cd work
|
||||
unzip -q examples.zip
|
||||
rm examples.zip
|
||||
cd ..
|
||||
|
||||
cd work
|
||||
unzip -q reference.zip
|
||||
rm reference.zip
|
||||
cd ..
|
||||
|
||||
tar --extract --file=jre.tgz --ungzip --directory=work
|
||||
|
||||
#mkdir work/lib/export
|
||||
mkdir work/lib/build
|
||||
#mkdir work/classes
|
||||
|
||||
# get the serial stuff
|
||||
#echo Copying serial support from bagel dir
|
||||
#cp ../../bagel/serial/RXTXcomm.jar work/lib/
|
||||
#mkdir work/lib/i386
|
||||
#cp ../../bagel/serial/librxtxSerial.so work/lib/i386/libSerial.so
|
||||
#chmod +x work/librxtxSerial.so
|
||||
|
||||
# get jikes and depedencies
|
||||
cp dist/jikes work/
|
||||
chmod +x work/jikes
|
||||
|
||||
install -m 755 dist/processing work/processing
|
||||
fi
|
||||
|
||||
cd ../..
|
||||
|
||||
|
||||
### -- BUILD CORE ----------------------------------------------
|
||||
|
||||
|
||||
echo Building processing.core
|
||||
|
||||
# move to bagel inside base 'processing' directory
|
||||
cd core
|
||||
|
||||
# new regular version
|
||||
CLASSPATH="../build/linux/work/java/lib/rt.jar"
|
||||
export CLASSPATH
|
||||
|
||||
perl preproc.pl
|
||||
../build/linux/work/jikes -d . +D -target 1.1 *.java
|
||||
zip -rq ../build/linux/work/lib/core.jar processing
|
||||
rm -rf processing
|
||||
|
||||
|
||||
# back to base processing dir
|
||||
cd ..
|
||||
|
||||
|
||||
### -- BUILD PREPROC ------------------------------------------------
|
||||
|
||||
echo Building PDE for JDK 1.3
|
||||
|
||||
cd app/preproc
|
||||
|
||||
# first build the default java goop
|
||||
# long path is to avoid requiring java to be in your PATH
|
||||
|
||||
../../build/linux/work/java/bin/java \
|
||||
-cp ../../build/linux/work/lib/antlr.jar antlr.Tool java.g
|
||||
|
||||
# now build the pde stuff that extends the java classes
|
||||
../../build/linux/work/java/bin/java \
|
||||
-cp ../../build/linux/work/lib/antlr.jar antlr.Tool -glib java.g pde.g
|
||||
|
||||
cd ../..
|
||||
|
||||
|
||||
### -- BUILD PDE ------------------------------------------------
|
||||
|
||||
cd app
|
||||
|
||||
CLASSPATH="../build/linux/work/lib/core.jar:../build/linux/work/lib/mrj.jar:../build/linux/work/lib/antlr.jar:../build/linux/work/lib/oro.jar:../build/linux/work/lib/registry.jar:../build/linux/work/java/lib/rt.jar"
|
||||
|
||||
../build/linux/work/jikes -target 1.3 +D -classpath $CLASSPATH:../build/linux/work/classes -d ../build/linux/work/classes *.java preproc/*.java syntax/*.java tools/*.java
|
||||
|
||||
cd ../build/linux/work/classes
|
||||
rm -f ../lib/pde.jar
|
||||
zip -0rq ../lib/pde.jar .
|
||||
cd ../../../..
|
||||
|
||||
|
||||
### -- BUILD LIBRARIES ------------------------------------------------
|
||||
|
||||
cd build/linux
|
||||
|
||||
PLATFORM=linux
|
||||
|
||||
#CLASSPATH="../../build/linux/work/lib/core.jar:../../build/linux/work/java/lib/rt.jar"
|
||||
CLASSPATH=../build/$PLATFORM/work/lib/core.jar:$CLASSPATH
|
||||
JIKES=../build/$PLATFORM/work/jikes
|
||||
CORE=../build/$PLATFORM/work/lib/core.jar
|
||||
LIBRARIES=../build/$PLATFORM/work/libraries
|
||||
|
||||
# move to processing/build
|
||||
cd ..
|
||||
|
||||
|
||||
# SERIAL LIBRARY
|
||||
echo Building serial library...
|
||||
cd ../serial
|
||||
$JIKES -target 1.1 +D -classpath "code/RXTXcomm.jar:$CORE:$CLASSPATH" -d . *.java
|
||||
rm -f library/serial.jar
|
||||
zip -r0q library/serial.jar processing
|
||||
rm -rf processing
|
||||
mkdir -p $LIBRARIES/serial/library/
|
||||
cp library/serial.jar $LIBRARIES/serial/library/
|
||||
|
||||
|
||||
# NET LIBRARY
|
||||
echo Building net library...
|
||||
cd ../net
|
||||
$JIKES -target 1.1 +D -d . *.java
|
||||
rm -f library/net.jar
|
||||
zip -r0q library/net.jar processing
|
||||
rm -rf processing
|
||||
mkdir -p $LIBRARIES/net/library/
|
||||
cp library/net.jar $LIBRARIES/net/library/
|
||||
|
||||
|
||||
# OPENGL LIBRARY
|
||||
echo Building OpenGL library...
|
||||
cd ../opengl
|
||||
$JIKES -target 1.1 +D -classpath "library/jogl.jar:$CLASSPATH" -d . *.java
|
||||
rm -f library/opengl.jar
|
||||
zip -r0q library/opengl.jar processing
|
||||
rm -rf processing
|
||||
mkdir -p $LIBRARIES/opengl/library/
|
||||
cp library/opengl.jar $LIBRARIES/opengl/library/
|
3
build/linux/run.sh
Executable file
3
build/linux/run.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd work && ./processing && cd ..
|
Reference in New Issue
Block a user