Rev 221 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 221 | Rev 231 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <project name="MKMiniMidlet" basedir="."> |
1 | <project name="MKMiniMidlet" basedir="."> |
2 | <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/> |
2 | <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/> |
Line 3... | Line 3... | ||
3 | 3 | ||
Line -... | Line 4... | ||
- | 4 | <property name="project_name" value="MKMiniMidlet"/> <!-- jar filename --> |
|
- | 5 | ||
4 | <property name="project_name" value="MKMiniMidlet"/> <!-- jar filename --> |
6 | <property file="build.props"/> |
5 | 7 | ||
6 | <property name="res_dir" location="${basedir}/res"/> |
8 | <property name="res_dir" location="${basedir}/res/${screensize}"/> |
7 | <property name="build_dir" location="${basedir}/build/"/> |
9 | <property name="build_dir" location="${basedir}/build/"/> |
Line 8... | Line 10... | ||
8 | <property name="lib_dir" location="${basedir}/lib/"/> |
10 | <property name="lib_dir" location="${basedir}/lib/"/> |
Line 15... | Line 17... | ||
15 | <property name="wtk.midpapi" value="${lib_dir}/classes.zip"/> |
17 | <property name="wtk.midpapi" value="${lib_dir}/classes.zip"/> |
Line 16... | Line 18... | ||
16 | 18 | ||
17 | <target name="build"> |
19 | <target name="build"> |
18 | <wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="true"/> |
20 | <wtkbuild destdir="${build_dir}/classes" srcdir="${src_dir}" target="1.1" preverify="true"/> |
19 | <wtkjad |
21 | <wtkjad |
20 | jadfile="${build_dir}/bin/${project_name}.jad" |
22 | jadfile="${build_dir}/bin/${project_name}_${screensize}.jad" |
21 | jarfile="${build_dir}/bin/${project_name}.jar" |
23 | jarfile="${build_dir}/bin/${project_name}_${screensize}.jar" |
22 | update="false" |
24 | update="false" |
23 | manifest="${build_dir}/bin/MANIFEST.MF" |
25 | manifest="${build_dir}/bin/MANIFEST.MF" |
24 | name="${project_name}" |
26 | name="${project_name}" |
25 | vendor="LiGi" |
27 | vendor="LiGi" |
26 | version="0.26"> |
28 | version="0.29"> |
27 | <attribute name="MIDletX-No-Command" value="true"/> |
- | |
- | 29 | <attribute name="MIDletX-No-Command" value="true"/> |
|
28 | 30 | <attribute name="MIDlet-Icon" value="i.png"/> |
|
Line 29... | Line 31... | ||
29 | <midlet name="${project_name}" class="${project_name}" /> |
31 | <midlet name="${project_name}" class="${project_name}" icon="i.png" /> |
30 | 32 | ||
Line 31... | Line 33... | ||
31 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
33 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
32 | </wtkjad> |
34 | </wtkjad> |
33 | 35 | ||
34 | <wtkpackage |
36 | <wtkpackage |
35 | jarfile="${build_dir}/bin/${project_name}.jar" |
37 | jarfile="${build_dir}/bin/${project_name}_${screensize}.jar" |
36 | jadfile="${build_dir}/bin/${project_name}.jad" |
38 | jadfile="${build_dir}/bin/${project_name}_${screensize}.jad" |
37 | basedir="${build_dir}/classes" |
39 | basedir="${build_dir}/classes" |
38 | manifest="${build_dir}/bin/MANIFEST.MF" |
40 | manifest="${build_dir}/bin/MANIFEST.MF" |
Line 48... | Line 50... | ||
48 | </target> |
50 | </target> |
Line 49... | Line 51... | ||
49 | 51 | ||
50 | 52 | ||
51 | <target name="clean"> |
- | |
52 | <delete dir="${build_dir}"/> |
- | |
53 | <delete dir="${res_dir}"/> |
53 | <target name="clean"> |
Line 54... | Line 54... | ||
54 | 54 | <delete dir="${build_dir}"/> |
|
55 | <tstamp/> |
55 | <tstamp/> |
56 | 56 | ||
57 | <mkdir dir="${build_dir}"/> |
- | |
58 | <mkdir dir="${build_dir}/classes"/> |
57 | <mkdir dir="${build_dir}"/> |
Line 59... | Line 58... | ||
59 | <mkdir dir="${build_dir}/bin"/> |
58 | <mkdir dir="${build_dir}/classes"/> |
60 | <mkdir dir="${res_dir}"/> |
59 | <mkdir dir="${build_dir}/bin"/> |