Permalink
Browse files

working build!

  • Loading branch information...
1 parent 76cfc9f commit decf4f5f31cf390b8fc2c655c7ca470ca3a81066 @google-feinberg google-feinberg committed Aug 12, 2010
Showing with 69 additions and 101 deletions.
  1. +1 −0 .gitignore
  2. +49 −33 build.xml
  3. 0 { → lib}/jython/LICENSE.txt
  4. 0 { → lib}/jython/LICENSE_Apache.txt
  5. 0 { → lib}/jython/LICENSE_CPython.txt
  6. 0 { → lib}/jython/README.txt
  7. 0 { → lib}/jython/jython.jar
  8. 0 {libraries → lib}/processing/core.jar
  9. +19 −0 libraries/processing/opengl/export.txt
  10. BIN libraries/processing/opengl/gluegen-rt-natives-linux-amd64.jar
  11. BIN libraries/processing/opengl/gluegen-rt-natives-linux-i586.jar
  12. BIN libraries/processing/opengl/gluegen-rt-natives-macosx-ppc.jar
  13. BIN libraries/processing/opengl/gluegen-rt-natives-macosx-universal.jar
  14. BIN libraries/processing/opengl/gluegen-rt-natives-windows-amd64.jar
  15. BIN libraries/processing/opengl/gluegen-rt-natives-windows-i586.jar
  16. BIN libraries/processing/opengl/gluegen-rt.dll
  17. BIN libraries/processing/opengl/gluegen-rt.jar
  18. BIN libraries/processing/opengl/gluegen-rt.jar.pack.gz
  19. BIN libraries/processing/opengl/jogl-natives-linux-amd64.jar
  20. BIN libraries/processing/opengl/jogl-natives-linux-i586.jar
  21. BIN libraries/processing/opengl/jogl-natives-macosx-ppc.jar
  22. BIN libraries/processing/opengl/jogl-natives-macosx-universal.jar
  23. BIN libraries/processing/opengl/jogl-natives-windows-amd64.jar
  24. BIN libraries/processing/opengl/jogl-natives-windows-i586.jar
  25. BIN libraries/processing/opengl/jogl.dll
  26. BIN libraries/processing/opengl/jogl.jar
  27. BIN libraries/processing/opengl/jogl.jar.pack.gz
  28. BIN libraries/processing/opengl/jogl_awt.dll
  29. BIN libraries/processing/opengl/jogl_cg.dll
  30. BIN libraries/processing/opengl/libgluegen-rt.jnilib
  31. BIN libraries/processing/opengl/libgluegen-rt.so
  32. BIN libraries/processing/opengl/libjogl.jnilib
  33. BIN libraries/processing/opengl/libjogl.so
  34. BIN libraries/processing/opengl/libjogl_awt.jnilib
  35. BIN libraries/processing/opengl/libjogl_awt.so
  36. BIN libraries/processing/opengl/libjogl_cg.jnilib
  37. BIN libraries/processing/opengl/libjogl_cg.so
  38. BIN libraries/processing/opengl/opengl.jar
  39. +0 −68 src/jycessing/tool/PythonMode.java
View
1 .gitignore
@@ -10,4 +10,5 @@ examples.pde
line.pdf
generated/jycessing/*.java
build
+processing-py.jar
View
82 build.xml
@@ -1,44 +1,60 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
- Aug 8, 2010 10:37:58 AM
+ Aug 8, 2010 10:37:58 AM
- processing.py
+ processing.py
Write processing sketches in Python
-
- jdf
+
+ jdf
====================================================================== -->
-<project name="processing.py" default="gen-driver">
- <description>
+<project name="processing.py" default="jar">
+ <description>
Write processing sketches in Python
- </description>
+ </description>
+
+ <target name="jar" depends="build">
+ <jar destfile="processing-py.jar">
+ <fileset dir="bin" excludes="jycessing/build/**"/>
+ <zipgroupfileset file="lib/jython/jython.jar"/>
+ <zipgroupfileset file="lib/processing/core.jar"/>
+ <manifest>
+ <attribute name="Main-Class" value="jycessing.Runner" />
+ </manifest>
+ </jar>
+ </target>
- <eclipse.convertPath resourcepath="processing.py" property="project" />
+ <target name="build" depends="generate-driver">
+ <mkdir dir="bin" />
+ <javac
+ classpath="lib/jython/jython.jar:lib/processing/core.jar"
+ destdir="bin">
+ <src path="src"/>
+ <src path="generated"/>
+ <exclude name="jycessing/build/**"/>
+ </javac>
+ </target>
- <target name="gen-driver" description="Generate DriverImpl class">
- <java classpath="bin:thirdparty/processing/lib/core.jar"
- classname="jycessing.build.DriverGenerator"
- fork="true"
- dir="${project}" />
- <eclipse.refreshLocal resource="processing.py" />
- </target>
+ <target name="generate-driver"
+ depends="build-driver-generator"
+ description="Generate DriverImpl class">
+ <java
+ classpath="bin:lib/processing/core.jar"
+ classname="jycessing.build.DriverGenerator"
+ fork="true" />
+ </target>
- <target name="ziptool" description="Create processing tool">
- <eclipse.convertPath resourcepath="processing-app/userdir"
- property="userdir" />
- <delete dir="build" includeemptydirs="true" />
- <mkdir dir="build/PythonMode/tool" />
- <jar destfile="build/PythonMode/tool/PythonMode.jar">
- <fileset dir="bin" />
- </jar>
- <copy todir="build/PythonMode/tool"
- file="thirdparty/jython/jython.jar" />
- <zip basedir="build" file="build/PythonMode.zip" />
- <copy todir="${userdir}/tools">
- <fileset dir="build" includes="PythonMode/**">
- </fileset>
- </copy>
- <eclipse.refreshLocal resource="processing.py" />
- <eclipse.refreshLocal resource="processing-app" />
- </target>
+ <target name="build-driver-generator">
+ <mkdir dir="bin" />
+ <javac
+ srcdir="src"
+ includes="jycessing/build/**"
+ classpath="lib/processing/core.jar"
+ destdir="bin" />
+ </target>
+ <target name="clean">
+ <delete dir="bin"/>
+ <delete file="generated/jycessing/DriverImpl.java"/>
+ <mkdir dir="bin"/>
+ </target>
</project>
View
0 jython/LICENSE.txt → lib/jython/LICENSE.txt
File renamed without changes.
View
0 jython/LICENSE_Apache.txt → lib/jython/LICENSE_Apache.txt
File renamed without changes.
View
0 jython/LICENSE_CPython.txt → lib/jython/LICENSE_CPython.txt
File renamed without changes.
View
0 jython/README.txt → lib/jython/README.txt
File renamed without changes.
View
0 jython/jython.jar → lib/jython/jython.jar
File renamed without changes.
View
0 libraries/processing/core.jar → lib/processing/core.jar
File renamed without changes.
View
19 libraries/processing/opengl/export.txt
@@ -0,0 +1,19 @@
+# If you want to support more platforms, see the jogl.dev.java.net to get the
+# natives libraries for the platform in question (i.e. solaris). Then, add it
+# them to the applet line for export. For applications, you'll have to make the
+# changes by hand, i.e. use the linux version of the export, and modify its
+# contents to include the necessary files for your platform.
+
+name = OpenGL
+
+application.macosx = opengl.jar, jogl.jar, libjogl.jnilib, libjogl_awt.jnilib, libjogl_cg.jnilib, gluegen-rt.jar, libgluegen-rt.jnilib
+
+application.windows = opengl.jar, jogl.jar, jogl.dll, jogl_awt.dll, jogl_cg.dll, gluegen-rt.jar, gluegen-rt.dll
+
+application.linux = opengl.jar, jogl.jar, gluegen-rt.jar, libjogl.so, libjogl_awt.so, libjogl_cg.so, libgluegen-rt.so
+
+# In releases later than (but not including) 1.0.9, the applet JAR files
+# are downloaded directly from Sun, so that a single version is cached
+# on the user's computer, rather than increasing the download size with
+# the versions for each platform.
+applet = opengl.jar
View
BIN libraries/processing/opengl/gluegen-rt-natives-linux-amd64.jar
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt-natives-linux-i586.jar
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt-natives-macosx-ppc.jar
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt-natives-macosx-universal.jar
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt-natives-windows-amd64.jar
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt-natives-windows-i586.jar
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt.dll
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt.jar
Binary file not shown.
View
BIN libraries/processing/opengl/gluegen-rt.jar.pack.gz
Binary file not shown.
View
BIN libraries/processing/opengl/jogl-natives-linux-amd64.jar
Binary file not shown.
View
BIN libraries/processing/opengl/jogl-natives-linux-i586.jar
Binary file not shown.
View
BIN libraries/processing/opengl/jogl-natives-macosx-ppc.jar
Binary file not shown.
View
BIN libraries/processing/opengl/jogl-natives-macosx-universal.jar
Binary file not shown.
View
BIN libraries/processing/opengl/jogl-natives-windows-amd64.jar
Binary file not shown.
View
BIN libraries/processing/opengl/jogl-natives-windows-i586.jar
Binary file not shown.
View
BIN libraries/processing/opengl/jogl.dll
Binary file not shown.
View
BIN libraries/processing/opengl/jogl.jar
Binary file not shown.
View
BIN libraries/processing/opengl/jogl.jar.pack.gz
Binary file not shown.
View
BIN libraries/processing/opengl/jogl_awt.dll
Binary file not shown.
View
BIN libraries/processing/opengl/jogl_cg.dll
Binary file not shown.
View
BIN libraries/processing/opengl/libgluegen-rt.jnilib
Binary file not shown.
View
BIN libraries/processing/opengl/libgluegen-rt.so
Binary file not shown.
View
BIN libraries/processing/opengl/libjogl.jnilib
Binary file not shown.
View
BIN libraries/processing/opengl/libjogl.so
Binary file not shown.
View
BIN libraries/processing/opengl/libjogl_awt.jnilib
Binary file not shown.
View
BIN libraries/processing/opengl/libjogl_awt.so
Binary file not shown.
View
BIN libraries/processing/opengl/libjogl_cg.jnilib
Binary file not shown.
View
BIN libraries/processing/opengl/libjogl_cg.so
Binary file not shown.
View
BIN libraries/processing/opengl/opengl.jar
Binary file not shown.
View
68 src/jycessing/tool/PythonMode.java
@@ -1,68 +0,0 @@
-/*
- * Copyright 2010 Jonathan Feinberg
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package jycessing.tool;
-
-import processing.app.Editor;
-import processing.app.tools.Tool;
-
-public class PythonMode implements Tool {
- private Editor editor;
-
- public String getMenuTitle() {
- return "Python Mode";
- }
-
- public void init(final Editor editor) {
- this.editor = editor;
- }
-
- public void run() {
- editor.deactivateExport();
- editor.setHandlers(new RunHandler(), new PresentHandler(), new StopHandler(),
- new ExportHandler(), new ExportAppHandler());
- editor.statusNotice("Python Mode initialized.");
- }
-
- private class ExportHandler implements Runnable {
- public void run() {
- editor.statusError("Export not implemented in Python mode.");
- }
- }
-
- private class StopHandler implements Runnable {
- public void run() {
- editor.statusError("Stop not implemented in Python mode.");
- }
- }
-
- class PresentHandler implements Runnable {
- public void run() {
- editor.statusError("Present not implemented in Python mode.");
- }
- }
-
- class RunHandler implements Runnable {
- public void run() {
- editor.statusError("Run not implemented in Python mode.");
- }
- }
-
- class ExportAppHandler implements Runnable {
- public void run() {
- editor.statusError("Export Application not implemented in Python mode.");
- }
- }
-}

0 comments on commit decf4f5

Please sign in to comment.