-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
67 lines (57 loc) · 2.03 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
<project name="JVML_JIT_RELEASE" default="main">
<property name="release.contents" value="release/jvml" />
<condition property="is_unix">
<os family="unix" />
</condition>
<target name="clean">
<ant dir="CCLib" target="clean" />
<ant dir="tests" target="clean" />
<ant dir="asm" target="clean" />
<delete dir="release" />
</target>
<target name="grin">
<ant dir="grin" target="main" />
</target>
<target name="asm">
<ant dir="asm" target="main" />
</target>
<target name="compile">
<ant dir="CCLib" target="compile" />
<ant dir="tests" target="compile" />
</target>
<target name="jar">
<ant dir="CCLib" target="jar" />
<ant dir="tests" target="jar" />
</target>
<target name="make_archive" depends="jar, grin, asm">
<mkdir dir="${release.contents}" />
<copy todir="${release.contents}/lib">
<fileset dir="lib" />
</copy>
<copy todir="${release.contents}/grin/lib">
<fileset dir="grin/lib" />
</copy>
<copy todir="${release.contents}/jvml_data">
<fileset dir="jvml_data" />
</copy>
<copy todir="${release.contents}/asm/build/asm">
<fileset dir="asm/build/asm" />
</copy>
<copy todir="${release.contents}/bin" file="bin/jvml" />
<copy todir="${release.contents}/CCLib/build/jar">
<fileset dir="CCLib/build/jar" />
</copy>
<copy todir="${release.contents}/bigint" file="bigint/bigint.lua" />
<zip zip64Mode="never" destfile="release/jvml.zip" basedir="${release.contents}" />
</target>
<target name="if_unix" if="is_unix" depends="make_archive">
<exec executable="base64">
<arg value="-i" />
<arg value="release/jvml.zip" />
<arg value="-o" />
<arg value="release/jvml.zip.base64" />
</exec>
</target>
<target name="main" depends="if_unix">
</target>
</project>