-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathbuild.xml
90 lines (78 loc) · 3.43 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
<project name="org.parallax3d.parallax" default="all" basedir=".">
<description>Parallax distribution build file</description>
<property environment="env" />
<!-- library version -->
<property name="version" value="2.0-SNAPSHOT"/>
<!-- define distribution/output directory -->
<property name="distDir" value="${basedir}/dist"/>
<!-- clean distribution/output directory -->
<target name="clean">
<delete dir="${distDir}"/>
</target>
<!-- build the core of the library -->
<!-- parallax core -->
<target name="parallax-core">
<ant antfile="../build-template.xml" dir="parallax">
<property name="jar" value="parallax"/>
</ant>
</target>
<target name="parallax-gwt" depends="parallax-core">
<path id="classpath">
<pathelement location="${distDir}/gdx.jar"/>
</path>
<ant antfile="../../build-template.xml" dir="platforms/parallax-gwt">
<property name="jar" value="parallax-gwt"/>
<reference refid="classpath"/>
</ant>
</target>
<target name="parallax-android" depends="parallax-core">
<path id="classpath">
<pathelement location="${distDir}/gdx.jar"/>
</path>
<ant antfile="../../build-template.xml" dir="platforms/parallax-android">
<property name="jar" value="parallax-android"/>
<reference refid="classpath"/>
</ant>
</target>
<!-- generates the javadoc for the core api and the application implementations -->
<target name="docs" depends="clean">
<javadoc destdir="${distDir}/docs/api" author="true" version="true" use="true"
windowtitle="Parallax API" doctitle="Parallax API" footer="Parallax API" useexternalfile="true">
<header><![CDATA[
Parallax API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
]]></header>
<bottom><![CDATA[
<div style="font-size:9pt"><i>
Copyright © 2012-2015 Alex Usachev ([email protected])
</i></div>
]]></bottom>
<fileset dir="parallax/src" defaultexcludes="yes">
<include name="org/parallax3d/parallax/**" />
<exclude name="org/parallax3d/parallax/**/*.glsl"/>
</fileset>
</javadoc>
</target>
<target name="jars"
depends="clean,parallax-core,parallax-gwt,parallax-android"/>
<target name="all" depends="jars,docs">
<!-- copy distribution files (licences etc.) -->
<copy tofile="${distDir}/README" file="README.md"/>
<copy tofile="${distDir}/COPYING" file="COPYING"/>
<!-- zip dist dir -->
<zip destfile="parallax-${version}.zip" basedir="${distDir}"/>
<checksum file="parallax-${version}.zip" forceOverwrite="yes" />
</target>
</project>