From 7f592bb331b1d8e7d80dae91260dab4ee38c313e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Mon, 6 Mar 2023 14:57:55 +0100 Subject: [PATCH] * Dotted filenames for package opencl --- packages/opencl/namespaced/OpenCLApi.Cl.pp | 3 +++ packages/opencl/namespaced/OpenCLApi.Cl_gl.pp | 3 +++ packages/opencl/namespaces.lst | 4 ++++ packages/opencl/src/cl.pp | 7 +++++++ packages/opencl/src/cl_gl.pp | 7 +++++++ 5 files changed, 24 insertions(+) create mode 100644 packages/opencl/namespaced/OpenCLApi.Cl.pp create mode 100644 packages/opencl/namespaced/OpenCLApi.Cl_gl.pp create mode 100644 packages/opencl/namespaces.lst diff --git a/packages/opencl/namespaced/OpenCLApi.Cl.pp b/packages/opencl/namespaced/OpenCLApi.Cl.pp new file mode 100644 index 0000000000..e9684c3b08 --- /dev/null +++ b/packages/opencl/namespaced/OpenCLApi.Cl.pp @@ -0,0 +1,3 @@ +unit OpenCLApi.Cl; +{$DEFINE FPC_DOTTEDUNITS} +{$i cl.pp} diff --git a/packages/opencl/namespaced/OpenCLApi.Cl_gl.pp b/packages/opencl/namespaced/OpenCLApi.Cl_gl.pp new file mode 100644 index 0000000000..1643e4e23b --- /dev/null +++ b/packages/opencl/namespaced/OpenCLApi.Cl_gl.pp @@ -0,0 +1,3 @@ +unit OpenCLApi.Cl_gl; +{$DEFINE FPC_DOTTEDUNITS} +{$i cl_gl.pp} diff --git a/packages/opencl/namespaces.lst b/packages/opencl/namespaces.lst new file mode 100644 index 0000000000..d41caa624d --- /dev/null +++ b/packages/opencl/namespaces.lst @@ -0,0 +1,4 @@ +src/cl.pp=namespaced/OpenCLApi.Cl.pp +{s*:src/}=namespaced/ +{i+:src/} +src/cl_gl.pp=namespaced/OpenCLApi.Cl_gl.pp diff --git a/packages/opencl/src/cl.pp b/packages/opencl/src/cl.pp index 0bb789cd14..ab61272ada 100644 --- a/packages/opencl/src/cl.pp +++ b/packages/opencl/src/cl.pp @@ -33,12 +33,19 @@ // CL_MEM_FLAGS CL_MEM_FLAGS_INFO // CL_IMAGE_FORMAT CL_IMAGE_FORMAT_INFO +{$IFNDEF FPC_DOTTEDUNITS} unit cl; +{$ENDIF FPC_DOTTEDUNITS} interface +{$IFDEF FPC_DOTTEDUNITS} +uses + System.CTypes; +{$ELSE FPC_DOTTEDUNITS} uses ctypes; +{$ENDIF FPC_DOTTEDUNITS} {$MACRO ON} diff --git a/packages/opencl/src/cl_gl.pp b/packages/opencl/src/cl_gl.pp index f1056fffe8..f9dcc0a1cd 100644 --- a/packages/opencl/src/cl_gl.pp +++ b/packages/opencl/src/cl_gl.pp @@ -23,12 +23,19 @@ // ported to FPC by Dmitry 'skalogryz' Boyarintsev: 28th apr 2009 +{$IFNDEF FPC_DOTTEDUNITS} unit cl_gl; +{$ENDIF FPC_DOTTEDUNITS} interface +{$IFDEF FPC_DOTTEDUNITS} +uses + OpenCLApi.Cl, Api.OpenGL.Gl, System.CTypes; +{$ELSE FPC_DOTTEDUNITS} uses cl, gl, ctypes; +{$ENDIF FPC_DOTTEDUNITS} // NOTE: Make sure that appropriate GL header file is included separately