<?xml version="1.0" encoding="UTF-8" ?>
<project name="sample" default="compile" basedir=".">
<property file="build.properties" />
<macrodef name="compile" >
<attribute name="bldtrg" />
<sequential>
<mkdir dir="${dest.dir}"/>
<descent.D
type = "${compiler.type}"
mode = "executable"
compilerdir = "${compiler.dir}"
destfile = "${dest.dir}/@{bldtrg}.exe"
stdargs = "false"
cleanup = "true"
>
<mainmodules>
<fileset file="${src.dir}/@{bldtrg}.d"/>
</mainmodules>
<linkflag value="-L${compiler.dir}/dmd/lib" />
<linklib type="dynamic" name="tango-base-dmd" />
<linklib type="dynamic" name="tango-user-dmd" />
<linklib type="dynamic" name="pthread" />
<linklib type="dynamic" name="m" />
</descent.D>
</sequential>
</macrodef>
<target name="build-number">
<descent.DBldNum file="${src.dir}/sample_bn.d" fqn="sample_bn" />
</target>
<target name="compile" depends="build-number" description="Compiles sample">
<compile bldtrg="sample"/>
</target>
</project>