-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
155 lines (128 loc) · 4.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
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
150
151
152
153
154
155
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="all" name="TurboSanta">
<property name="one-jar.dist.dir" value="${basedir}"/>
<property name="src.dir" location="${basedir}/src"/>
<property name="libs.dir" location="${basedir}/libs"/>
<property name="libs.osx64.dir" location="${libs.dir}/osx"/>
<property name="libs.lin32.dir" location="${libs.dir}/lin32"/>
<property name="libs.lin64.dir" location="${libs.dir}/lin64"/>
<property name="libs.win32.dir" location="${libs.dir}/win32"/>
<property name="libs.win64.dir" location="${libs.dir}/win64"/>
<property name="lib.dir" location="${basedir}/lib"/>
<property name="build.dir" location="${basedir}/build"/>
<property name="classes.dir" location="${basedir}/classes"/>
<target name="init" depends="clean">
<mkdir dir="${classes.dir}"/>
<mkdir dir="${classes.dir}/lib"/>
<mkdir dir="${classes.dir}/src"/>
<mkdir dir="${build.dir}"/>
</target>
<target name="turbo-santa-java" depends="init">
<javac srcdir="${src.dir}"
destdir="${classes.dir}/src"
includeantruntime="false"
source="1.8"
target="1.8"
classpath="${build.dir}">
<classpath>
<fileset dir="${libs.dir}" includes="*.jar"/>
</classpath>
</javac>
</target>
<import file="one-jar-ant-task.xml"/>
<target name="clean">
<delete dir="${build.dir}"/>
<delete dir="${classes.dir}"/>
</target>
<target name="all" depends="clean,turbo-santa-osx,turbo-santa-lin32,turbo-santa-lin64,turbo-santa-win32,turbo-santa-win64"/>
<target name="turbo-santa-osx" depends="turbo-santa-java">
<!-- construct one-jar file -->
<one-jar destfile="${build.dir}/TurboSanta-osx64.jar">
<manifest>
<attribute name="One-Jar-Main-Class" value="com.turbosanta.TurboSanta"/>
</manifest>
<main>
<!-- construct TurboSanta.jar -->
<fileset dir="${classes.dir}/src"/>
</main>
<lib>
<fileset dir="${libs.dir}" includes="*.jar"/>
</lib>
<binlib>
<fileset dir="${libs.osx64.dir}" includes="*"/>
</binlib>
</one-jar>
</target>
<target name="turbo-santa-lin32" depends="turbo-santa-java">
<!-- construct one-jar file -->
<one-jar destfile="${build.dir}/TurboSanta-lin32.jar">
<manifest>
<attribute name="One-Jar-Main-Class" value="com.turbosanta.TurboSanta"/>
</manifest>
<main>
<!-- construct TurboSanta.jar -->
<fileset dir="${classes.dir}/src"/>
</main>
<lib>
<fileset dir="${libs.dir}" includes="*.jar"/>
</lib>
<binlib>
<fileset dir="${libs.lin32.dir}" includes="*"/>
</binlib>
</one-jar>
</target>
<target name="turbo-santa-lin64" depends="turbo-santa-java">
<!-- construct one-jar file -->
<one-jar destfile="${build.dir}/TurboSanta-lin64.jar">
<manifest>
<attribute name="One-Jar-Main-Class" value="com.turbosanta.TurboSanta"/>
</manifest>
<main>
<!-- construct TurboSanta.jar -->
<fileset dir="${classes.dir}/src"/>
</main>
<lib>
<fileset dir="${libs.dir}" includes="*.jar"/>
</lib>
<binlib>
<fileset dir="${libs.lin64.dir}" includes="*"/>
</binlib>
</one-jar>
</target>
<target name="turbo-santa-win32" depends="turbo-santa-java">
<!-- construct one-jar file -->
<one-jar destfile="${build.dir}/TurboSanta-win32.jar">
<manifest>
<attribute name="One-Jar-Main-Class" value="com.turbosanta.TurboSanta"/>
</manifest>
<main>
<!-- construct TurboSanta.jar -->
<fileset dir="${classes.dir}/src"/>
</main>
<lib>
<fileset dir="${libs.dir}" includes="*.jar"/>
</lib>
<binlib>
<fileset dir="${libs.win32.dir}" includes="*"/>
</binlib>
</one-jar>
</target>
<target name="turbo-santa-win64" depends="turbo-santa-java">
<!-- construct one-jar file -->
<one-jar destfile="${build.dir}/TurboSanta-win64.jar">
<manifest>
<attribute name="One-Jar-Main-Class" value="com.turbosanta.TurboSanta"/>
</manifest>
<main>
<!-- construct TurboSanta.jar -->
<fileset dir="${classes.dir}/src"/>
</main>
<lib>
<fileset dir="${libs.dir}" includes="*.jar"/>
</lib>
<binlib>
<fileset dir="${libs.win64.dir}" includes="*"/>
</binlib>
</one-jar>
</target>
</project>