mirror of
https://github.com/processing/processing4.git
synced 2026-02-15 03:15:40 +01:00
26 lines
916 B
XML
26 lines
916 B
XML
<?xml version="1.0"?>
|
|
<project name="Processing Serial Library" default="build">
|
|
|
|
<target name="clean" description="Clean the build directories">
|
|
<delete dir="bin" />
|
|
<delete dir="build" />
|
|
</target>
|
|
|
|
<target name="compile" description="Compile sources">
|
|
<condition property="core-built">
|
|
<available file="../core/build/core.jar" />
|
|
</condition>
|
|
<fail unless="core-built" message="Please build the core library first and make sure it sits in ../core/build/core.jar" />
|
|
|
|
<mkdir dir="bin" />
|
|
<javac target="1.5" srcdir="src" destdir="bin" classpath="../core/build/core.jar; library/RXTXcomm.jar" />
|
|
</target>
|
|
|
|
<target name="build" depends="compile" description="Build serial library">
|
|
<mkdir dir="build/library" />
|
|
<jar basedir="bin" destfile="build/library/serial.jar" />
|
|
<copy todir="build">
|
|
<fileset dir="." includes="src/** bin/** library/**" />
|
|
</copy>
|
|
</target>
|
|
</project> |