Debian Codegraph @

include/meson.build

raw
1 # Copyright © 2017 Intel Corporation
2 # SPDX-License-Identifier: MIT
3
4 inc_include = [include_directories('.')]
5 inc_winddk = include_directories('winddk')
6
7 # Most things assume that Android headers are in the default include
8 # path when compiling for Android so add the stub headers to
9 # inc_include when using the stub.
10 if with_android_stub
11 inc_include += [include_directories('android_stub')]
12 endif
13
14 if not with_glvnd and host_machine.system() != 'windows'
15 if with_gles1 or with_gles2 or with_opengl or with_egl
16 install_headers('KHR/khrplatform.h', subdir : 'KHR')
17 endif
18
19 if with_gles1
20 install_headers(
21 'GLES/egl.h',
22 'GLES/gl.h',
23 'GLES/glext.h',
24 'GLES/glplatform.h',
25 subdir : 'GLES',
26 )
27 endif
28
29 if with_gles2
30 install_headers(
31 'GLES2/gl2.h',
32 'GLES2/gl2ext.h',
33 'GLES2/gl2platform.h',
34 subdir : 'GLES2',
35 )
36 install_headers(
37 'GLES3/gl3.h',
38 'GLES3/gl31.h',
39 'GLES3/gl32.h',
40 'GLES3/gl3ext.h',
41 'GLES3/gl3platform.h',
42 subdir : 'GLES3',
43 )
44 endif
45
46 if with_opengl
47 install_headers(
48 'GL/gl.h',
49 'GL/glcorearb.h',
50 'GL/glext.h',
51 subdir : 'GL',
52 )
53 endif
54
55 if with_glx != 'disabled'
56 install_headers(
57 'GL/glx.h',
58 'GL/glxext.h',
59 subdir : 'GL')
60 endif
61
62 if with_egl
63 install_headers(
64 'EGL/egl.h',
65 'EGL/eglext.h',
66 'EGL/eglplatform.h',
67 subdir : 'EGL',
68 )
69 endif
70 endif
71
72 # Non-upstream headers
73 if with_egl
74 install_headers(
75 'EGL/eglext_angle.h',
76 'EGL/eglmesaext.h',
77 subdir : 'EGL',
78 )
79 endif
80
81 if with_dri
82 install_headers('GL/internal/dri_interface.h', subdir : 'GL/internal')
83 endif
84
85 opencl_headers = files(
86 'CL/cl.h',
87 'CL/cl_d3d10.h',
88 'CL/cl_d3d11.h',
89 'CL/cl_dx9_media_sharing.h',
90 'CL/cl_dx9_media_sharing_intel.h',
91 'CL/cl_egl.h',
92 'CL/cl_ext.h',
93 'CL/cl_ext_intel.h',
94 'CL/cl_function_types.h',
95 'CL/cl_gl.h',
96 'CL/cl_gl_ext.h',
97 'CL/cl_half.h',
98 'CL/cl_icd.h',
99 'CL/cl_layer.h',
100 'CL/cl_platform.h',
101 'CL/cl_va_api_media_sharing_intel.h',
102 'CL/cl_version.h',
103 'CL/opencl.h',
104 )