<target name="compile-cpp" depends="init">
<cc debug="false" link="executable" multithreaded="true" name="g++" outfile="${basedir}/bin" warnings="none" objdir="${basedir}/tmp">
<fileset dir="${basedir}/src">
<include name="*.cpp">
</include>
<compilerarg value="-Wall">
<compilerarg value="-g">
<compilerarg value="-c">
<linkerarg value="-lpthread">
</linkerarg>
</compilerarg>
</compilerarg>
</compilerarg>
</fileset>
</cc>
</target>
Technorati Tags: apache,ant,cpptask
1 comment:
Hi . Nice post. Do you know how to add multiple dir attributes in fileset
Post a Comment