diff options
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> <!-- |