Package list lwjgl / debian/2.7.1+dfsg-3 platform_build / build-generator.xml
debian/2.7.1+dfsg-3

Tree @debian/2.7.1+dfsg-3 (Download .tar.gz)

build-generator.xml @debian/2.7.1+dfsg-3raw · history · blame

<project name="generator">

	<!-- clean the generated files -->
	<target name="clean-generated" description="Deletes the generated java source">
		<delete quiet="true" failonerror="false">
			<fileset dir="${lwjgl.src}/generated" includes="**"/>
		</delete>
	</target>

    <target name="clean-generated-native" description="Deletes the generated native source" depends="clean-generated">
        <delete quiet="false" failonerror="false">
            <fileset dir="${lwjgl.src.native}/generated" includes="**"/>
        </delete>
    </target>

	<!-- Compiles the Java generator source code -->
	<target name="generators" description="Compiles the native method generators">
		<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" includes="org/lwjgl/util/generator/**.java" source="1.5" target="1.5" taskname="generator">
            <include name="org/lwjgl/util/generator/openal/**.java"/>
            <include name="org/lwjgl/util/generator/opengl/**.java"/>
            <include name="org/lwjgl/util/generator/opencl/**.java"/>
			<compilerarg value="-Xlint:all"/>
		</javac>
        <!-- Compile helper classes used by the templates -->
		<javac debug="yes" srcdir="${lwjgl.src}/java/" destdir="${lwjgl.bin}" source="1.5" target="1.5" taskname="generator">
            <include name="org/lwjgl/PointerWrapper.java"/>
            <include name="org/lwjgl/PointerBuffer.java"/>
            <!-- OpenGL -->
			<include name="org/lwjgl/opengl/GLSync.java"/>
            <include name="org/lwjgl/opengl/AMDDebugOutputCallback.java"/>
            <include name="org/lwjgl/opengl/ARBDebugOutputCallback.java"/>
            <!-- OpenCL -->
            <include name="org/lwjgl/opencl/CLPlatform.java"/>
            <include name="org/lwjgl/opencl/CLDevice.java"/>
            <include name="org/lwjgl/opencl/CLContext.java"/>
            <include name="org/lwjgl/opencl/CLContextCallback.java"/>
            <include name="org/lwjgl/opencl/CLCommandQueue.java"/>
            <include name="org/lwjgl/opencl/CLMem.java"/>
            <include name="org/lwjgl/opencl/CLMemObjectDestructorCallback.java"/>
            <include name="org/lwjgl/opencl/CLBuildProgramCallback.java"/>
            <include name="org/lwjgl/opencl/CLNativeKernel.java"/>
            <include name="org/lwjgl/opencl/CLEventCallback.java"/>
            <include name="org/lwjgl/opencl/CLFunctionAddress.java"/>
		</javac>
	</target>

	<!-- Proxy target to generate it all -->
	<target name="generate-all" depends="generate-openal, generate-opengl, generate-opengl-capabilities, generate-opengl-references, generate-opencl, generate-opencl-capabilities" description="Generates java and native source"/>

	<target name="generate-debug" depends="generate-openal-debug, generate-opengl-debug, generate-opengl-capabilities-debug, generate-opengl-references, generate-opencl-debug, generate-opencl-capabilities-debug" description="Generates java and native source with debug functionality"/>

	<!-- Generate OpenAL -->
	<target name="generate-openal" depends="generators" description="Generates java and native source for AL">
		<apply executable="apt" parallel="true">
			<arg value="-nocompile"/>
			<arg value="-factory"/>
			<arg value="org.lwjgl.util.generator.GeneratorProcessorFactory"/>
			<arg value="-cp"/>
			<arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
			<arg value="-s"/>
			<arg path="${lwjgl.src}/generated"/>
			<arg value="-d"/>
			<arg path="${lwjgl.src.native}/generated"/>
			<arg value="-Atypemap=org.lwjgl.util.generator.openal.ALTypeMap"/>
			<fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/openal/AL10.java, org/lwjgl/openal/AL11.java, org/lwjgl/openal/EFX10.java"/>
		</apply>
	</target>

	<!-- Generate OpenAL [DEBUG] -->
	<target name="generate-openal-debug" depends="generators" description="Generates java and native source for AL">
		<apply executable="apt" parallel="true">
			<arg value="-nocompile"/>
			<arg value="-factory"/>
			<arg value="org.lwjgl.util.generator.GeneratorProcessorFactory"/>
			<arg value="-cp"/>
			<arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
			<arg value="-s"/>
			<arg path="${lwjgl.src}/generated"/>
			<arg value="-d"/>
			<arg path="${lwjgl.src.native}/generated"/>
			<arg value="-Atypemap=org.lwjgl.util.generator.openal.ALTypeMap"/>
			<arg value="-Ageneratechecks"/>
			<fileset dir="${lwjgl.src.templates}" includes="org/lwjgl/openal/AL10.java, org/lwjgl/openal/AL11.java, org/lwjgl/openal/EFX10.java"/>
		</apply>
	</target>

	<!-- Generate OpenGL -->
	<target name="generate-opengl" depends="generators" description="Generates java and native source for GL">
		<apply executable="apt" parallel="true">
			<arg value="-nocompile"/>
			<arg value="-factory"/>
			<arg value="org.lwjgl.util.generator.GeneratorProcessorFactory"/>
			<arg value="-cp"/>
			<arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
			<arg value="-s"/>
			<arg path="${lwjgl.src}/generated"/>
			<arg value="-d"/>
			<arg path="${lwjgl.src.native}/generated"/>
			<arg value="-Acontextspecific"/>
			<arg value="-Atypemap=org.lwjgl.util.generator.opengl.GLTypeMap"/>
			<fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
		</apply>
	</target>

	<!-- Generate OpenGL [DEBUG] -->
	<target name="generate-opengl-debug" depends="generators" description="Generates java and native source for GL">
		<apply executable="apt" parallel="true">
			<arg value="-nocompile"/>
			<arg value="-factory"/>
			<arg value="org.lwjgl.util.generator.GeneratorProcessorFactory"/>
			<arg value="-cp"/>
			<arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
			<arg value="-s"/>
			<arg path="${lwjgl.src}/generated"/>
			<arg value="-d"/>
			<arg path="${lwjgl.src.native}/generated"/>
			<arg value="-Ageneratechecks"/>
			<arg value="-Acontextspecific"/>
			<arg value="-Atypemap=org.lwjgl.util.generator.opengl.GLTypeMap"/>
			<fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
		</apply>
	</target>

	<!-- Generate OpenGL references -->
	<target name="generate-opengl-references" depends="generators" description="Generates java and native source for GL">
		<apply executable="apt" parallel="true">
			<arg value="-nocompile"/>
			<arg value="-factory"/>
			<arg value="org.lwjgl.util.generator.opengl.GLReferencesGeneratorProcessorFactory"/>
			<arg value="-cp"/>
			<arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
			<arg value="-s"/>
			<arg path="${lwjgl.src}/generated"/>
			<fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
		</apply>
	</target>

	<!-- Generate OpenGL context capabilities -->
	<target name="generate-opengl-capabilities" depends="generators" description="Generates java and native source for GL">
		<apply executable="apt" parallel="true">
			<arg value="-nocompile"/>
			<arg value="-factory"/>
			<arg value="org.lwjgl.util.generator.opengl.GLGeneratorProcessorFactory"/>
			<arg value="-cp"/>
			<arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
			<arg value="-s"/>
			<arg path="${lwjgl.src}/generated"/>
			<arg value="-Acontextspecific"/>
			<fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
		</apply>
	</target>

	<!-- Generate OpenGL context capabilities [DEBUG] -->
	<target name="generate-opengl-capabilities-debug" depends="generators" description="Generates java and native source for GL">
		<apply executable="apt" parallel="true">
			<arg value="-nocompile"/>
			<arg value="-factory"/>
			<arg value="org.lwjgl.util.generator.opengl.GLGeneratorProcessorFactory"/>
			<arg value="-cp"/>
			<arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
			<arg value="-s"/>
			<arg path="${lwjgl.src}/generated"/>
			<arg value="-Ageneratechecks"/>
			<arg value="-Acontextspecific"/>
			<fileset dir="${lwjgl.src.templates}" includes="${opengl-template-pattern}"/>
		</apply>
	</target>

    <!-- Generate OpenCL -->
    <target name="generate-opencl" depends="generators" description="Generates java and native source for CL">
        <apply executable="apt" parallel="true">
            <arg value="-nocompile"/>
            <arg value="-factory"/>
            <arg value="org.lwjgl.util.generator.GeneratorProcessorFactory"/>
            <arg value="-cp"/>
            <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
            <arg value="-s"/>
            <arg path="${lwjgl.src}/generated"/>
            <arg value="-d"/>
            <arg path="${lwjgl.src.native}/generated"/>
            <arg value="-Acontextspecific"/>
            <arg value="-Atypemap=org.lwjgl.util.generator.opencl.CLTypeMap"/>
            <fileset dir="${lwjgl.src.templates}" includes="${opencl-template-pattern}"/>
        </apply>
    </target>

    <!-- Generate OpenCL [DEBUG] -->
    <target name="generate-opencl-debug" depends="generators" description="Generates java and native source for CL">
        <apply executable="apt" parallel="true">
            <arg value="-nocompile"/>
            <arg value="-factory"/>
            <arg value="org.lwjgl.util.generator.GeneratorProcessorFactory"/>
            <arg value="-cp"/>
            <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
            <arg value="-s"/>
            <arg path="${lwjgl.src}/generated"/>
            <arg value="-d"/>
            <arg path="${lwjgl.src.native}/generated"/>
            <arg value="-Ageneratechecks"/>
            <arg value="-Acontextspecific"/>
            <arg value="-Atypemap=org.lwjgl.util.generator.opencl.CLTypeMap"/>
            <fileset dir="${lwjgl.src.templates}" includes="${opencl-template-pattern}"/>
        </apply>
    </target>

    <!-- Generate OpenCL capabilities -->
    <target name="generate-opencl-capabilities" depends="generators" description="Generates capabilities for CL">
        <apply executable="apt" parallel="true">
            <arg value="-nocompile"/>
            <arg value="-factory"/>
            <arg value="org.lwjgl.util.generator.opencl.CLGeneratorProcessorFactory"/>
            <arg value="-cp"/>
            <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
            <arg value="-s"/>
            <arg path="${lwjgl.src}/generated"/>
            <arg value="-Acontextspecific"/>
            <fileset dir="${lwjgl.src.templates}" includes="${opencl-template-pattern}"/>
        </apply>
    </target>

    <!-- Generate OpenCL capabilities [DEBUG] -->
    <target name="generate-opencl-capabilities-debug" depends="generators" description="Generates capabilities for CL">
        <apply executable="apt" parallel="true">
            <arg value="-nocompile"/>
            <arg value="-factory"/>
            <arg value="org.lwjgl.util.generator.opencl.CLGeneratorProcessorFactory"/>
            <arg value="-cp"/>
            <arg path="${lwjgl.src}/java:${lwjgl.src.templates}:${lwjgl.bin}:${java.class.path}"/>
            <arg value="-s"/>
            <arg path="${lwjgl.src}/generated"/>
            <arg value="-Ageneratechecks"/>
            <arg value="-Acontextspecific"/>
            <fileset dir="${lwjgl.src.templates}" includes="${opencl-template-pattern}"/>
        </apply>
    </target>
</project>