summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.xml33
-rw-r--r--resources/cl-common.cfg2
-rw-r--r--resources/clgl-if.cfg2
-rw-r--r--resources/createTagletProps.sh9
-rw-r--r--resources/native-taglet.properties114
5 files changed, 159 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 4634451c..e56b4239 100644
--- a/build.xml
+++ b/build.xml
@@ -227,4 +227,37 @@
<move file="${natives.jocl.dir}/${namespace}/libjocl.so" tofile="${natives.jocl.dir}/${namespace}/jocl.dll" />
</target>
+ <target name="-javadoc-build" depends="init">
+
+ <mkdir dir="${dist.javadoc.dir}"/>
+
+ <javadoc author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}"
+ docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true"
+ noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}"
+ private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}"
+ use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}"
+ windowtitle="${javadoc.windowtitle}">
+
+ <arg line="${javadoc.additionalparam} -J-Dnativetaglet.mapping=${basedir}/resources/native-taglet.properties"/>
+ <taglet name="net.highteq.nativetaglet.NativeTaglet" path="${gluegen.root}/build/gluegen.jar:/home/mbien/NetBeansProjects/JOGL/jocl/"/>
+
+ <classpath>
+ <pathelement path="${javac.classpath}"/>
+ </classpath>
+
+ <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
+ <filename name="**/*.java"/>
+ </fileset>
+ <fileset dir="${src.java.dir}" excludes="${excludes}" includes="${includes}">
+ <filename name="**/*.java"/>
+ </fileset>
+ <fileset dir="${src.native.dir}" excludes="${excludes}" includes="${includes}">
+ <filename name="**/*.java"/>
+ </fileset>
+ <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
+ <include name="**/*.java"/>
+ </fileset>
+ </javadoc>
+ </target>
+
</project> \ No newline at end of file
diff --git a/resources/cl-common.cfg b/resources/cl-common.cfg
index 828cecf1..72f78fb9 100644
--- a/resources/cl-common.cfg
+++ b/resources/cl-common.cfg
@@ -38,3 +38,5 @@ ClassJavadoc CLImageFormat * Struct accessor for cl_image_format.
ClassJavadoc CLImageFormat * @author Michael Bien
ClassJavadoc CLImageFormat */
+# Pick up on-line OpenCL doc and link it with the javadoc
+TagNativeBinding true \ No newline at end of file
diff --git a/resources/clgl-if.cfg b/resources/clgl-if.cfg
index d21e8072..44275556 100644
--- a/resources/clgl-if.cfg
+++ b/resources/clgl-if.cfg
@@ -5,7 +5,7 @@ Style InterfaceOnly
ClassJavadoc CLGLI /**
ClassJavadoc CLGLI * Java bindings to OpenCL, the Open Computing Language.
ClassJavadoc CLGLI * OpenGL - OpenCL interoperability.
-ClassJavadoc CLGLI * @autor Michael Bien
+ClassJavadoc CLGLI * @author Michael Bien
ClassJavadoc CLGLI */
JavaClass CLGLI
diff --git a/resources/createTagletProps.sh b/resources/createTagletProps.sh
new file mode 100644
index 00000000..537f61fe
--- /dev/null
+++ b/resources/createTagletProps.sh
@@ -0,0 +1,9 @@
+#download index
+wget http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml/Opencl_tofc.html;
+#find links to cl* function doc
+grep -E .+\<a\ href=\"cl[A-Z][^\"]+\"[^\>]+\>cl[A-Z][a-Z]+\</a\>.+ ./Opencl_tofc.html > links;
+#add doc root to properties file
+echo nativetaglet.baseUrl=http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml/ > native-taglet.properties;
+#add all links as properties to file and cleanup
+sed -r 's/\s+<li><a href="([a-Z.]+)"[^>]+>([a-Z]+)<\/a><\/li>/\2=\1/' links >> native-taglet.properties;
+rm ./Opencl_tofc.html ./links
diff --git a/resources/native-taglet.properties b/resources/native-taglet.properties
new file mode 100644
index 00000000..d5e64e9d
--- /dev/null
+++ b/resources/native-taglet.properties
@@ -0,0 +1,114 @@
+nativetaglet.baseUrl=http://www.khronos.org/opencl/sdk/1.0/docs/man/xhtml/
+clCreateCommandQueue=clCreateCommandQueue.html
+clCreateContext=clCreateContext.html
+clCreateContextFromType=clCreateContextFromType.html
+clCreateFromGLBuffer=clCreateFromGLBuffer.html
+clCreateFromGLRenderbuffer=clCreateFromGLRenderbuffer.html
+clCreateKernelsInProgram=clCreateKernelsInProgram.html
+clCreateProgramWithBinary=clCreateProgramWithBinary.html
+clCreateProgramWithSource=clCreateProgramWithSource.html
+clCreateSampler=clCreateSampler.html
+clEnqueueAcquireGLObjects=clEnqueueAcquireGLObjects.html
+clEnqueueBarrier=clEnqueueBarrier.html
+clEnqueueMarker=clEnqueueMarker.html
+clEnqueueNativeKernel=clEnqueueNativeKernel.html
+clEnqueueReleaseGLObjects=clEnqueueReleaseGLObjects.html
+clEnqueueUnmapMemObject=clEnqueueUnmapMemObject.html
+clEnqueueWaitForEvents=clEnqueueWaitForEvents.html
+clEnqueueWriteImage=clEnqueueWriteImage.html
+clFinish=clFinish.html
+clFlush=clFlush.html
+clGetCommandQueueInfo=clGetCommandQueueInfo.html
+clGetContextInfo=clGetContextInfo.html
+clGetDeviceIDs=clGetDeviceIDs.html
+clGetDeviceInfo=clGetDeviceInfo.html
+clGetEventProfilingInfo=clGetEventProfilingInfo.html
+clGetExtensionFunctionAddress=clGetExtensionFunctionAddress.html
+clGetGLObjectInfo=clGetGLObjectInfo.html
+clGetGLTextureInfo=clGetGLTextureInfo.html
+clGetImageInfo=clGetImageInfo.html
+clGetKernelWorkGroupInfo=clGetKernelWorkGroupInfo.html
+clGetMemObjectInfo=clGetMemObjectInfo.html
+clGetPlatformIDs=clGetPlatformIDs.html
+clGetPlatformInfo=clGetPlatformInfo.html
+clGetProgramBuildInfo=clGetProgramBuildInfo.html
+clReleaseEvent=clReleaseEvent.html
+clReleaseKernel=clReleaseKernel.html
+clReleaseProgram=clReleaseProgram.html
+clReleaseSampler=clReleaseSampler.html
+clRetainContext=clRetainContext.html
+clRetainEvent=clRetainEvent.html
+clRetainMemObject=clRetainMemObject.html
+clRetainProgram=clRetainProgram.html
+clRetainSampler=clRetainSampler.html
+clSetCommandQueueProperty=clSetCommandQueueProperty.html
+clSetKernelArg=clSetKernelArg.html
+clUnloadCompiler=clUnloadCompiler.html
+clWaitForEvents=clWaitForEvents.html
+clGetPlatformIDs=clGetPlatformIDs.html
+clGetPlatformInfo=clGetPlatformInfo.html
+clGetDeviceIDs=clGetDeviceIDs.html
+clGetDeviceInfo=clGetDeviceInfo.html
+clCreateContext=clCreateContext.html
+clRetainContext=clRetainContext.html
+clReleaseContext=clReleaseContext.html
+clGetContextInfo=clGetContextInfo.html
+clCreateCommandQueue=clCreateCommandQueue.html
+clRetainCommandQueue=clRetainCommandQueue.html
+clReleaseCommandQueue=clReleaseCommandQueue.html
+clSetCommandQueueProperty=clSetCommandQueueProperty.html
+clCreateBuffer=clCreateBuffer.html
+clEnqueueReadBuffer=clEnqueueReadBuffer.html
+clEnqueueWriteBuffer=clEnqueueWriteBuffer.html
+clRetainMemObject=clRetainMemObject.html
+clReleaseMemObject=clReleaseMemObject.html
+clGetSupportedImageFormats=clGetSupportedImageFormats.html
+clEnqueueReadImage=clEnqueueReadImage.html
+clEnqueueWriteImage=clEnqueueWriteImage.html
+clEnqueueCopyImage=clEnqueueCopyImage.html
+clEnqueueCopyImageToBuffer=clEnqueueCopyImageToBuffer.html
+clEnqueueCopyBufferToImage=clEnqueueCopyBufferToImage.html
+clEnqueueMapBuffer=clEnqueueMapBuffer.html
+clEnqueueMapImage=clEnqueueMapImage.html
+clEnqueueUnmapMemObject=clEnqueueUnmapMemObject.html
+clGetMemObjectInfo=clGetMemObjectInfo.html
+clGetImageInfo=clGetImageInfo.html
+clCreateSampler=clCreateSampler.html
+clRetainSampler=clRetainSampler.html
+clReleaseSampler=clReleaseSampler.html
+clGetSamplerInfo=clGetSamplerInfo.html
+clCreateProgramWithSource=clCreateProgramWithSource.html
+clCreateProgramWithBinary=clCreateProgramWithBinary.html
+clRetainProgram=clRetainProgram.html
+clReleaseProgram=clReleaseProgram.html
+clUnloadCompiler=clUnloadCompiler.html
+clBuildProgram=clBuildProgram.html
+clGetProgramInfo=clGetProgramInfo.html
+clGetProgramBuildInfo=clGetProgramBuildInfo.html
+clCreateKernel=clCreateKernel.html
+clCreateKernelsInProgram=clCreateKernelsInProgram.html
+clRetainKernel=clRetainKernel.html
+clReleaseKernel=clReleaseKernel.html
+clSetKernelArg=clSetKernelArg.html
+clGetKernelInfo=clGetKernelInfo.html
+clGetKernelWorkGroupInfo=clGetKernelWorkGroupInfo.html
+clEnqueueNDRangeKernel=clEnqueueNDRangeKernel.html
+clEnqueueTask=clEnqueueTask.html
+clEnqueueNativeKernel=clEnqueueNativeKernel.html
+clWaitForEvents=clWaitForEvents.html
+clGetEventInfo=clGetEventInfo.html
+clRetainEvent=clRetainEvent.html
+clReleaseEvent=clReleaseEvent.html
+clEnqueueMarker=clEnqueueMarker.html
+clEnqueueWaitForEvents=clEnqueueWaitForEvents.html
+clEnqueueBarrier=clEnqueueBarrier.html
+clGetEventProfilingInfo=clGetEventProfilingInfo.html
+clFlush=clFlush.html
+clFinish=clFinish.html
+clGetExtensionFunctionAddress=clGetExtensionFunctionAddress.html
+clCreateFromGLBuffer=clCreateFromGLBuffer.html
+clCreateFromGLRenderbuffer=clCreateFromGLRenderbuffer.html
+clEnqueueAcquireGLObjects=clEnqueueAcquireGLObjects.html
+clEnqueueReleaseGLObjects=clEnqueueReleaseGLObjects.html
+clGetGLObjectInfo=clGetGLObjectInfo.html
+clGetGLTextureInfo=clGetGLTextureInfo.html