1# Copyright 2022 The ANGLE Project Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import("../../../../gni/angle.gni") 6 7declare_args() { 8 angle_enable_gl_null = true 9} 10 11gl_backend_sources = [ 12 "BlitGL.cpp", 13 "BlitGL.h", 14 "BufferGL.cpp", 15 "BufferGL.h", 16 "ClearMultiviewGL.cpp", 17 "ClearMultiviewGL.h", 18 "CompilerGL.cpp", 19 "CompilerGL.h", 20 "ContextGL.cpp", 21 "ContextGL.h", 22 "DispatchTableGL_autogen.cpp", 23 "DispatchTableGL_autogen.h", 24 "DisplayGL.cpp", 25 "DisplayGL.h", 26 "FenceNVGL.cpp", 27 "FenceNVGL.h", 28 "FramebufferGL.cpp", 29 "FramebufferGL.h", 30 "FunctionsGL.cpp", 31 "FunctionsGL.h", 32 "ImageGL.cpp", 33 "ImageGL.h", 34 "MemoryObjectGL.cpp", 35 "MemoryObjectGL.h", 36 "PLSProgramCache.cpp", 37 "PLSProgramCache.h", 38 "ProgramGL.cpp", 39 "ProgramGL.h", 40 "ProgramPipelineGL.cpp", 41 "ProgramPipelineGL.h", 42 "QueryGL.cpp", 43 "QueryGL.h", 44 "RenderbufferGL.cpp", 45 "RenderbufferGL.h", 46 "RendererGL.cpp", 47 "RendererGL.h", 48 "SamplerGL.cpp", 49 "SamplerGL.h", 50 "SemaphoreGL.cpp", 51 "SemaphoreGL.h", 52 "ShaderGL.cpp", 53 "ShaderGL.h", 54 "StateManagerGL.cpp", 55 "StateManagerGL.h", 56 "SurfaceGL.cpp", 57 "SurfaceGL.h", 58 "SyncGL.cpp", 59 "SyncGL.h", 60 "TextureGL.cpp", 61 "TextureGL.h", 62 "TransformFeedbackGL.cpp", 63 "TransformFeedbackGL.h", 64 "VertexArrayGL.cpp", 65 "VertexArrayGL.h", 66 "formatutilsgl.cpp", 67 "formatutilsgl.h", 68 "functionsgl_enums.h", 69 "functionsgl_typedefs.h", 70 "renderergl_utils.cpp", 71 "renderergl_utils.h", 72] 73 74if (is_win) { 75 gl_backend_sources += [ 76 "../../../third_party/khronos/GL/wglext.h", 77 "wgl/ContextWGL.cpp", 78 "wgl/ContextWGL.h", 79 "wgl/D3DTextureSurfaceWGL.cpp", 80 "wgl/D3DTextureSurfaceWGL.h", 81 "wgl/DXGISwapChainWindowSurfaceWGL.cpp", 82 "wgl/DXGISwapChainWindowSurfaceWGL.h", 83 "wgl/DisplayWGL.cpp", 84 "wgl/DisplayWGL.h", 85 "wgl/FunctionsWGL.cpp", 86 "wgl/FunctionsWGL.h", 87 "wgl/PbufferSurfaceWGL.cpp", 88 "wgl/PbufferSurfaceWGL.h", 89 "wgl/RendererWGL.cpp", 90 "wgl/RendererWGL.h", 91 "wgl/SurfaceWGL.h", 92 "wgl/WindowSurfaceWGL.cpp", 93 "wgl/WindowSurfaceWGL.h", 94 "wgl/functionswgl_typedefs.h", 95 "wgl/wgl_utils.cpp", 96 "wgl/wgl_utils.h", 97 ] 98} 99 100if (angle_use_x11) { 101 gl_backend_sources += [ 102 "glx/DisplayGLX.cpp", 103 "glx/DisplayGLX.h", 104 "glx/FunctionsGLX.cpp", 105 "glx/FunctionsGLX.h", 106 "glx/PbufferSurfaceGLX.cpp", 107 "glx/PbufferSurfaceGLX.h", 108 "glx/PixmapSurfaceGLX.cpp", 109 "glx/PixmapSurfaceGLX.h", 110 "glx/RendererGLX.cpp", 111 "glx/RendererGLX.h", 112 "glx/SurfaceGLX.h", 113 "glx/WindowSurfaceGLX.cpp", 114 "glx/WindowSurfaceGLX.h", 115 "glx/functionsglx_typedefs.h", 116 "glx/glx_utils.cpp", 117 "glx/glx_utils.h", 118 "glx/platform_glx.h", 119 ] 120} 121 122if (is_android || is_linux || is_chromeos) { 123 gl_backend_sources += [ 124 "egl/ContextEGL.cpp", 125 "egl/ContextEGL.h", 126 "egl/DeviceEGL.cpp", 127 "egl/DeviceEGL.h", 128 "egl/DisplayEGL.cpp", 129 "egl/DisplayEGL.h", 130 "egl/DmaBufImageSiblingEGL.cpp", 131 "egl/DmaBufImageSiblingEGL.h", 132 "egl/ExternalImageSiblingEGL.h", 133 "egl/FunctionsEGL.cpp", 134 "egl/FunctionsEGL.h", 135 "egl/FunctionsEGLDL.cpp", 136 "egl/FunctionsEGLDL.h", 137 "egl/ImageEGL.cpp", 138 "egl/ImageEGL.h", 139 "egl/PbufferSurfaceEGL.cpp", 140 "egl/PbufferSurfaceEGL.h", 141 "egl/RendererEGL.cpp", 142 "egl/RendererEGL.h", 143 "egl/SurfaceEGL.cpp", 144 "egl/SurfaceEGL.h", 145 "egl/SyncEGL.cpp", 146 "egl/SyncEGL.h", 147 "egl/WindowSurfaceEGL.cpp", 148 "egl/WindowSurfaceEGL.h", 149 "egl/egl_utils.cpp", 150 "egl/egl_utils.h", 151 "egl/functionsegl_typedefs.h", 152 ] 153} 154 155if (is_android) { 156 gl_backend_sources += [ 157 "egl/android/DisplayAndroid.cpp", 158 "egl/android/DisplayAndroid.h", 159 "egl/android/NativeBufferImageSiblingAndroid.cpp", 160 "egl/android/NativeBufferImageSiblingAndroid.h", 161 ] 162} 163 164if (angle_enable_cgl) { 165 gl_backend_sources += [ 166 "cgl/ContextCGL.cpp", 167 "cgl/ContextCGL.h", 168 "cgl/DeviceCGL.cpp", 169 "cgl/DeviceCGL.h", 170 "cgl/DisplayCGL.h", 171 "cgl/DisplayCGL.mm", 172 "cgl/IOSurfaceSurfaceCGL.cpp", 173 "cgl/IOSurfaceSurfaceCGL.h", 174 "cgl/PbufferSurfaceCGL.cpp", 175 "cgl/PbufferSurfaceCGL.h", 176 "cgl/RendererCGL.cpp", 177 "cgl/RendererCGL.h", 178 "cgl/WindowSurfaceCGL.h", 179 "cgl/WindowSurfaceCGL.mm", 180 ] 181} 182 183if (angle_enable_eagl) { 184 gl_backend_sources += [ 185 "eagl/ContextEAGL.cpp", 186 "eagl/ContextEAGL.h", 187 "eagl/DeviceEAGL.cpp", 188 "eagl/DeviceEAGL.h", 189 "eagl/DisplayEAGL.h", 190 "eagl/DisplayEAGL.mm", 191 "eagl/FunctionsEAGL.h", 192 "eagl/FunctionsEAGL.mm", 193 "eagl/IOSurfaceSurfaceEAGL.h", 194 "eagl/IOSurfaceSurfaceEAGL.mm", 195 "eagl/PbufferSurfaceEAGL.cpp", 196 "eagl/PbufferSurfaceEAGL.h", 197 "eagl/RendererEAGL.cpp", 198 "eagl/RendererEAGL.h", 199 "eagl/WindowSurfaceEAGL.h", 200 "eagl/WindowSurfaceEAGL.mm", 201 ] 202} 203 204if (angle_enable_gl_null) { 205 gl_backend_sources += [ 206 "null_functions.cpp", 207 "null_functions.h", 208 ] 209} 210