Rev 211 |
Rev 261 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
<project name="DUBwise" basedir=".">
<property name="wtk.home" value="/home/ligi/tools/WTK2.2/"/>
<property name="project_name" value="DUBwise"/> <!-- jar filename -->
<property name="project_version" value="0.52"/>
<property file="build.props"/>
<property name="res_dir" location="tmp/res"/>
<property name="build_dir" location="${basedir}/build/"/>
<property name="lib_dir" location="${basedir}/lib/"/>
<property name="src_dir" location="${basedir}/src/"/>
<property name="shrared_src_dir" location="${basedir}/../shared/src/"/>
<property name="preprocessed_src_dir" location="${basedir}/tmp/pp_src/"/>
<taskdef resource="antenna.properties" classpath="${lib_dir}/antenna.jar"/>
<property name="wtk.midp.version" value="2.0"/>
<property name="wtk.cldc.version" value="1.0"/>
<property name="wtk.midpapi" value="${lib_dir}/classes_with_fileapi.zip"/>
<target name="build">
<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"/>
<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"/>
<wtkbuild destdir="${build_dir}/classes" srcdir="${preprocessed_src_dir}" target="1.1" preverify="true"/>
<wtkjad
jadfile="${build_dir}/bin/${basename}.jad"
jarfile="${build_dir}/bin/${basename}.jar"
update="false"
manifest="${build_dir}/bin/MANIFEST.MF"
name="${project_name}"
vendor="LiGi"
version="${project_version}">
<attribute name="MIDletX-No-Command" value="true"/>
<attribute name="MIDlet-Icon" value="i.png"/>
<midlet name="${project_name}" class="${project_name}" icon="i.png" />
<!-- !!TODO!! Remove Icon JAD entry if no icon is there -->
</wtkjad>
<wtkpackage
jarfile="${build_dir}/bin/${basename}.jar"
jadfile="${build_dir}/bin/${basename}.jad"
basedir="${build_dir}/classes"
manifest="${build_dir}/bin/MANIFEST.MF"
obfuscate="false"
preverify="true">
<fileset dir="${res_dir}/">
<include name="*"/>
</fileset>
</wtkpackage>
<!-- !!TODO!! just zip if flag set -->
<zip destfile="${build_dir}/deploy.zip" basedir="${build_dir}/bin/" includes="**/*"/>
</target>
<target name="clean">
<delete dir="${build_dir}"/>
<delete dir="${preprocessed_src_dir}"/>
<tstamp/>
<mkdir dir="${preprocessed_src_dir}"/>
<mkdir dir="${build_dir}"/>
<mkdir dir="${build_dir}/classes"/>
<mkdir dir="${build_dir}/bin"/>
</target>
</project>