Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 1 | <project name="libthrift" default="dist" basedir="."> |
| 2 | |
| 3 | <description>Thrift Build File</description> |
| 4 | |
| 5 | <property name="src" location="src" /> |
| 6 | <property name="build" location="build" /> |
David Reiss | f0c21a7 | 2008-07-11 01:26:16 +0000 | [diff] [blame] | 7 | <property name="install.path" value="/usr/local/lib" /> |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 8 | |
| 9 | <target name="init"> |
| 10 | <tstamp /> |
| 11 | <mkdir dir="${build}"/> |
| 12 | </target> |
| 13 | |
| 14 | <target name="compile" depends="init"> |
David Reiss | 4ad40d7 | 2008-08-04 18:38:36 +0000 | [diff] [blame^] | 15 | <javac srcdir="${src}" destdir="${build}" source="1.5" /> |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 16 | </target> |
| 17 | |
| 18 | <target name="dist" depends="compile"> |
| 19 | <jar jarfile="libthrift.jar" basedir="${build}"/> |
| 20 | </target> |
| 21 | |
| 22 | <target name="install" depends="dist"> |
Mark Slee | 54b7ab9 | 2007-03-06 00:06:27 +0000 | [diff] [blame] | 23 | <exec executable="install"> |
David Reiss | f0c21a7 | 2008-07-11 01:26:16 +0000 | [diff] [blame] | 24 | <arg line="libthrift.jar ${install.path}" /> |
Mark Slee | 83c52a8 | 2006-06-07 06:51:18 +0000 | [diff] [blame] | 25 | </exec> |
| 26 | </target> |
| 27 | |
| 28 | <target name="clean"> |
| 29 | <delete dir="${build}" /> |
| 30 | <delete file="libthrift.jar" /> |
| 31 | </target> |
| 32 | |
| 33 | </project> |