Clone of mesa.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

meson.build 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # Copyright © 2017 Intel Corporation
  2. # Permission is hereby granted, free of charge, to any person obtaining a copy
  3. # of this software and associated documentation files (the "Software"), to deal
  4. # in the Software without restriction, including without limitation the rights
  5. # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  6. # copies of the Software, and to permit persons to whom the Software is
  7. # furnished to do so, subject to the following conditions:
  8. # The above copyright notice and this permission notice shall be included in
  9. # all copies or substantial portions of the Software.
  10. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  11. # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  12. # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  13. # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  14. # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  15. # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  16. # SOFTWARE.
  17. inc_vulkan = include_directories('vulkan')
  18. inc_d3d9 = include_directories('D3D9')
  19. inc_gl_internal = include_directories('GL/internal')
  20. inc_haikugl = include_directories('HaikuGL')
  21. if with_gles1
  22. install_headers(
  23. 'GLES/egl.h', 'GLES/gl.h', 'GLES/glext.h', 'GLES/glplatform.h',
  24. subdir : 'GLES',
  25. )
  26. endif
  27. if with_gles2
  28. install_headers(
  29. 'GLES2/gl2.h', 'GLES2/gl2ext.h', 'GLES2/gl2platform.h',
  30. subdir : 'GLES2',
  31. )
  32. install_headers(
  33. 'GLES3/gl3.h', 'GLES3/gl31.h', 'GLES3/gl32.h', 'GLES3/gl3ext.h',
  34. 'GLES3/gl3platform.h',
  35. subdir : 'GLES3',
  36. )
  37. endif
  38. if with_gles1 or with_gles2 or with_opengl or with_egl
  39. install_headers('KHR/khrplatform.h', subdir : 'KHR')
  40. endif
  41. if with_opengl
  42. install_headers(
  43. 'GL/gl.h', 'GL/glext.h', 'GL/glcorearb.h', 'GL/gl_mangle.h',
  44. subdir : 'GL',
  45. )
  46. endif
  47. if with_glx != 'disabled'
  48. install_headers('GL/glx.h', 'GL/glxext.h', 'GL/glx_mangle.h', subdir : 'GL')
  49. endif
  50. if with_osmesa != 'none'
  51. install_headers('GL/osmesa.h', subdir : 'GL')
  52. endif
  53. if with_egl
  54. install_headers(
  55. 'EGL/eglext.h', 'EGL/egl.h', 'EGL/eglextchromium.h', 'EGL/eglmesaext.h',
  56. 'EGL/eglplatform.h',
  57. subdir : 'EGL',
  58. )
  59. endif
  60. if with_dri
  61. install_headers('GL/internal/dri_interface.h', subdir : 'GL/internal')
  62. endif
  63. if with_gallium_st_nine
  64. install_headers(
  65. 'd3dadapter/d3dadapter9.h', 'd3dadapter/drm.h', 'd3dadapter/present.h',
  66. subdir : 'd3dadapter',
  67. )
  68. endif
  69. if with_platform_haiku
  70. install_headers(
  71. 'HaikuGL/GLRenderer.h', 'HaikuGL/GLView.h', 'HaikuGL/OpenGLKit.h',
  72. subdir : 'opengl',
  73. )
  74. endif
  75. # Only install the headers if we are building a stand alone implementation and
  76. # not an ICD enabled implementation
  77. if with_gallium_opencl and not with_opencl_icd
  78. install_headers(
  79. 'CL/cl.h',
  80. 'CL/cl.hpp',
  81. 'CL/cl_d3d10.h',
  82. 'CL/cl_d3d11.h',
  83. 'CL/cl_dx9_media_sharing.h',
  84. 'CL/cl_egl.h',
  85. 'CL/cl_ext.h',
  86. 'CL/cl_gl.h',
  87. 'CL/cl_gl_ext.h',
  88. 'CL/cl_platform.h',
  89. 'CL/opencl.h',
  90. subdir: 'CL'
  91. )
  92. endif
  93. if with_intel_vk
  94. install_headers('vulkan/vulkan_intel.h', subdir : 'vulkan')
  95. endif