diff options
author | Michael Bien <[email protected]> | 2009-11-02 02:18:21 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-02 02:18:21 +0100 |
commit | b2dfcb34a4cdc9c45d5ce20a2b1559b4bf3ebb8c (patch) | |
tree | 1245bfc07fdf03618a7d867c46e49e0762ccb967 /build.xml | |
parent | 1690ead6c21b61bd337706b836c04164940eed69 (diff) |
refactoring and more utility methods.
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -17,6 +17,7 @@ <property name="jogl.root" value="${basedir}/../jogl" /> <property name="etc.build.dir" value="${basedir}/etc/build" /> + <property name="headers.dest" value="${basedir}/resources/includes/CL" /> <!-- Pull in GlueGen cpptasks build file --> <import file="${gluegen.root}/make/gluegen-cpptasks.xml" /> @@ -69,8 +70,11 @@ <target name="prepare-build"> + <property name="headers.orig" value="${basedir}/resources/includes/CL_orig" /> + <!--compile build utilities--> <mkdir dir="${etc.build.dir}"/> + <mkdir dir="${headers.dest}"/> <javac destdir="${etc.build.dir}" classpath="${ant.core.lib}" source="1.5" debug="true" debuglevel="lines,vars,source"> <src path="${basedir}/etc/src"/> @@ -78,15 +82,12 @@ <taskdef name="uncomment-function-params" classname="com.mbien.ant.FunctionParamUncommenter" classpath="${etc.build.dir}"/> - <property name="headers.orig" value="${basedir}/resources/includes/CL_orig" /> - <property name="headers.dest" value="${basedir}/resources/includes/CL" /> - <!--uncomment function names in c headers and copy modified files into include path--> <uncomment-function-params src="${headers.orig}/cl.h" dest="${headers.dest}/cl.h"/> <uncomment-function-params src="${headers.orig}/cl_gl.h" dest="${headers.dest}/cl_gl.h"/> <!--nothing to uncomment in cl_platform.h--> - <copyfile src="${headers.orig}/cl_platform.h" dest="${headers.dest}/cl_platform.h" forceoverwrite="true"/> + <copy file="${headers.orig}/cl_platform.h" toDir="${headers.dest}" overwrite="true"/> </target> @@ -200,6 +201,7 @@ <target name="-post-clean"> <delete dir="gensrc"/> <delete dir="${etc.build.dir}"/> + <delete dir="${headers.dest}"/> </target> <!-- |