Subversion Repositories Projects

Rev

Rev 242 | Rev 261 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
206 ligi 1
<project name="DUBwise" basedir=".">
2
        <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
3
 
4
        <property name="project_name" value="DUBwise"/>                            <!-- jar filename -->
255 ligi 5
        <property name="project_version" value="0.53"/>          
206 ligi 6
 
7
        <property file="build.props"/>
8
 
9
        <property name="res_dir" location="tmp/res"/>
10
        <property name="build_dir" location="${basedir}/build/"/>
11
        <property name="lib_dir" location="${basedir}/lib/"/>
12
        <property name="src_dir" location="${basedir}/src/"/>
13
        <property name="shrared_src_dir" location="${basedir}/../shared/src/"/>
14
 
15
        <property name="preprocessed_src_dir" location="${basedir}/tmp/pp_src/"/>
16
 
17
 
18
        <taskdef resource="antenna.properties"  classpath="${lib_dir}/antenna.jar"/>
19
 
20
        <property name="wtk.midp.version" value="2.0"/>
21
        <property name="wtk.cldc.version" value="1.0"/>
22
 
23
        <property name="wtk.midpapi" value="${lib_dir}/classes_with_fileapi.zip"/>      
24
 
25
        <target name="build">
26
                <wtkpreprocess version="2" srcdir="${src_dir}" destdir="${preprocessed_src_dir}" symbols="VERSION=${project_version},voice_mode=${voice_mode},bluetooth=${bluetooth},fileapi=${fileapi},devicecontrol=${devicecontrol},cldc11=${cldc11},j2me=true" verbose="false"/>
27
 
28
                <wtkpreprocess version="2" srcdir="${shrared_src_dir}" destdir="${preprocessed_src_dir}" symbols="VERSION=${project_version},voice_mode=${voice_mode},bluetooth=${bluetooth},fileapi=${fileapi},devicecontrol=${devicecontrol},cldc11=${cldc11},j2me=true" verbose="false"/>
29
 
30
 
31
 
32
                <wtkbuild destdir="${build_dir}/classes" srcdir="${preprocessed_src_dir}" target="1.1" preverify="true"/>
33
                <wtkjad
34
                       jadfile="${build_dir}/bin/${basename}.jad"
35
                       jarfile="${build_dir}/bin/${basename}.jar"
36
                       update="false"
37
                       manifest="${build_dir}/bin/MANIFEST.MF"
38
                       name="${project_name}"
39
                       vendor="LiGi"
40
                       version="${project_version}">
41
                  <attribute name="MIDletX-No-Command" value="true"/>
42
 <attribute name="MIDlet-Icon" value="i.png"/>
43
                  <midlet name="${project_name}" class="${project_name}" icon="i.png" />
44
 
45
                <!-- !!TODO!! Remove Icon JAD entry if no icon is there -->
46
                </wtkjad>
47
 
48
                <wtkpackage
49
                            jarfile="${build_dir}/bin/${basename}.jar"
50
                            jadfile="${build_dir}/bin/${basename}.jad"
51
                            basedir="${build_dir}/classes"
52
                            manifest="${build_dir}/bin/MANIFEST.MF"
53
                            obfuscate="false"  
54
                            preverify="true">
55
                        <fileset dir="${res_dir}/">
56
                                <include name="*"/>
57
                        </fileset>
58
                </wtkpackage>        
59
 
60
                <!-- !!TODO!! just zip if flag set -->
61
                <zip destfile="${build_dir}/deploy.zip" basedir="${build_dir}/bin/" includes="**/*"/>
62
        </target>
63
 
64
 
65
        <target name="clean">
66
 
67
                <delete dir="${build_dir}"/>
68
                <delete dir="${preprocessed_src_dir}"/>
69
                <tstamp/>
70
 
71
                <mkdir dir="${preprocessed_src_dir}"/>
72
                <mkdir dir="${build_dir}"/>
73
                <mkdir dir="${build_dir}/classes"/>
74
                <mkdir dir="${build_dir}/bin"/>
75
        </target>
76
 
77
 
78
</project>