diff options
author | Michael Bien <[email protected]> | 2009-11-02 01:41:14 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-11-02 01:41:14 +0100 |
commit | 1690ead6c21b61bd337706b836c04164940eed69 (patch) | |
tree | b7aee403be08f0ee1f38a1b05c2e0f3827fa7c60 /build.xml | |
parent | 675ab3939df505941fed5483007100af7f01fd46 (diff) |
integrated function parameter name uncommenter in build process for easier readable parameter names in generated code.
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -15,11 +15,13 @@ <property name="gluegen.root" value="${basedir}/../gluegen" /> <property name="jogl.root" value="${basedir}/../jogl" /> + + <property name="etc.build.dir" value="${basedir}/etc/build" /> <!-- Pull in GlueGen cpptasks build file --> <import file="${gluegen.root}/make/gluegen-cpptasks.xml" /> - <target name="-pre-compile"> + <target name="-pre-compile" depends="prepare-build"> <path id="gluegen.classpath"> <pathelement location="${gluegen.root}/build/gluegen.jar" /> @@ -65,6 +67,29 @@ </target> + <target name="prepare-build"> + + <!--compile build utilities--> + <mkdir dir="${etc.build.dir}"/> + + <javac destdir="${etc.build.dir}" classpath="${ant.core.lib}" source="1.5" debug="true" debuglevel="lines,vars,source"> + <src path="${basedir}/etc/src"/> + </javac> + + <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"/> + + </target> + <target name="-post-compile" depends="c.configure.all"> <property name="obj.dir" value="${build.dir}/obj"/> @@ -174,6 +199,7 @@ <target name="-post-clean"> <delete dir="gensrc"/> + <delete dir="${etc.build.dir}"/> </target> <!-- |