-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
105 lines (97 loc) · 3.42 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?eclipse.ant.import?>
<project basedir="." default="deploy" name="EasyFPGA">
<property environment="env" />
<property name="target" value="1.7" />
<property name="source" value="1.7" />
<property name="bootstrap" location="/usr/lib/jvm/java-7-openjdk/jre/lib/rt.jar" />
<property name="src.dir" location="src" />
<property name="build.dir" location="bin" />
<property name="dist.dir" location="dist" />
<property name="soc.dir" location="${build.dir}/soc" />
<property name="soc-sources.dir" location="soc" />
<property name="javadoc.dir" location="javadoc" />
<property name="jssc.dir" location="src/jssc" />
<!-- init -->
<target name="init">
<mkdir dir="bin" />
<copy includeemptydirs="false" todir="${build.dir}">
<fileset dir="${jssc.dir}">
<exclude name="**/*.launch" />
<exclude name="**/*.java" />
</fileset>
</copy>
<copy includeemptydirs="false" todir="${build.dir}">
<fileset dir="${src.dir}">
<exclude name="**/*.launch" />
<exclude name="**/*.java" />
</fileset>
</copy>
<copy includeemptydirs="false" todir="${build.dir}">
<fileset dir="templates">
<exclude name="**/*.launch" />
<exclude name="**/*.java" />
</fileset>
</copy>
<copy includeemptydirs="false" todir="${soc.dir}">
<fileset dir="${soc-sources.dir}">
<exclude name="**/*.pdf" />
<exclude name="**/*.ods" />
<exclude name="**/*.wcfg" />
<exclude name="**/doc/" />
<exclude name="templates/" />
<exclude name="infrastructure/test/" />
<exclude name="infrastructure/receive_frame_buffer_tb.vhd" />
<exclude name="infrastructure/soc_bridge_tb.vhd" />
<exclude name="infrastructure/tags" />
<exclude name="infrastructure/wb_slave_single_reg_tb.vhd" />
<exclude name="easy_cores/can_wrapper/fpga_test/"/>
</fileset>
</copy>
<copy file="logging.properties" todir="${build.dir}" />
</target>
<!-- create manifest for setting main class to upload tool -->
<target name="manifest">
<manifest file="${build.dir}/MANIFEST.MF">
<attribute name="Main-Class" value="easyfpga.upload_tool.UploadTool"/>
</manifest>
</target>
<!-- clean -->
<target name="clean">
<delete dir="${build.dir}" />
</target>
<!-- compile -->
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}" />
<javac destdir="${build.dir}" includeantruntime="false" source="${source}" target="${target}" bootclasspath="${bootstrap}" debug="true">
<src path="${jssc.dir}" />
<src path="${src.dir}" />
<src path="templates" />
</javac>
</target>
<!-- javadoc -->
<target name="javadoc">
<!-- create javadoc dir -->
<javadoc sourcepath="${src.dir}" destdir="${javadoc.dir}">
<fileset dir="${src.dir}/easyfpga">
<include name="**" />
</fileset>
</javadoc>
<!-- package jar -->
<jar compress="true" destfile="${dist.dir}/easyFPGA-javadoc.jar" basedir="${javadoc.dir}" />
<!-- remove javadoc dir -->
<delete dir="${javadoc.dir}" />
</target>
<!-- create jar archive -->
<target name="jar" depends="clean, build, manifest">
<jar destfile="${dist.dir}\easyFPGA.jar"
basedir="${build.dir}"
manifest="${build.dir}/MANIFEST.MF">
<service type="javax.annotation.processing.Processor"
provider="easyfpga.generator.annotation.EasyFPGAAnnotationProcessor"/>
</jar>
</target>
<!-- create jar and javadoc-jar -->
<target name="deploy" depends="jar, javadoc">
</target>
</project>