package/mesa3d-headers: install OpenCL headers when needed
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 20 Oct 2018 22:14:34 +0000 (00:14 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 3 Dec 2018 22:07:30 +0000 (23:07 +0100)
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/mesa3d-headers/mesa3d-headers.mk

index e80e222c6501bbfb261b8dd6ba7e531abf10f0c9..55101b2201bd6d519e43a4bed1235a1695e07b37 100644 (file)
@@ -63,6 +63,10 @@ ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
 MESA3D_HEADERS_DIRS += GLES GLES2
 endif
 
+ifeq ($(BR2_PACKAGE_HAS_LIBOPENCL),y)
+MESA3D_HEADERS_DIRS += CL
+endif
+
 define MESA3D_HEADERS_BUILD_CMDS
        $(MESA3D_HEADERS_BUILD_DRI_PC)
 endef