Rev 267 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 267 | Rev 517 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | <project name="DUBwise" basedir="."> |
1 | <project name="DUBwise" basedir="."> |
2 | <property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/> |
2 | <property name="wtk.home" value="/home/ligi/bin/wtk_2.5.2"/> |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | <property name="project_name" value="DUBwise"/> <!-- jar filename --> |
- | |
- | 4 | <property name="project_name" value="DUBwise"/> <!-- jar filename --> |
|
Line 5... | Line 5... | ||
5 | <property name="project_version" value="0.53"/> |
5 | |
Line -... | Line 6... | ||
- | 6 | ||
- | 7 | <property file="build.props"/> |
|
6 | 8 | ||
7 | <property file="build.props"/> |
9 | <property name="project_version" value="${version_major}.${version_minor}"/> |
8 | 10 | ||
9 | <property name="res_dir" location="tmp/res"/> |
11 | <property name="res_dir" location="tmp/res"/> |
10 | <property name="build_dir" location="${basedir}/build/"/> |
12 | <property name="build_dir" location="${basedir}/build/"/> |
Line 11... | Line 13... | ||
11 | <property name="lib_dir" location="${basedir}/lib/"/> |
13 | <property name="lib_dir" location="${basedir}/lib/"/> |
Line -... | Line 14... | ||
- | 14 | <property name="src_dir" location="${basedir}/src/"/> |
|
- | 15 | <property name="shrared_src_dir" location="${basedir}/../shared/src/"/> |
|
- | 16 | ||
Line 12... | Line -... | ||
12 | <property name="src_dir" location="${basedir}/src/"/> |
- | |
Line 13... | Line 17... | ||
13 | <property name="shrared_src_dir" location="${basedir}/../shared/src/"/> |
17 | <property name="preprocessed_src_dir" location="${basedir}/tmp/pp_src/"/> |
14 | 18 | ||
Line 15... | Line 19... | ||
15 | <property name="preprocessed_src_dir" location="${basedir}/tmp/pp_src/"/> |
19 | <taskdef classpath="${lib_dir}/antlr.jar;${lib_dir}/preprocessor-bin.jar;${lib_dir}/antenna.jar" resource="antenna.properties"/> |
- | 20 | ||
- | 21 | <taskdef classpath="" resource="antenna.properties"/> |
|
- | 22 | ||
- | 23 | ||
Line 16... | Line 24... | ||
16 | 24 | <property name="wtk.midp.version" value="2.0"/> |
|
17 | - | ||
Line 18... | Line 25... | ||
18 | <taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/> |
25 | <property name="wtk.cldc.version" value="1.0"/> |
Line -... | Line 26... | ||
- | 26 | ||
Line 19... | Line 27... | ||
19 | 27 | <property name="wtk.midpapi" value="${classes}"/> |
|
20 | <property name="wtk.midp.version" value="2.0"/> |
28 | |
21 | <property name="wtk.cldc.version" value="1.0"/> |
29 | <target name="preprocess_lib"> |
22 | 30 | <wtkpreprocess version="3" device="Generic/Java" srcdir="${shrared_src_dir}" destdir="${preprocessed_src_dir}" symbols="cldc11=${cldc11},j2me=true" verbose="false" debuglevel="error" /> |
|
23 | <property name="wtk.midpapi" value="${lib_dir}/classes_with_fileapi_and_jsr179.zip"/> |
31 | </target> |
24 | 32 | ||
Line 48... | Line 56... | ||
48 | <wtkpackage |
56 | <wtkpackage |
49 | jarfile="${build_dir}/bin/${basename}.jar" |
57 | jarfile="${build_dir}/bin/${basename}.jar" |
50 | jadfile="${build_dir}/bin/${basename}.jad" |
58 | jadfile="${build_dir}/bin/${basename}.jad" |
51 | basedir="${build_dir}/classes" |
59 | basedir="${build_dir}/classes" |
52 | manifest="${build_dir}/bin/MANIFEST.MF" |
60 | manifest="${build_dir}/bin/MANIFEST.MF" |
- | 61 | libclasspath="${libs}" |
|
53 | obfuscate="false" |
62 | obfuscate="${obfuscate}" |
54 | preverify="true"> |
63 | preverify="true"> |
55 | <fileset dir="${res_dir}/"> |
64 | <fileset dir="${res_dir}/"> |
56 | <include name="*"/> |
65 | <include name="*"/> |
57 | </fileset> |
66 | </fileset> |
58 | </wtkpackage> |
67 | </wtkpackage> |
Line -... | Line 68... | ||
- | 68 | ||
- | 69 | ||
- | 70 | </target> |
|
- | 71 | ||
- | 72 | ||
59 | 73 | <target name="only_jar"> |
|
- | 74 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
|
- | 75 | <wtkjad |
|
- | 76 | jadfile="${build_dir}/bin/${basename}.jad" |
|
- | 77 | jarfile="${build_dir}/bin/${basename}.jar" |
|
- | 78 | update="false" |
|
- | 79 | manifest="${build_dir}/bin/MANIFEST.MF" |
|
- | 80 | name="${project_name}" |
|
- | 81 | vendor="LiGi" |
|
- | 82 | version="${project_version}"> |
|
- | 83 | <attribute name="MIDletX-No-Command" value="true"/> |
|
60 | <!-- !!TODO!! just zip if flag set --> |
84 | <attribute name="MIDlet-Icon" value="i.png"/> |
- | 85 | <midlet name="${project_name}" class="${project_name}" icon="i.png" /> |
|
- | 86 | ||
- | 87 | <!-- !!TODO!! Remove Icon JAD entry if no icon is there --> |
|
- | 88 | </wtkjad> |
|
- | 89 | ||
- | 90 | ||
- | 91 | <wtkpackage |
|
- | 92 | jarfile="${build_dir}/bin/${basename}.jar" |
|
- | 93 | jadfile="${build_dir}/bin/${basename}.jad" |
|
- | 94 | basedir="${build_dir}/classes" |
|
- | 95 | manifest="${build_dir}/bin/MANIFEST.MF" |
|
- | 96 | libclasspath="${libs}" |
|
- | 97 | obfuscate="true" |
|
- | 98 | preverify="true"> |
|
- | 99 | <fileset dir="${res_dir}/"> |
|
- | 100 | <include name="*"/> |
|
- | 101 | </fileset> |
|
- | 102 | </wtkpackage> |
|
- | 103 | ||
61 | <zip destfile="${build_dir}/deploy.zip" basedir="${build_dir}/bin/" includes="**/*"/> |
104 | |
Line 62... | Line 105... | ||
62 | </target> |
105 | </target> |