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