forked from tropo/PhonoSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
63 lines (57 loc) · 1.93 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
<project name="phono" default="build-default">
<property file="build.properties" />
<!-- SDK Distribution -->
<target name="sdk">
<mkdir dir="artifacts"/>
<zip destfile="artifacts/PhonoSDK-${build.version}.zip">
<zipfileset dir="target/sdk" prefix="phonosdk-${build.version}"/>
<zipfileset dir="." prefix="phonosdk-${build.version}">
<include name="README" />
</zipfileset>
</zip>
<tar destfile="artifacts/PhonoSDK-${build.version}.tgz" compression="gzip">
<tarfileset dir="target/sdk" prefix="phonosdk-${build.version}"/>
<tarfileset dir="." prefix="phonosdk-${build.version}">
<include name="README" />
</tarfileset>
</tar>
<copy todir="artifacts/sdk">
<fileset dir="target/sdk" />
<fileset dir=".">
<include name="README" />
</fileset>
</copy>
</target>
<!-- Device Targets -->
<target name="build-desktop">
<antcall target="build-as-audio" />
<antcall target="build-java-audio" />
<antcall target="build-js" />
</target>
<target name="build-mobile">
<antcall target="build-phonegap-ios" />
<antcall target="build-phonegap-android" />
<antcall target="build-js" />
</target>
<!-- Modules -->
<target name="build-as-audio">
<ant inheritAll="true" target="build" dir="modules/phono-as-audio" />
</target>
<target name="build-java-audio">
<ant inheritAll="true" target="build" dir="modules/phono-java-audio" />
</target>
<target name="build-js">
<ant inheritAll="true" target="build" dir="modules/phono-js" />
</target>
<target name="build-phonegap-ios">
<ant inheritAll="true" target="build" dir="modules/phono-phonegap-ios" />
</target>
<target name="build-phonegap-android">
<ant inheritAll="true" target="build" dir="modules/phono-phonegap-android" />
</target>
<!-- Util -->
<target name="clean">
<delete dir="target" />
<delete dir="artifacts" />
</target>
</project>