sdkcreationmw/sdkexamples/cppexamples/build/build.xml
author rajpuroh
Mon, 08 Mar 2010 12:09:11 +0530
changeset 0 b26acd06ea60
permissions -rw-r--r--
First Contribution of SDK components
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     1
<!-- build.xml -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     2
<project name="S60 SDK C++ Examples" default="help" basedir="..">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     3
  <description>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     4
    S60 SDK C++ Examples
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     5
  </description>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     6
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     7
  <property name="root" location="." />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     8
  <property name="dist" location="${root}/dist" />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
     9
  <property name="s60ex" location="${dist}/s60ex" />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    10
  <property name="build" location="${root}/build" />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    11
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    12
  <target name="help">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    13
    <echo> 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    14
    target help:
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    15
    try
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    16
       ant -emacs -projecthelp 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    17
    </echo>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    18
  </target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    19
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    20
  <!-- ********************************************************** -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    21
  <!-- **************** Clean *********************************** -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    22
  <!-- ********************************************************** -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    23
  <target name="clean">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    24
    <delete dir="${dist}"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    25
  </target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    26
  
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    27
  <!-- ********************************************************** -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    28
  <!-- **************** Build *********************************** -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    29
  <!-- ********************************************************** -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    30
  <target name="build">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    31
    <tstamp>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    32
      <format property="TODAY_UK" pattern="yyyy-MM-dd" locale="en"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    33
    </tstamp>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    34
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    35
    <mkdir dir="${dist}" />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    36
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    37
    <antcall target="copyExamples" />    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    38
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    39
    <exec dir="${build}" executable="perl.exe"> 
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    40
      <arg line="doxy.pl"/>     
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    41
    </exec>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    42
    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    43
    <zip destfile="${dist}/s60ex-${TODAY_UK}.zip">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    44
      <zipfileset dir="${s60ex}" prefix="s60ex/"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    45
    </zip>    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    46
  </target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    47
  
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    48
  <!-- List of sdk included examples-->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    49
  <target name="copyExamples">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    50
    <antcall target="copy">    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    51
      <param name="from.dir" value="SipExample"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    52
      <param name="to.dir" value="SipExample"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    53
    </antcall>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    54
  </target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    55
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    56
  <!-- copies example -->
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    57
  <target name="copy">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    58
    <mkdir dir="${s60ex}/${to.dir}" />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    59
    <copy todir="${s60ex}/${to.dir}">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    60
      <fileset dir="${root}/${from.dir}">
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    61
        <exclude name="**/*.sis,**/*.bat,**/*.s60"/>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    62
      </fileset>   
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    63
    </copy>    
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    64
    <delete dir="${s60ex}/${to.dir}/internal" />
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    65
  </target>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    66
</project>
b26acd06ea60 First Contribution of SDK components
rajpuroh
parents:
diff changeset
    67