Have Narya declare its library dependencies in an includable build file and do
some kind of annoying fiddling to allow its dependencies to come either from the build directory of its dependee or from lib/. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4423 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -15,6 +15,11 @@
|
||||
<property name="javadoc.home" value="${deploy.dir}/docs"/>
|
||||
<property name="classes.dir" value="${deploy.dir}/classes"/>
|
||||
|
||||
<!-- import some targets to enumerate library dependencies -->
|
||||
<property name="projects.root" value="."/>
|
||||
<property name="libs.dir" value="lib"/>
|
||||
<import file="libs-incl.xml"/>
|
||||
|
||||
<!-- declare our classpath business -->
|
||||
<path id="classpath">
|
||||
<pathelement location="${classes.dir}"/>
|
||||
@@ -111,12 +116,18 @@
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- cleans out the installed application -->
|
||||
<!-- cleans out the intermediate build files -->
|
||||
<target name="clean">
|
||||
<delete dir="${deploy.dir}"/>
|
||||
<delete dir="${deploy.dir}/classes"/>
|
||||
<delete dir="${deploy.dir}/docs"/>
|
||||
<ant dir="tests" target="clean"/>
|
||||
</target>
|
||||
|
||||
<!-- wipes the entire build directory clean -->
|
||||
<target name="distclean" depends="clean">
|
||||
<delete dir="${deploy.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- build the java class files -->
|
||||
<target name="compile" depends="prepare">
|
||||
<javac srcdir="src/java" destdir="${classes.dir}"
|
||||
|
||||
Reference in New Issue
Block a user