aboutsummaryrefslogtreecommitdiffstats
path: root/resources/cl-impl.cfg
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-10-19 06:47:48 +0200
committerSven Gothel <[email protected]>2013-10-19 06:47:48 +0200
commit6be41a8e457ec2881f4ce351395ba84748a737b6 (patch)
tree057311ecf74b576f0dd5187f8d44e507ff2cc07e /resources/cl-impl.cfg
parent412dd81be138c49f8c683f9d350aa16322605281 (diff)
Bug 773 - Device specific JOCL dynamic library look-up on Android - Part 1/2
Use DynamicLibraryBundleInfo w/ alternative native library names, drop manual coding of loading and binding, i.e. JOCLJNILibLoader. After trying opencl native libs (and failing), try GL libs .. We use a manual impl. to CL's 'clGetExtensionFunctionAddress' similar to JOAL, JOGL ...
Diffstat (limited to 'resources/cl-impl.cfg')
-rw-r--r--resources/cl-impl.cfg11
1 files changed, 7 insertions, 4 deletions
diff --git a/resources/cl-impl.cfg b/resources/cl-impl.cfg
index 32a3099d..c2aff892 100644
--- a/resources/cl-impl.cfg
+++ b/resources/cl-impl.cfg
@@ -5,6 +5,8 @@ Style ImplOnly
#imports for all generated java files
Import com.jogamp.opencl.llb.*
Import com.jogamp.opencl.llb.gl.CLGL
+Import java.security.AccessController
+Import java.security.PrivilegedAction
ClassJavadoc CLAbstractImpl /**
ClassJavadoc CLAbstractImpl * Java bindings to OpenCL, the Open Computing Language (generated).
@@ -45,10 +47,11 @@ ProcAddressNameExpr $UpperCase(arg)
#...or force all
ForceProcAddressGen __ALL__
-Unignore clGetExtensionFunctionAddress
-RenameJavaMethod clGetExtensionFunctionAddress clGetExtensionFunctionAddressImpl
-AccessControl clGetExtensionFunctionAddressImpl PROTECTED
-ArgumentIsString clGetExtensionFunctionAddressImpl 0
+#
+# extern CL_API_ENTRY void * CL_API_CALL clGetExtensionFunctionAddress(const char * /* func_name */) CL_API_SUFFIX__VERSION_1_0;
+#
+Ignore clGetExtensionFunctionAddress
+ForceProcAddressGen clGetExtensionFunctionAddress
#append to generated c files
CustomCCode #include <CL/cl.h>