summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-12-08 15:26:00 -0800
committerDylan Baker <[email protected]>2018-01-08 16:39:42 -0800
commit42ea0631f108d82554339530d6c88aa1b448af1e (patch)
tree305e2e7dd00136b80dbaba42e0e1dd104349bd8f /include
parent425fcbde3f816e2a2efb8d1aed2442d40898d447 (diff)
meson: build clover
This has only been compile tested. v2: - Have a single option for opencl (Eric E) - fix typo "tgis" -> "tgsi" (Curro) - Don't add "lib" to pipe loader libraries, which matches the autotools behavior v3: - Remove trailing whitespace - Make PIPE_SEARCH_DIR an absolute path v4: - add trailing / to LIBCLC defines Acked-by: Curro Jerez <[email protected]> Tested-by: Jan Vesely <[email protected]> cc: Aaron Watry <[email protected]> Signed-off-by: Dylan Baker <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/meson.build19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/meson.build b/include/meson.build
index e4dae91cede..a2e7ce6580e 100644
--- a/include/meson.build
+++ b/include/meson.build
@@ -78,3 +78,22 @@ if with_gallium_st_nine
subdir : 'd3dadapter',
)
endif
+
+# Only install the headers if we are building a stand alone implementation and
+# not an ICD enabled implementation
+if with_gallium_opencl and not with_opencl_icd
+ install_headers(
+ 'CL/cl.h',
+ 'CL/cl.hpp',
+ 'CL/cl_d3d10.h',
+ 'CL/cl_d3d11.h',
+ 'CL/cl_dx9_media_sharing.h',
+ 'CL/cl_egl.h',
+ 'CL/cl_ext.h',
+ 'CL/cl_gl.h',
+ 'CL/cl_gl_ext.h',
+ 'CL/cl_platform.h',
+ 'CL/opencl.h',
+ subdir: 'CL'
+ )
+endif