Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
303 | ligi | 1 | <project name="DUBwise" basedir="."> |
193 | ligi | 2 | <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/> |
3 | |||
303 | ligi | 4 | <property name="project_name" value="DUBwise"/> <!-- jar filename --> |
483 | ligi | 5 | <property name="project_version" value="0.42"/> |
193 | ligi | 6 | |
231 | ligi | 7 | <property file="build.props"/> |
8 | |||
9 | <property name="res_dir" location="${basedir}/res/${screensize}"/> |
||
193 | ligi | 10 | <property name="build_dir" location="${basedir}/build/"/> |
11 | <property name="lib_dir" location="${basedir}/lib/"/> |
||
12 | <property name="src_dir" location="${basedir}/src/"/> |
||
483 | ligi | 13 | <property name="preprocessed_src_dir" location="${basedir}/tmp/pp_src/"/> |
14 | |||
193 | ligi | 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"> |
||
483 | ligi | 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"/> |
||
193 | ligi | 25 | <wtkjad |
231 | ligi | 26 | jadfile="${build_dir}/bin/${project_name}_${screensize}.jad" |
27 | jarfile="${build_dir}/bin/${project_name}_${screensize}.jar" |
||
193 | ligi | 28 | update="false" |
29 | manifest="${build_dir}/bin/MANIFEST.MF" |
||
30 | name="${project_name}" |
||
31 | vendor="LiGi" |
||
483 | ligi | 32 | version="${project_version}"> |
193 | ligi | 33 | <attribute name="MIDletX-No-Command" value="true"/> |
231 | ligi | 34 | <attribute name="MIDlet-Icon" value="i.png"/> |
35 | <midlet name="${project_name}" class="${project_name}" icon="i.png" /> |
||
193 | ligi | 36 | |
37 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
||
38 | </wtkjad> |
||
39 | |||
40 | <wtkpackage |
||
231 | ligi | 41 | jarfile="${build_dir}/bin/${project_name}_${screensize}.jar" |
42 | jadfile="${build_dir}/bin/${project_name}_${screensize}.jad" |
||
193 | ligi | 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> |