Debian Codegraph @

arduino-core/build.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <project name="Arduino IDE Core" default="build">
3
4 <path id="class.path">
5 <fileset dir="lib">
6 <include name="*.jar"/>
7 </fileset>
8 <pathelement path="${env.JAVA_HOME}/lib/tools.jar"/>
9 </path>
10
11 <target name="clean" description="Clean out the build directories">
12 <delete dir="bin" />
13 <delete file="arduino-core.jar" />
14 </target>
15
16 <target name="compile" description="Compile">
17 <!--
18 <taskdef name="methods"
19 classname="PAppletMethods"
20 classpath="methods/methods.jar" />
21 <methods dir="${basedir}/src/processing/core" />
22 -->
23 <mkdir dir="bin" />
24
25 <!-- ant seems to nuke ${java.home} for some reason, pointing at the JRE
26 subfolder instead of the actual JDK found at JAVA_HOME.
27 To avoid this, we grab the actual JAVA_HOME environment variable
28 and use that to specify the location of tools.jar. -->
29
30 <!-- if someone is better with ant please help clean this up -->
31 <property environment="env" />
32 <property name="java_home" value="${env.JAVA_HOME}" />
33
34 <javac source="1.8"
35 target="1.8"
36 encoding="UTF-8"
37 includeAntRuntime="false"
38 srcdir="src"
39 classpathref="class.path"
40 debug="true"
41 destdir="bin">
42 </javac>
43
44 <copy todir="bin" overwrite="true" verbose="true">
45 <fileset dir="src" includes="**/*.properties" />
46 </copy>
47 </target>
48
49 <target name="build" depends="compile" description="Build core library">
50 <jar basedir="bin" destfile="arduino-core.jar" />
51 </target>
52
53 </project>