Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4 | 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 --> |
||
5 | <property name="project_version" value="0.42"/> |
||
6 | |||
7 | <property file="build.props"/> |
||
8 | |||
9 | <property name="res_dir" location="${basedir}/res/${screensize}"/> |
||
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="preprocessed_src_dir" location="${basedir}/tmp/pp_src/"/> |
||
14 | |||
15 | |||
16 | <taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/> |
||
17 | |||
18 | <property name="wtk.midp.version" value="2.0"/> |
||
19 | |||
20 | <property name="wtk.midpapi" value="${lib_dir}/classes.zip"/> |
||
21 | |||
22 | <target name="build"> |
||
23 | <wtkpreprocess version="2" srcdir="${src_dir}" destdir="${preprocessed_src_dir}" symbols="VERSION=${project_version}" verbose="false"/> |
||
24 | <wtkbuild destdir="${build_dir}/classes" srcdir="${preprocessed_src_dir}" target="1.1" preverify="true"/> |
||
25 | <wtkjad |
||
26 | jadfile="${build_dir}/bin/${project_name}_${screensize}.jad" |
||
27 | jarfile="${build_dir}/bin/${project_name}_${screensize}.jar" |
||
28 | update="false" |
||
29 | manifest="${build_dir}/bin/MANIFEST.MF" |
||
30 | name="${project_name}" |
||
31 | vendor="LiGi" |
||
32 | version="${project_version}"> |
||
33 | <attribute name="MIDletX-No-Command" value="true"/> |
||
34 | <attribute name="MIDlet-Icon" value="i.png"/> |
||
35 | <midlet name="${project_name}" class="${project_name}" icon="i.png" /> |
||
36 | |||
37 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
||
38 | </wtkjad> |
||
39 | |||
40 | <wtkpackage |
||
41 | jarfile="${build_dir}/bin/${project_name}_${screensize}.jar" |
||
42 | jadfile="${build_dir}/bin/${project_name}_${screensize}.jad" |
||
43 | basedir="${build_dir}/classes" |
||
44 | manifest="${build_dir}/bin/MANIFEST.MF" |
||
45 | obfuscate="true" |
||
46 | preverify="true"> |
||
47 | <fileset dir="${res_dir}/"> |
||
48 | <include name="*"/> |
||
49 | </fileset> |
||
50 | </wtkpackage> |
||
51 | |||
52 | <!-- !!TODO!! just zip if flag set --> |
||
53 | <zip destfile="${build_dir}/deploy.zip" basedir="${build_dir}/bin/" includes="**/*"/> |
||
54 | </target> |
||
55 | |||
56 | |||
57 | <target name="clean"> |
||
58 | <delete dir="${build_dir}"/> |
||
59 | <tstamp/> |
||
60 | |||
61 | <mkdir dir="${build_dir}"/> |
||
62 | <mkdir dir="${build_dir}/classes"/> |
||
63 | <mkdir dir="${build_dir}/bin"/> |
||
64 | </target> |
||
65 | |||
66 | |||
67 | </project> |