forked from UU-cellbiology/DoM_Utrecht
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
149 lines (130 loc) · 5.57 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<project name="DoM_GPU" default="" basedir=".">
<description>DoM GPU Fiji plug-in build file</description>
<!-- user configuration -->
<property name="Fiji" location="/Applications/Fiji.app" />
<property name="FijiPluginsDir" location="${Fiji}/plugins/" />
<property name="FijiJarsDir" location="${Fiji}/jars/" />
<!-- directories -->
<property name="src" location="src" />
<property name="build" location="bin" />
<property name="dist" location="dist" />
<property name="lib" location="lib" />
<property name="rel" location="rel" />
<!-- manifest properties -->
<property name="project.name" value="Detection of Molecules" />
<property name="vendor.name" value="Utrecht University, Netherlands" />
<property name="developer.name" value="Yevhen Katrukha, Jalmar Teeuw, Jens den Braber" />
<property name="version" value="0.9.1" />
<tstamp>
<format property="date.today" pattern="yyyy-MM-dd HH:mm:ss" />
</tstamp>
<!-- java class path -->
<path id="dom.classpath">
<fileset dir="${lib}">
<include name="ij-1.48i.jar" />
<include name="jocl-0.1.9.jar" />
</fileset>
<fileset dir="${dist}">
<include name="jaolho.jar" />
</fileset>
</path>
<path id="jaolho.classpath">
<fileset dir="${lib}">
<include name="jama.jar" />
</fileset>
</path>
<!-- main target -->
<target name="main" depends="build" description="Main target">
<echo>Building the DoM plug-in</echo>
</target>
<!-- compile target -->
<target name="build" depends="compress" description="building DoM">
<echo>Building DoM plug-in</echo>
</target>
<!-- compress target -->
<target name="compress" depends="compile" description="generate JAR-file">
<echo>Compress class-files into JAR-file</echo>
<mkdir dir="${dist}" />
<!--<copy file="${src}/FittingKernelLMA.cl" toDir="${build}" />-->
<!--<copy file="${src}/plugins.config" toDir="${build}" />-->
<jar jarfile="${dist}/DoM_GPU-${version}.jar">
<fileset dir="${build}" includes="DOM/**" />
<fileset dir="${src}" includes="FittingKernelLMA.cl" />
<fileset dir="${src}" includes="render.cl" />
<fileset dir="${src}" includes="plugins.config" />
<manifest>
<attribute name="Signature-Title" value="${project.name}" />
<attribute name="Signature-Vendor" value="${vendor.name}" />
<attribute name="Built-By" value="${developer.name}"/>
<attribute name="Built-Date" value="${date.today}" />
</manifest>
</jar>
</target>
<!-- compile target -->
<target name="compile" depends="jaolho" description="compiling source code">
<echo>Compiling source code</echo>
<mkdir dir="${build}" />
<javac destdir="${build}" source="1.6" target="1.6" includeantruntime="false" debug="true">
<compilerarg value="-Xlint:unchecked" />
<src path="${src}/DOM" />
<classpath refid="dom.classpath" />
</javac>
</target>
<!-- jaolho target -->
<target name="jaolho" depends="" description="building jaolho library">
<echo>Compiling jaolho library</echo>
<mkdir dir="${build}" />
<javac destdir="${build}" source="1.6" target="1.6" includeantruntime="false">
<compilerarg value="-Xlint:unchecked" />
<src path="${src}/jaolho" />
<classpath refid="jaolho.classpath" />
</javac>
<echo>Compress class-files into JAR-file</echo>
<mkdir dir="${dist}" />
<jar jarfile="${dist}/jaolho.jar">
<fileset dir="${build}" includes="jaolho/**" />
</jar>
</target>
<!-- release target -->
<target name="release" depends="main" description="release distribution">
<copy file="${dist}/DoM_GPU-${version}.jar" toFile="${rel}/DoM_GPU-${version}-RELEASE.jar" />
<copy file="${dist}/jaolho.jar" toDir="${rel}" />
<copy file="${lib}/jocl-0.1.9.jar" toDir="${rel}" />
</target>
<!-- install target -->
<target name="install" depends="main" description="install distribution">
<copy file="${dist}/DoM_GPU-${version}.jar" toFile="${FijiPluginsDir}/DoM_GPU-${version}-SNAPSHOT.jar" verbose="true" />
<copy file="${dist}/jaolho.jar" toDir="${FijiJarsDir}" verbose="true" />
<copy file="${lib}/jocl-0.1.9.jar" toDir="${FijiJarsDir}" verbose="true" />
</target>
<!-- install release target -->
<target name="install-release" depends="release" description="install release distribution">
<copy file="${rel}/DoM_GPU-${version}-RELEASE.jar" toFile="${FijiPluginsDir}/DoM_GPU-${version}-RELEASE.jar" verbose="true" />
<copy file="${rel}/jaolho.jar" toDir="${FijiJarsDir}" verbose="true" />
<copy file="${rel}/jocl-0.1.9.jar" toDir="${FijiJarsDir}" verbose="true" />
</target>
<!-- clean target -->
<target name="clean" depends="" description="clean build directory">
<echo>Cleaning build directory</echo>
<delete includeemptydirs="true" failonerror="false" verbose="true">
<fileset dir="${build}" includes="**" defaultexcludes="no" />
</delete>
</target>
<!-- deep clean target -->
<target name="deep-clean" depends="clean" description="clean distribution directory">
<echo>Cleaning distribution directory</echo>
<delete includeemptydirs="true" failonerror="false" verbose="true">
<fileset dir="${dist}" includes="**" defaultexcludes="no" />
<!--<fileset dir="${lib}" includes="jaolho.jar" />-->
</delete>
</target>
<!-- uninstall -->
<target name="uninstall" depends="" description="uninstall distribution">
<echo>Uninstalling distribution directory</echo>
<delete includeemptydirs="true" failonerror="false" verbose="true">
<fileset dir="${FijiPluginsDir}" includes="DoM_GPU*" defaultexcludes="no" />
<fileset dir="${FijiJarsDir}" includes="jaolho.jar" defaultexcludes="no" />
<fileset dir="${FijiJarsDir}" includes="jocl-0.1.9.jar" defaultexcludes="no" />
</delete>
</target>
</project>