Files
processing4/core/build.xml

58 lines
1.9 KiB
XML
Executable File

<?xml version="1.0"?>
<project name="Processing Core" default="build">
<target name="clean" description="Clean out the build directories">
<delete dir="bin" />
<delete file="library/core.jar" />
</target>
<target name="compile" description="Compile">
<taskdef name="methods"
classname="PAppletMethods"
classpath="methods/methods.jar" />
<methods dir="${basedir}/src/processing/core" recorder="true" />
<!-- Check for ecj.jar, since this is likely a PDE build. Using ECJ
allows us to build the PDE with only a JRE on Windows and Linux.
So that the core can be built independently of the PDE,
use javac (the "modern" compiler) if ecj is not present. -->
<property name="ecj.jar" value="../java/mode/ecj.jar" />
<condition property="build.compiler"
value="org.eclipse.jdt.core.JDTCompilerAdapter"
else="modern">
<available file="${ecj.jar}" />
</condition>
<!--<echo message="compiler is ${build.compiler}" />-->
<mkdir dir="bin" />
<javac source="1.7"
target="1.7"
encoding="UTF-8"
includeAntRuntime="false"
debug="true"
srcdir="src" destdir="bin"
classpath="library/jogl-all.jar; library/gluegen-rt.jar"
nowarn="true">
<!-- kinda gross, but if not using ecj, this just ignored anyway -->
<compilerclasspath path="${ecj.jar}" />
</javac>
<!-- Copy the jnilib to the bin folder so it's included. -->
<copy todir="bin/japplemenubar"
file="src/japplemenubar/libjAppleMenuBar.jnilib" />
<!-- Copy shaders to bin. (Eclipse does this automatically.) -->
<copy todir="bin">
<fileset dir="src">
<include name="processing/opengl/*.glsl" />
<include name="icon/*.png" />
</fileset>
</copy>
</target>
<target name="build" depends="compile" description="Build core library">
<jar basedir="bin" destfile="library/core.jar" />
</target>
</project>