0
|
1 |
<!-- build.xml -->
|
|
2 |
<project name="S60 SDK C++ Examples" default="help" basedir="..">
|
|
3 |
<description>
|
|
4 |
S60 SDK C++ Examples
|
|
5 |
</description>
|
|
6 |
|
|
7 |
<property name="root" location="." />
|
|
8 |
<property name="dist" location="${root}/dist" />
|
|
9 |
<property name="s60ex" location="${dist}/s60ex" />
|
|
10 |
<property name="build" location="${root}/build" />
|
|
11 |
|
|
12 |
<target name="help">
|
|
13 |
<echo>
|
|
14 |
target help:
|
|
15 |
try
|
|
16 |
ant -emacs -projecthelp
|
|
17 |
</echo>
|
|
18 |
</target>
|
|
19 |
|
|
20 |
<!-- ********************************************************** -->
|
|
21 |
<!-- **************** Clean *********************************** -->
|
|
22 |
<!-- ********************************************************** -->
|
|
23 |
<target name="clean">
|
|
24 |
<delete dir="${dist}"/>
|
|
25 |
</target>
|
|
26 |
|
|
27 |
<!-- ********************************************************** -->
|
|
28 |
<!-- **************** Build *********************************** -->
|
|
29 |
<!-- ********************************************************** -->
|
|
30 |
<target name="build">
|
|
31 |
<tstamp>
|
|
32 |
<format property="TODAY_UK" pattern="yyyy-MM-dd" locale="en"/>
|
|
33 |
</tstamp>
|
|
34 |
|
|
35 |
<mkdir dir="${dist}" />
|
|
36 |
|
|
37 |
<antcall target="copyExamples" />
|
|
38 |
|
|
39 |
<exec dir="${build}" executable="perl.exe">
|
|
40 |
<arg line="doxy.pl"/>
|
|
41 |
</exec>
|
|
42 |
|
|
43 |
<zip destfile="${dist}/s60ex-${TODAY_UK}.zip">
|
|
44 |
<zipfileset dir="${s60ex}" prefix="s60ex/"/>
|
|
45 |
</zip>
|
|
46 |
</target>
|
|
47 |
|
|
48 |
<!-- List of sdk included examples-->
|
|
49 |
<target name="copyExamples">
|
|
50 |
<antcall target="copy">
|
|
51 |
<param name="from.dir" value="SipExample"/>
|
|
52 |
<param name="to.dir" value="SipExample"/>
|
|
53 |
</antcall>
|
|
54 |
</target>
|
|
55 |
|
|
56 |
<!-- copies example -->
|
|
57 |
<target name="copy">
|
|
58 |
<mkdir dir="${s60ex}/${to.dir}" />
|
|
59 |
<copy todir="${s60ex}/${to.dir}">
|
|
60 |
<fileset dir="${root}/${from.dir}">
|
|
61 |
<exclude name="**/*.sis,**/*.bat,**/*.s60"/>
|
|
62 |
</fileset>
|
|
63 |
</copy>
|
|
64 |
<delete dir="${s60ex}/${to.dir}/internal" />
|
|
65 |
</target>
|
|
66 |
</project>
|
|
67 |
|