/
build.xml
47 lines (38 loc) · 1.73 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
<project name="box2d-editor" default="all" basedir=".">
<!-- ****************************************************************** -->
<!-- Definitions -->
<!-- ****************************************************************** -->
<property name="version" value="2.9.2" />
<property name="dist" value="tmp" />
<property name="dist.loaders" value="tmp/loaders" />
<!-- ****************************************************************** -->
<!-- Build tasks -->
<!-- ****************************************************************** -->
<!-- clean -->
<target name="clean">
<delete dir="${dist}"/>
<mkdir dir="${dist}"/>
</target>
<!-- editor -->
<target name="editor">
<ant antfile="ant.xml" dir="editor/"/>
<copy todir="${dist}/" file="editor/physics-body-editor.jar"/>
<copy todir="${dist}/test-me!/"><fileset dir="editor/test-me!/"/></copy>
</target>
<!-- loader-libgdx -->
<target name="loader-libgdx">
<ant antfile="ant.xml" dir="loader-libgdx/"/>
<copy todir="${dist.loaders}/libgdx/"><fileset dir="loader-libgdx/" includes="*.jar"/></copy>
</target>
<!-- loader-libgdx-demo -->
<target name="loader-libgdx-demo" depends="loader-libgdx">
<copy todir="loader-libgdx-demo/libs/" file="${dist.loaders}/libgdx/bodyeditor-loader.jar"/>
<ant antfile="ant.xml" dir="loader-libgdx-demo/"/>
<delete file="loader-libgdx-demo/libs/bodyeditor-loader.jar"/>
<zip destfile="bodyeditor-libgdx-demo-${version}.zip" basedir="loader-libgdx-demo/" includes="*.jar, data/, src/"/>
</target>
<!-- all -->
<target name="all" depends="clean, editor, loader-libgdx, loader-libgdx-demo">
<zip destfile="physics-body-editor-${version}.zip" basedir="${dist}"/>
</target>
</project>