cbc/build.xml

52 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="CflatCompiler" default="compile" basedir=".">
<target name="init">
<property file="${user.home}/.ant-global.properties" />
<property file="build.properties" />
</target>
<target name="parser" depends="init">
<javacc target="${src.jj.file}" javacchome="${javacc.dir}" />
</target>
<target name="compile" depends="init, parser">
<mkdir dir="${build.dir}" />
<mkdir dir="${build.classes.dir}" />
<javac destdir="${build.classes.dir}" srcdir="${src.dir}"
debug="true" optimize="true">
<compilerarg value="-Xlint:unchecked" />
<include name="net/**/*.java" />
</javac>
<jar jarfile="${build.jar}" basedir="${build.classes.dir}" />
</target>
<target name="recompile" depends="clean, compile" />
<target name="test" depends="compile">
<exec executable="./test/run.sh" />
</target>
<target name="comptest" depends="clean, test" />
<target name="clean" depends="init, clean-build">
<delete file="${build.jar}" />
</target>
<target name="clean-build" depends="init">
<delete dir="${build.dir}" />
<delete file="${build.parser.dir}/Parser.java" />
<delete file="${build.parser.dir}/ParserConstants.java" />
<delete file="${build.parser.dir}/ParserTokenManager.java" />
<delete file="${build.parser.dir}/ParseException.java" />
<delete file="${build.parser.dir}/Token.java" />
<delete file="${build.parser.dir}/TokenMgrError.java" />
<delete file="${build.parser.dir}/SimpleCharStream.java" />
</target>
<target name="dist">
<antcall target="clean" />
<antcall target="compile" />
<antcall target="clean-build" />
</target>
</project>