ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hiren patel <hiren...@yahoo.com>
Subject urgent : CC task compiles every time even .C is not changed
Date Tue, 02 Aug 2005 23:27:12 GMT
Hi,
 I am using CC task and it compiles prog.c to prog but it does it all the time regardless
of 
prog.c has changed or not.
 
ANT should not recompile when source .c has not changed. but it does..
 
do you know what is wrong?
 
here is the code of build.xml:
 
please provide suggestions ASAP
hiren patel
 
 
project name="CC Example" default="BuildProg">
    <taskdef resource="cpptasks.tasks"/>
    <typedef resource="cpptasks.types"/> 
    <!-- Compilation settings -->
    <!-- Set compiler property depending from os -->
    <condition property="compiler" value="gcc">
        <os family="unix"/>
    </condition>
    <condition property="compiler" value="msvc">
        <os family="windows"/>
    </condition>
     
    <target name="clean">
        <delete file="prog" />
    </target>
 
    <target name="init">
    </target>
     
    <target name="BuildProg" depends="init"
            description="example of source compilation">
         <cc     outfile="prog" 
                 subsystem="other"
                 name="${compiler}" 
                 exceptions="true" 
                 objdir="." 
                 debug="true" 
                 outtype="executable">
 
             <fileset file="prog.c" /> 
                           
             <defineset define="SOME_DEFINE_1" />
             <defineset define="SOME_DEFINE_2" />
              
             <includepath path="."/>
 
             <!-- for example link with libstdc++ -->
          </cc>
    </target>
  </project>




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message