-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
76 lines (61 loc) · 2.37 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
<project name="MBSV" default="distCode" basedir=".">
<description>
Build jar file for MBSV code
</description>
<!-- set global properties for this build -->
<property name="srcMBSV" location="src"/>
<property name="buildMBSV" location="build"/>
<property name="libMBSV" location="lib"/>
<property name="binMBSV" location="bin"/>
<target name="clean"
description="clean up" >
<!-- Delete the ${build} directory tree -->
<delete dir="${buildMBSV}"/>
<delete dir="${libMBSV}"/>
<delete dir="${binMBSV}"/>
</target>
<target name="init" depends="clean">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${buildMBSV}"/>
<mkdir dir="${libMBSV}"/>
<mkdir dir="${binMBSV}"/>
</target>
<target name="compileMBSV" depends="init"
description="compile the source " >
<!-- Compile the java code from ${srcMBSV} into ${buildMBSV} -->
<javac srcdir="${srcMBSV}" includeantruntime="false" destdir="${buildMBSV}"/>
<!-- Compile cython from ${srcMBSV} into ${buildMBSV} -->
<exec executable="python" failonerror="true">
<arg line="setup.py"/>
<arg line="build_ext"/>
<arg line="--build-lib=${libMBSV}/"/>
<arg line="--build-temp=${buildMBSV}/"/>
</exec>
</target>
<target name="distMBSV" depends="compileMBSV"
description="generate the distribution MultiBreakSV.jar" >
<!-- make jar file for MBSV -->
<jar jarfile="${binMBSV}/MultiBreakSV.jar" basedir="${buildMBSV}">
<manifest>
<attribute name="Main-Class" value="MultiBreakSV"/>
</manifest>
</jar>
<!-- make jar file for external sort -->
<jar jarfile="${libMBSV}/ExternalSort.jar" basedir="${buildMBSV}">
<manifest>
<attribute name="Main-Class" value="GeneralExternalSort"/>
</manifest>
</jar>
<!-- copy python and perl files to bin and lib dirs -->
<copy file="${srcMBSV}/M5toMBSV.py" todir="${binMBSV}/"/>
<copy file="${srcMBSV}/generateIndependentSubproblems.pl" todir="${binMBSV}/"/>
<copy file="${srcMBSV}/constructMultiBreakpointAlignments.pl" todir="${libMBSV}/"/>
<copy file="${srcMBSV}/parseRm5ForDeletionsCython.py" todir="${libMBSV}/"/>
<copy file="${srcMBSV}/quick-post-process.py" todir="${binMBSV}/"/>
</target>
<target name="distCode" depends="distMBSV"
description="generates source code" >
</target>
</project>